Skip to content

Commit ca49ada

Browse files
S1artiemagreenblatt
authored andcommitted
Update to CEF 135.0.20+ge7de5c3+chromium-135.0.7049.85
1 parent 1770317 commit ca49ada

File tree

8 files changed

+15
-6
lines changed

8 files changed

+15
-6
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ set_property(GLOBAL PROPERTY OS_FOLDERS ON)
130130

131131
# Specify the CEF distribution version.
132132
if(NOT DEFINED CEF_VERSION)
133-
set(CEF_VERSION "132.3.1+g144febe+chromium-132.0.6834.83")
133+
set(CEF_VERSION "135.0.20+ge7de5c3+chromium-135.0.7049.85")
134134
endif()
135135

136136
# Determine the platform.

java/org/cef/handler/CefRequestHandler.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ enum TerminationStatus {
2626
TS_PROCESS_CRASHED, //!< Segmentation fault.
2727
TS_PROCESS_OOM, //!< Out of memory.
2828
TS_LAUNCH_FAILED, //!< Failed to launch.
29-
TS_INTEGRITY_FAILURE //!< Integrity check failed.
29+
TS_INTEGRITY_FAILURE, //!< Integrity check failed.
30+
TS_NUM_VALUES
3031
}
3132

3233
/**

java/org/cef/network/CefPostDataElement.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ public static enum Type {
1616
PDE_TYPE_EMPTY,
1717
PDE_TYPE_BYTES,
1818
PDE_TYPE_FILE,
19+
PDF_TYPE_NUM_VALUES, // probably should be PDE_TYPE, but wrong in CEF too
1920
}
2021

2122
// This CTOR can't be called directly. Call method create() instead.

java/org/cef/network/CefRequest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ public enum ResourceType {
4141
RT_NAVIGATION_PRELOAD_MAIN_FRAME, //!< A main-frame service worker navigation preload
4242
//!< request.
4343
RT_NAVIGATION_PRELOAD_SUB_FRAME, //!< A sub-frame service worker navigation preload request.
44+
RT_NUM_VALUES,
4445
}
4546

4647
/**
@@ -317,7 +318,7 @@ public enum ReferrerPolicy {
317318
/**
318319
* Always the last value in this enumeration.
319320
*/
320-
REFERRER_POLICY_LAST_VALUE
321+
REFERRER_POLICY_NUM_VALUES
321322
}
322323

323324
// This CTOR can't be called directly. Call method create() instead.

native/CefApp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#include <string>
88

99
#include "include/cef_app.h"
10-
#include "include/cef_version.h"
10+
#include "include/cef_version_info.h"
1111

1212
#include "context.h"
1313
#include "jcef_version.h"

native/CefPostDataElement_N.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ Java_org_cef_network_CefPostDataElement_1N_N_1GetType(JNIEnv* env,
9898
jtype);
9999
JNI_CASE(env, "org/cef/network/CefPostDataElement$Type", PDE_TYPE_FILE,
100100
jtype);
101+
JNI_CASE(env, "org/cef/network/CefPostDataElement$Type",
102+
PDF_TYPE_NUM_VALUES, jtype);
101103
}
102104
return jtype;
103105
}

native/CefRequest_N.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,8 @@ Java_org_cef_network_CefRequest_1N_N_1SetReferrer(JNIEnv* env,
126126
policy = REFERRER_POLICY_NO_REFERRER;
127127
} else if (IsJNIEnumValue(env, jpolicy,
128128
"org/cef/network/CefRequest$ReferrerPolicy",
129-
"REFERRER_POLICY_LAST_VALUE")) {
130-
policy = REFERRER_POLICY_LAST_VALUE;
129+
"REFERRER_POLICY_NUM_VALUES")) {
130+
policy = REFERRER_POLICY_NUM_VALUES;
131131
}
132132
}
133133

@@ -399,6 +399,8 @@ Java_org_cef_network_CefRequest_1N_N_1GetResourceType(JNIEnv* env,
399399
RT_NAVIGATION_PRELOAD_MAIN_FRAME, result);
400400
JNI_CASE(env, "org/cef/network/CefRequest$ResourceType",
401401
RT_NAVIGATION_PRELOAD_SUB_FRAME, result);
402+
JNI_CASE(env, "org/cef/network/CefRequest$ResourceType", RT_NUM_VALUES,
403+
result);
402404
}
403405
return result;
404406
}

native/request_handler.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,8 @@ void RequestHandler::OnRenderProcessTerminated(CefRefPtr<CefBrowser> browser,
203203
TS_LAUNCH_FAILED, jstatus);
204204
JNI_CASE(env, "org/cef/handler/CefRequestHandler$TerminationStatus",
205205
TS_INTEGRITY_FAILURE, jstatus);
206+
JNI_CASE(env, "org/cef/handler/CefRequestHandler$TerminationStatus",
207+
TS_NUM_VALUES, jstatus);
206208
}
207209

208210
ScopedJNIString jerrorString(env, error_string);

0 commit comments

Comments
 (0)