[cef][wam] Make the recipe work with official chromium release tarballs
[AGL/meta-agl-demo.git] / recipes-wam / cef / files / cef / 0009-Update-generated-api.patch
1 From c10306e9da62f9c36513b98affc4589ea5016677 Mon Sep 17 00:00:00 2001
2 From: Roger Zanoni <rzanoni@igalia.com>
3 Date: Mon, 6 Nov 2023 16:00:35 -0300
4 Subject: [PATCH 09/10] Update generated api
5
6 Command used:
7
8 ./translator.sh --classes CefWindow CefWindowDelegate CefView CefViewDeleate --root-dir
9 ---
10  include/capi/cef_cookie_capi.h           |   6 +-
11  include/capi/cef_media_router_capi.h     |   6 +-
12  include/capi/cef_scheme_capi.h           |  10 +-
13  include/capi/views/cef_window_capi.h     |  52 +++++++-
14  include/cef_api_hash.h                   |   8 +-
15  libcef_dll/cpptoc/views/window_cpptoc.cc | 153 ++++++++++++++++++++++-
16  libcef_dll/ctocpp/views/window_ctocpp.cc | 148 +++++++++++++++++++++-
17  libcef_dll/ctocpp/views/window_ctocpp.h  |  12 +-
18  libcef_dll/wrapper/libcef_dll_dylib.cc   |  72 +++++++----
19  9 files changed, 422 insertions(+), 45 deletions(-)
20
21 diff --git a/include/capi/cef_cookie_capi.h b/include/capi/cef_cookie_capi.h
22 index 1be978bfd..f6f19ede2 100644
23 --- a/include/capi/cef_cookie_capi.h
24 +++ b/include/capi/cef_cookie_capi.h
25 @@ -33,7 +33,7 @@
26  // by hand. See the translator.README.txt file in the tools directory for
27  // more information.
28  //
29 -// $hash=598c6f530b2e2553197d8c6a72ad9e2bf72b5443$
30 +// $hash=8093e45bcbd09f41f21c0cb7c8719166cc481529$
31  //
32  
33  #ifndef CEF_INCLUDE_CAPI_CEF_COOKIE_CAPI_H_
34 @@ -126,8 +126,8 @@ typedef struct _cef_cookie_manager_t {
35  /// cef_settings_t.cache_path if specified or in memory otherwise. If |callback|
36  /// is non-NULL it will be executed asnychronously on the UI thread after the
37  /// manager's storage has been initialized. Using this function is equivalent to
38 -/// calling cef_request_context_t::cef_request_context_get_global_context()->Get
39 -/// DefaultCookieManager().
40 +/// calling cef_request_context_t::cef_request_context_get_global_context()-
41 +/// >GetDefaultCookieManager().
42  ///
43  CEF_EXPORT cef_cookie_manager_t* cef_cookie_manager_get_global_manager(
44      struct _cef_completion_callback_t* callback);
45 diff --git a/include/capi/cef_media_router_capi.h b/include/capi/cef_media_router_capi.h
46 index 27f9d0e15..9df759013 100644
47 --- a/include/capi/cef_media_router_capi.h
48 +++ b/include/capi/cef_media_router_capi.h
49 @@ -33,7 +33,7 @@
50  // by hand. See the translator.README.txt file in the tools directory for
51  // more information.
52  //
53 -// $hash=de4a9b856c6951231f446991a9b1efb89096ad3b$
54 +// $hash=d3f29de333c90768caac6aee2b7eb2db5f593515$
55  //
56  
57  #ifndef CEF_INCLUDE_CAPI_CEF_MEDIA_ROUTER_CAPI_H_
58 @@ -114,8 +114,8 @@ typedef struct _cef_media_router_t {
59  /// Returns the MediaRouter object associated with the global request context.
60  /// If |callback| is non-NULL it will be executed asnychronously on the UI
61  /// thread after the manager's storage has been initialized. Equivalent to
62 -/// calling cef_request_context_t::cef_request_context_get_global_context()->get
63 -/// _media_router().
64 +/// calling cef_request_context_t::cef_request_context_get_global_context()-
65 +/// >get_media_router().
66  ///
67  CEF_EXPORT cef_media_router_t* cef_media_router_get_global(
68      struct _cef_completion_callback_t* callback);
69 diff --git a/include/capi/cef_scheme_capi.h b/include/capi/cef_scheme_capi.h
70 index 5f8796287..bdcd6cc3b 100644
71 --- a/include/capi/cef_scheme_capi.h
72 +++ b/include/capi/cef_scheme_capi.h
73 @@ -33,7 +33,7 @@
74  // by hand. See the translator.README.txt file in the tools directory for
75  // more information.
76  //
77 -// $hash=6b6a7f754abc9ee5d6f775ba9eee802d3244faf5$
78 +// $hash=794d4c01f06c656c425779b0189a3b52820498ed$
79  //
80  
81  #ifndef CEF_INCLUDE_CAPI_CEF_SCHEME_CAPI_H_
82 @@ -116,8 +116,8 @@ typedef struct _cef_scheme_handler_factory_t {
83  /// matches the specified |scheme_name| and optional |domain_name|. Returns
84  /// false (0) if an error occurs. This function may be called on any thread in
85  /// the browser process. Using this function is equivalent to calling cef_reques
86 -/// t_context_t::cef_request_context_get_global_context()->register_scheme_handl
87 -/// er_factory().
88 +/// t_context_t::cef_request_context_get_global_context()-
89 +/// >register_scheme_handler_factory().
90  ///
91  CEF_EXPORT int cef_register_scheme_handler_factory(
92      const cef_string_t* scheme_name,
93 @@ -128,8 +128,8 @@ CEF_EXPORT int cef_register_scheme_handler_factory(
94  /// Clear all scheme handler factories registered with the global request
95  /// context. Returns false (0) on error. This function may be called on any
96  /// thread in the browser process. Using this function is equivalent to calling
97 -/// cef_request_context_t::cef_request_context_get_global_context()->clear_schem
98 -/// e_handler_factories().
99 +/// cef_request_context_t::cef_request_context_get_global_context()-
100 +/// >clear_scheme_handler_factories().
101  ///
102  CEF_EXPORT int cef_clear_scheme_handler_factories(void);
103  
104 diff --git a/include/capi/views/cef_window_capi.h b/include/capi/views/cef_window_capi.h
105 index e5e04e83e..b0be32ad2 100644
106 --- a/include/capi/views/cef_window_capi.h
107 +++ b/include/capi/views/cef_window_capi.h
108 @@ -33,7 +33,7 @@
109  // by hand. See the translator.README.txt file in the tools directory for
110  // more information.
111  //
112 -// $hash=4b43fe0b493d860e8b28d7a6d892db49d1135b34$
113 +// $hash=53e1bba9189f03819c0646670cab8f9caabc74d6$
114  //
115  
116  #ifndef CEF_INCLUDE_CAPI_VIEWS_CEF_WINDOW_CAPI_H_
117 @@ -353,6 +353,49 @@ typedef struct _cef_window_t {
118    /// Remove all keyboard accelerators.
119    ///
120    void(CEF_CALLBACK* remove_all_accelerators)(struct _cef_window_t* self);
121 +
122 +  ///
123 +  /// Tells the agl compositor to activate the app
124 +  ///
125 +  void(CEF_CALLBACK* agl_activate_app)(struct _cef_window_t* self,
126 +                                       const cef_string_t* app);
127 +
128 +  ///
129 +  /// Tells the agl compositor the application id
130 +  ///
131 +  void(CEF_CALLBACK* agl_set_app_id)(struct _cef_window_t* self,
132 +                                     const cef_string_t* app_id);
133 +
134 +  ///
135 +  /// Tells the agl compositor that everything is set-up and good to go
136 +  ///
137 +  void(CEF_CALLBACK* agl_set_app_ready)(struct _cef_window_t* self);
138 +
139 +  ///
140 +  /// Tells the agl compositor that the app is the background application
141 +  ///
142 +  void(CEF_CALLBACK* agl_set_back_ground_app)(struct _cef_window_t* self);
143 +
144 +  ///
145 +  /// Tells the agl compositor that the app is a panel
146 +  ///
147 +  void(CEF_CALLBACK* agl_set_panel_app)(struct _cef_window_t* self,
148 +                                        uint32_t edge);
149 +
150 +  ///
151 +  /// Tells if the window wayland surface is configured
152 +  ///
153 +  int(CEF_CALLBACK* is_surface_configured)(struct _cef_window_t* self);
154 +
155 +  ///
156 +  /// A hint for the compositor to use a custom area, rather than inferring the
157 +  /// activation area.
158 +  ///
159 +  void(CEF_CALLBACK* setup_activation_area)(struct _cef_window_t* self,
160 +                                            uint32_t x,
161 +                                            uint32_t y,
162 +                                            uint32_t width,
163 +                                            uint32_t height);
164  } cef_window_t;
165  
166  ///
167 @@ -361,6 +404,13 @@ typedef struct _cef_window_t {
168  CEF_EXPORT cef_window_t* cef_window_create_top_level(
169      struct _cef_window_delegate_t* delegate);
170  
171 +///
172 +/// Create a new Window with the provided ID
173 +///
174 +CEF_EXPORT cef_window_t* cef_window_create_top_level_with_id(
175 +    struct _cef_window_delegate_t* delegate,
176 +    const cef_string_t* app_id);
177 +
178  #ifdef __cplusplus
179  }
180  #endif
181 diff --git a/include/cef_api_hash.h b/include/cef_api_hash.h
182 index 90142ccb0..6af07332a 100644
183 --- a/include/cef_api_hash.h
184 +++ b/include/cef_api_hash.h
185 @@ -42,13 +42,13 @@
186  // way that may cause binary incompatibility with other builds. The universal
187  // hash value will change if any platform is affected whereas the platform hash
188  // values will change only if that particular platform is affected.
189 -#define CEF_API_HASH_UNIVERSAL "4acea2e5c7a3e281d9652802ae1d24b25eef299b"
190 +#define CEF_API_HASH_UNIVERSAL "7d1351328f7aeb7db3ae74b6d687b115ceec7695"
191  #if defined(OS_WIN)
192 -#define CEF_API_HASH_PLATFORM "3a181fdfaa42d2214c77cd83f76886b0657b0b53"
193 +#define CEF_API_HASH_PLATFORM "70c2a3fee7a3f4a4f6d44d4a3b3699ad23cf6f67"
194  #elif defined(OS_MAC)
195 -#define CEF_API_HASH_PLATFORM "06bfe874ee215bde0a415bac7ac37ecf4969d4ca"
196 +#define CEF_API_HASH_PLATFORM "9d9d39318398a7efaf43406ae25967a33c9d9787"
197  #elif defined(OS_LINUX)
198 -#define CEF_API_HASH_PLATFORM "1615f7e7079d89e2e81f683d4a8480455b5f2a60"
199 +#define CEF_API_HASH_PLATFORM "f828859cd19052fd3dab4b9f50f530d7011642b6"
200  #endif
201  
202  #ifdef __cplusplus
203 diff --git a/libcef_dll/cpptoc/views/window_cpptoc.cc b/libcef_dll/cpptoc/views/window_cpptoc.cc
204 index 93ee5341f..cbb4bb1a4 100644
205 --- a/libcef_dll/cpptoc/views/window_cpptoc.cc
206 +++ b/libcef_dll/cpptoc/views/window_cpptoc.cc
207 @@ -9,7 +9,7 @@
208  // implementations. See the translator.README.txt file in the tools directory
209  // for more information.
210  //
211 -// $hash=23777aea864e9abf38c2e2c5d79a40d6bd22876d$
212 +// $hash=53b37fbf82615184d8b259a2e476431a3e699eea$
213  //
214  
215  #include "libcef_dll/cpptoc/views/window_cpptoc.h"
216 @@ -48,6 +48,32 @@ CEF_EXPORT cef_window_t* cef_window_create_top_level(
217    return CefWindowCppToC::Wrap(_retval);
218  }
219  
220 +CEF_EXPORT cef_window_t* cef_window_create_top_level_with_id(
221 +    struct _cef_window_delegate_t* delegate,
222 +    const cef_string_t* app_id) {
223 +  shutdown_checker::AssertNotShutdown();
224 +
225 +  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
226 +
227 +  // Verify param: delegate; type: refptr_diff
228 +  DCHECK(delegate);
229 +  if (!delegate) {
230 +    return NULL;
231 +  }
232 +  // Verify param: app_id; type: string_byref_const
233 +  DCHECK(app_id);
234 +  if (!app_id) {
235 +    return NULL;
236 +  }
237 +
238 +  // Execute
239 +  CefRefPtr<CefWindow> _retval = CefWindow::CreateTopLevelWindowWithId(
240 +      CefWindowDelegateCToCpp::Wrap(delegate), CefString(app_id));
241 +
242 +  // Return type: refptr_same
243 +  return CefWindowCppToC::Wrap(_retval);
244 +}
245 +
246  namespace {
247  
248  // MEMBER FUNCTIONS - Body may be edited by hand.
249 @@ -717,6 +743,124 @@ void CEF_CALLBACK window_remove_all_accelerators(struct _cef_window_t* self) {
250    CefWindowCppToC::Get(self)->RemoveAllAccelerators();
251  }
252  
253 +void CEF_CALLBACK window_agl_activate_app(struct _cef_window_t* self,
254 +                                          const cef_string_t* app) {
255 +  shutdown_checker::AssertNotShutdown();
256 +
257 +  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
258 +
259 +  DCHECK(self);
260 +  if (!self) {
261 +    return;
262 +  }
263 +  // Verify param: app; type: string_byref_const
264 +  DCHECK(app);
265 +  if (!app) {
266 +    return;
267 +  }
268 +
269 +  // Execute
270 +  CefWindowCppToC::Get(self)->AglActivateApp(CefString(app));
271 +}
272 +
273 +void CEF_CALLBACK window_agl_set_app_id(struct _cef_window_t* self,
274 +                                        const cef_string_t* app_id) {
275 +  shutdown_checker::AssertNotShutdown();
276 +
277 +  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
278 +
279 +  DCHECK(self);
280 +  if (!self) {
281 +    return;
282 +  }
283 +  // Verify param: app_id; type: string_byref_const
284 +  DCHECK(app_id);
285 +  if (!app_id) {
286 +    return;
287 +  }
288 +
289 +  // Execute
290 +  CefWindowCppToC::Get(self)->AglSetAppId(CefString(app_id));
291 +}
292 +
293 +void CEF_CALLBACK window_agl_set_app_ready(struct _cef_window_t* self) {
294 +  shutdown_checker::AssertNotShutdown();
295 +
296 +  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
297 +
298 +  DCHECK(self);
299 +  if (!self) {
300 +    return;
301 +  }
302 +
303 +  // Execute
304 +  CefWindowCppToC::Get(self)->AglSetAppReady();
305 +}
306 +
307 +void CEF_CALLBACK window_agl_set_back_ground_app(struct _cef_window_t* self) {
308 +  shutdown_checker::AssertNotShutdown();
309 +
310 +  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
311 +
312 +  DCHECK(self);
313 +  if (!self) {
314 +    return;
315 +  }
316 +
317 +  // Execute
318 +  CefWindowCppToC::Get(self)->AglSetBackGroundApp();
319 +}
320 +
321 +void CEF_CALLBACK window_agl_set_panel_app(struct _cef_window_t* self,
322 +                                           uint32_t edge) {
323 +  shutdown_checker::AssertNotShutdown();
324 +
325 +  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
326 +
327 +  DCHECK(self);
328 +  if (!self) {
329 +    return;
330 +  }
331 +
332 +  // Execute
333 +  CefWindowCppToC::Get(self)->AglSetPanelApp(edge);
334 +}
335 +
336 +int CEF_CALLBACK window_is_surface_configured(struct _cef_window_t* self) {
337 +  shutdown_checker::AssertNotShutdown();
338 +
339 +  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
340 +
341 +  DCHECK(self);
342 +  if (!self) {
343 +    return 0;
344 +  }
345 +
346 +  // Execute
347 +  bool _retval = CefWindowCppToC::Get(self)->IsSurfaceConfigured();
348 +
349 +  // Return type: bool
350 +  return _retval;
351 +}
352 +
353 +void CEF_CALLBACK window_setup_activation_area(struct _cef_window_t* self,
354 +                                               uint32_t x,
355 +                                               uint32_t y,
356 +                                               uint32_t width,
357 +                                               uint32_t height) {
358 +  shutdown_checker::AssertNotShutdown();
359 +
360 +  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
361 +
362 +  DCHECK(self);
363 +  if (!self) {
364 +    return;
365 +  }
366 +
367 +  // Execute
368 +  CefWindowCppToC::Get(self)->SetupActivationArea(x, y, width, height);
369 +}
370 +
371  struct _cef_window_t* CEF_CALLBACK window_as_window(struct _cef_panel_t* self) {
372    shutdown_checker::AssertNotShutdown();
373  
374 @@ -2031,6 +2175,13 @@ CefWindowCppToC::CefWindowCppToC() {
375    GetStruct()->set_accelerator = window_set_accelerator;
376    GetStruct()->remove_accelerator = window_remove_accelerator;
377    GetStruct()->remove_all_accelerators = window_remove_all_accelerators;
378 +  GetStruct()->agl_activate_app = window_agl_activate_app;
379 +  GetStruct()->agl_set_app_id = window_agl_set_app_id;
380 +  GetStruct()->agl_set_app_ready = window_agl_set_app_ready;
381 +  GetStruct()->agl_set_back_ground_app = window_agl_set_back_ground_app;
382 +  GetStruct()->agl_set_panel_app = window_agl_set_panel_app;
383 +  GetStruct()->is_surface_configured = window_is_surface_configured;
384 +  GetStruct()->setup_activation_area = window_setup_activation_area;
385    GetStruct()->base.as_window = window_as_window;
386    GetStruct()->base.set_to_fill_layout = window_set_to_fill_layout;
387    GetStruct()->base.set_to_box_layout = window_set_to_box_layout;
388 diff --git a/libcef_dll/ctocpp/views/window_ctocpp.cc b/libcef_dll/ctocpp/views/window_ctocpp.cc
389 index 3a0423d28..aee3d62f1 100644
390 --- a/libcef_dll/ctocpp/views/window_ctocpp.cc
391 +++ b/libcef_dll/ctocpp/views/window_ctocpp.cc
392 @@ -9,7 +9,7 @@
393  // implementations. See the translator.README.txt file in the tools directory
394  // for more information.
395  //
396 -// $hash=b6b0a2a563b475163aa71b20af6ec2ac8c1f0cae$
397 +// $hash=61eb77c4622382d6dda0136187c6acbd093f2e83$
398  //
399  
400  #include "libcef_dll/ctocpp/views/window_ctocpp.h"
401 @@ -49,6 +49,33 @@ CefRefPtr<CefWindow> CefWindow::CreateTopLevelWindow(
402    return CefWindowCToCpp::Wrap(_retval);
403  }
404  
405 +NO_SANITIZE("cfi-icall")
406 +CefRefPtr<CefWindow> CefWindow::CreateTopLevelWindowWithId(
407 +    CefRefPtr<CefWindowDelegate> delegate,
408 +    const CefString& app_id) {
409 +  shutdown_checker::AssertNotShutdown();
410 +
411 +  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
412 +
413 +  // Verify param: delegate; type: refptr_diff
414 +  DCHECK(delegate.get());
415 +  if (!delegate.get()) {
416 +    return nullptr;
417 +  }
418 +  // Verify param: app_id; type: string_byref_const
419 +  DCHECK(!app_id.empty());
420 +  if (app_id.empty()) {
421 +    return nullptr;
422 +  }
423 +
424 +  // Execute
425 +  cef_window_t* _retval = cef_window_create_top_level_with_id(
426 +      CefWindowDelegateCppToC::Wrap(delegate), app_id.GetStruct());
427 +
428 +  // Return type: refptr_same
429 +  return CefWindowCToCpp::Wrap(_retval);
430 +}
431 +
432  // VIRTUAL METHODS - Body may be edited by hand.
433  
434  NO_SANITIZE("cfi-icall") void CefWindowCToCpp::Show() {
435 @@ -707,6 +734,125 @@ NO_SANITIZE("cfi-icall") void CefWindowCToCpp::RemoveAllAccelerators() {
436    _struct->remove_all_accelerators(_struct);
437  }
438  
439 +NO_SANITIZE("cfi-icall")
440 +void CefWindowCToCpp::AglActivateApp(const CefString& app) {
441 +  shutdown_checker::AssertNotShutdown();
442 +
443 +  cef_window_t* _struct = GetStruct();
444 +  if (CEF_MEMBER_MISSING(_struct, agl_activate_app)) {
445 +    return;
446 +  }
447 +
448 +  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
449 +
450 +  // Verify param: app; type: string_byref_const
451 +  DCHECK(!app.empty());
452 +  if (app.empty()) {
453 +    return;
454 +  }
455 +
456 +  // Execute
457 +  _struct->agl_activate_app(_struct, app.GetStruct());
458 +}
459 +
460 +NO_SANITIZE("cfi-icall")
461 +void CefWindowCToCpp::AglSetAppId(const CefString& app_id) {
462 +  shutdown_checker::AssertNotShutdown();
463 +
464 +  cef_window_t* _struct = GetStruct();
465 +  if (CEF_MEMBER_MISSING(_struct, agl_set_app_id)) {
466 +    return;
467 +  }
468 +
469 +  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
470 +
471 +  // Verify param: app_id; type: string_byref_const
472 +  DCHECK(!app_id.empty());
473 +  if (app_id.empty()) {
474 +    return;
475 +  }
476 +
477 +  // Execute
478 +  _struct->agl_set_app_id(_struct, app_id.GetStruct());
479 +}
480 +
481 +NO_SANITIZE("cfi-icall") void CefWindowCToCpp::AglSetAppReady() {
482 +  shutdown_checker::AssertNotShutdown();
483 +
484 +  cef_window_t* _struct = GetStruct();
485 +  if (CEF_MEMBER_MISSING(_struct, agl_set_app_ready)) {
486 +    return;
487 +  }
488 +
489 +  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
490 +
491 +  // Execute
492 +  _struct->agl_set_app_ready(_struct);
493 +}
494 +
495 +NO_SANITIZE("cfi-icall") void CefWindowCToCpp::AglSetBackGroundApp() {
496 +  shutdown_checker::AssertNotShutdown();
497 +
498 +  cef_window_t* _struct = GetStruct();
499 +  if (CEF_MEMBER_MISSING(_struct, agl_set_back_ground_app)) {
500 +    return;
501 +  }
502 +
503 +  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
504 +
505 +  // Execute
506 +  _struct->agl_set_back_ground_app(_struct);
507 +}
508 +
509 +NO_SANITIZE("cfi-icall") void CefWindowCToCpp::AglSetPanelApp(uint32_t edge) {
510 +  shutdown_checker::AssertNotShutdown();
511 +
512 +  cef_window_t* _struct = GetStruct();
513 +  if (CEF_MEMBER_MISSING(_struct, agl_set_panel_app)) {
514 +    return;
515 +  }
516 +
517 +  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
518 +
519 +  // Execute
520 +  _struct->agl_set_panel_app(_struct, edge);
521 +}
522 +
523 +NO_SANITIZE("cfi-icall") bool CefWindowCToCpp::IsSurfaceConfigured() {
524 +  shutdown_checker::AssertNotShutdown();
525 +
526 +  cef_window_t* _struct = GetStruct();
527 +  if (CEF_MEMBER_MISSING(_struct, is_surface_configured)) {
528 +    return false;
529 +  }
530 +
531 +  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
532 +
533 +  // Execute
534 +  int _retval = _struct->is_surface_configured(_struct);
535 +
536 +  // Return type: bool
537 +  return _retval ? true : false;
538 +}
539 +
540 +NO_SANITIZE("cfi-icall")
541 +void CefWindowCToCpp::SetupActivationArea(uint32_t x,
542 +                                          uint32_t y,
543 +                                          uint32_t width,
544 +                                          uint32_t height) {
545 +  shutdown_checker::AssertNotShutdown();
546 +
547 +  cef_window_t* _struct = GetStruct();
548 +  if (CEF_MEMBER_MISSING(_struct, setup_activation_area)) {
549 +    return;
550 +  }
551 +
552 +  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
553 +
554 +  // Execute
555 +  _struct->setup_activation_area(_struct, x, y, width, height);
556 +}
557 +
558  NO_SANITIZE("cfi-icall") CefRefPtr<CefWindow> CefWindowCToCpp::AsWindow() {
559    shutdown_checker::AssertNotShutdown();
560  
561 diff --git a/libcef_dll/ctocpp/views/window_ctocpp.h b/libcef_dll/ctocpp/views/window_ctocpp.h
562 index bc797350c..9931a7a3e 100644
563 --- a/libcef_dll/ctocpp/views/window_ctocpp.h
564 +++ b/libcef_dll/ctocpp/views/window_ctocpp.h
565 @@ -9,7 +9,7 @@
566  // implementations. See the translator.README.txt file in the tools directory
567  // for more information.
568  //
569 -// $hash=2a7aaed7d4296e29dca74345cf2b2d4db221a738$
570 +// $hash=10cca846f56124ef20cd769e018ccfdf0aba26f5$
571  //
572  
573  #ifndef CEF_LIBCEF_DLL_CTOCPP_VIEWS_WINDOW_CTOCPP_H_
574 @@ -86,6 +86,16 @@ class CefWindowCToCpp
575                        bool alt_pressed) override;
576    void RemoveAccelerator(int command_id) override;
577    void RemoveAllAccelerators() override;
578 +  void AglActivateApp(const CefString& app) override;
579 +  void AglSetAppId(const CefString& app_id) override;
580 +  void AglSetAppReady() override;
581 +  void AglSetBackGroundApp() override;
582 +  void AglSetPanelApp(uint32_t edge) override;
583 +  bool IsSurfaceConfigured() override;
584 +  void SetupActivationArea(uint32_t x,
585 +                           uint32_t y,
586 +                           uint32_t width,
587 +                           uint32_t height) override;
588  
589    // CefPanel methods.
590    CefRefPtr<CefWindow> AsWindow() override;
591 diff --git a/libcef_dll/wrapper/libcef_dll_dylib.cc b/libcef_dll/wrapper/libcef_dll_dylib.cc
592 index 21065db3b..b61ea0d4b 100644
593 --- a/libcef_dll/wrapper/libcef_dll_dylib.cc
594 +++ b/libcef_dll/wrapper/libcef_dll_dylib.cc
595 @@ -9,7 +9,7 @@
596  // implementations. See the translator.README.txt file in the tools directory
597  // for more information.
598  //
599 -// $hash=bcad216e5fef8b9c10a895524f8b1201608138f9$
600 +// $hash=51d1746394ff61e17d4fbb3d1415a3b646004563$
601  //
602  
603  #include <dlfcn.h>
604 @@ -249,6 +249,8 @@ struct libcef_pointers {
605    decltype(&cef_scroll_view_create) cef_scroll_view_create;
606    decltype(&cef_textfield_create) cef_textfield_create;
607    decltype(&cef_window_create_top_level) cef_window_create_top_level;
608 +  decltype(&cef_window_create_top_level_with_id)
609 +      cef_window_create_top_level_with_id;
610    decltype(&cef_api_hash) cef_api_hash;
611    decltype(&cef_version_info) cef_version_info;
612    decltype(&cef_get_min_log_level) cef_get_min_log_level;
613 @@ -463,6 +465,7 @@ int libcef_init_pointers(const char* path) {
614    INIT_ENTRY(cef_scroll_view_create);
615    INIT_ENTRY(cef_textfield_create);
616    INIT_ENTRY(cef_window_create_top_level);
617 +  INIT_ENTRY(cef_window_create_top_level_with_id);
618    INIT_ENTRY(cef_api_hash);
619    INIT_ENTRY(cef_version_info);
620    INIT_ENTRY(cef_get_min_log_level);
621 @@ -705,8 +708,8 @@ int cef_create_url(const struct _cef_urlparts_t* parts, cef_string_t* url) {
622  }
623  
624  NO_SANITIZE("cfi-icall")
625 -cef_string_userfree_t cef_format_url_for_security_display(
626 -    const cef_string_t* origin_url) {
627 +cef_string_userfree_t
628 +    cef_format_url_for_security_display(const cef_string_t* origin_url) {
629    return g_libcef_pointers.cef_format_url_for_security_display(origin_url);
630  }
631  
632 @@ -978,9 +981,10 @@ void cef_server_create(const cef_string_t* address,
633  }
634  
635  NO_SANITIZE("cfi-icall")
636 -struct _cef_shared_process_message_builder_t*
637 -cef_shared_process_message_builder_create(const cef_string_t* name,
638 -                                          size_t byte_size) {
639 +struct
640 +    _cef_shared_process_message_builder_t* cef_shared_process_message_builder_create(
641 +        const cef_string_t* name,
642 +        size_t byte_size) {
643    return g_libcef_pointers.cef_shared_process_message_builder_create(name,
644                                                                       byte_size);
645  }
646 @@ -1192,46 +1196,54 @@ struct _cef_translator_test_t* cef_translator_test_create() {
647  }
648  
649  NO_SANITIZE("cfi-icall")
650 -struct _cef_translator_test_ref_ptr_library_t*
651 -cef_translator_test_ref_ptr_library_create(int value) {
652 +struct
653 +    _cef_translator_test_ref_ptr_library_t* cef_translator_test_ref_ptr_library_create(
654 +        int value) {
655    return g_libcef_pointers.cef_translator_test_ref_ptr_library_create(value);
656  }
657  
658  NO_SANITIZE("cfi-icall")
659 -struct _cef_translator_test_ref_ptr_library_child_t*
660 -cef_translator_test_ref_ptr_library_child_create(int value, int other_value) {
661 +struct
662 +    _cef_translator_test_ref_ptr_library_child_t* cef_translator_test_ref_ptr_library_child_create(
663 +        int value,
664 +        int other_value) {
665    return g_libcef_pointers.cef_translator_test_ref_ptr_library_child_create(
666        value, other_value);
667  }
668  
669  NO_SANITIZE("cfi-icall")
670 -struct _cef_translator_test_ref_ptr_library_child_child_t*
671 -cef_translator_test_ref_ptr_library_child_child_create(int value,
672 -                                                       int other_value,
673 -                                                       int other_other_value) {
674 +struct
675 +    _cef_translator_test_ref_ptr_library_child_child_t* cef_translator_test_ref_ptr_library_child_child_create(
676 +        int value,
677 +        int other_value,
678 +        int other_other_value) {
679    return g_libcef_pointers
680        .cef_translator_test_ref_ptr_library_child_child_create(
681            value, other_value, other_other_value);
682  }
683  
684  NO_SANITIZE("cfi-icall")
685 -struct _cef_translator_test_scoped_library_t*
686 -cef_translator_test_scoped_library_create(int value) {
687 +struct
688 +    _cef_translator_test_scoped_library_t* cef_translator_test_scoped_library_create(
689 +        int value) {
690    return g_libcef_pointers.cef_translator_test_scoped_library_create(value);
691  }
692  
693  NO_SANITIZE("cfi-icall")
694 -struct _cef_translator_test_scoped_library_child_t*
695 -cef_translator_test_scoped_library_child_create(int value, int other_value) {
696 +struct
697 +    _cef_translator_test_scoped_library_child_t* cef_translator_test_scoped_library_child_create(
698 +        int value,
699 +        int other_value) {
700    return g_libcef_pointers.cef_translator_test_scoped_library_child_create(
701        value, other_value);
702  }
703  
704  NO_SANITIZE("cfi-icall")
705 -struct _cef_translator_test_scoped_library_child_child_t*
706 -cef_translator_test_scoped_library_child_child_create(int value,
707 -                                                      int other_value,
708 -                                                      int other_other_value) {
709 +struct
710 +    _cef_translator_test_scoped_library_child_child_t* cef_translator_test_scoped_library_child_child_create(
711 +        int value,
712 +        int other_value,
713 +        int other_other_value) {
714    return g_libcef_pointers
715        .cef_translator_test_scoped_library_child_child_create(value, other_value,
716                                                               other_other_value);
717 @@ -1284,14 +1296,14 @@ void cef_display_get_alls(size_t* displaysCount,
718  }
719  
720  NO_SANITIZE("cfi-icall")
721 -cef_point_t cef_display_convert_screen_point_to_pixels(
722 -    const cef_point_t* point) {
723 +cef_point_t
724 +    cef_display_convert_screen_point_to_pixels(const cef_point_t* point) {
725    return g_libcef_pointers.cef_display_convert_screen_point_to_pixels(point);
726  }
727  
728  NO_SANITIZE("cfi-icall")
729 -cef_point_t cef_display_convert_screen_point_from_pixels(
730 -    const cef_point_t* point) {
731 +cef_point_t
732 +    cef_display_convert_screen_point_from_pixels(const cef_point_t* point) {
733    return g_libcef_pointers.cef_display_convert_screen_point_from_pixels(point);
734  }
735  
736 @@ -1342,6 +1354,14 @@ struct _cef_window_t* cef_window_create_top_level(
737    return g_libcef_pointers.cef_window_create_top_level(delegate);
738  }
739  
740 +NO_SANITIZE("cfi-icall")
741 +struct _cef_window_t* cef_window_create_top_level_with_id(
742 +    struct _cef_window_delegate_t* delegate,
743 +    const cef_string_t* app_id) {
744 +  return g_libcef_pointers.cef_window_create_top_level_with_id(delegate,
745 +                                                               app_id);
746 +}
747 +
748  NO_SANITIZE("cfi-icall") const char* cef_api_hash(int entry) {
749    return g_libcef_pointers.cef_api_hash(entry);
750  }
751 -- 
752 2.42.1
753