Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
1zun4 committed Mar 12, 2024
1 parent ff8e49f commit e644ee7
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions native/CefBrowser_N.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1050,21 +1050,6 @@ void executeDevToolsMethod(CefRefPtr<CefBrowserHost> host,
// }
//}

jobject NewJNILongVector(JNIEnv* env, const std::vector<int64_t>& vals) {
ScopedJNIObjectLocal jvector(env, "java/util/Vector");
if (!jvector)
return nullptr;

std::vector<int64_t>::const_iterator iter;
for (iter = vals.begin(); iter != vals.end(); ++iter) {
ScopedJNIObjectLocal argument(
env, NewJNIObject(env, "java/lang/Long", "(J)V", (jlong)*iter));
JNI_CALL_VOID_METHOD(env, jvector, "addElement", "(Ljava/lang/Object;)V",
argument.get());
}
return jvector.Release();
}

CefPdfPrintSettings GetJNIPdfPrintSettings(JNIEnv* env, jobject obj) {
CefString tmp;
CefPdfPrintSettings settings;
Expand Down

0 comments on commit e644ee7

Please sign in to comment.