1 // Copyright (c) 2022 The Chromium Embedded Framework Authors. All rights
2 // reserved. Use of this source code is governed by a BSD-style license that
3 // can be found in the LICENSE file.
4 //
5 // ---------------------------------------------------------------------------
6 //
7 // This file was generated by the CEF translator tool. If making changes by
8 // hand only do so within the body of existing method and function
9 // implementations. See the translator.README.txt file in the tools directory
10 // for more information.
11 //
12 // $hash=360b248f7f43cd62a111f59a79fc81b40f8d4023$
13 //
14
15 #include "libcef_dll/cpptoc/views/window_cpptoc.h"
16 #include "libcef_dll/cpptoc/image_cpptoc.h"
17 #include "libcef_dll/cpptoc/menu_model_cpptoc.h"
18 #include "libcef_dll/cpptoc/views/box_layout_cpptoc.h"
19 #include "libcef_dll/cpptoc/views/browser_view_cpptoc.h"
20 #include "libcef_dll/cpptoc/views/button_cpptoc.h"
21 #include "libcef_dll/cpptoc/views/display_cpptoc.h"
22 #include "libcef_dll/cpptoc/views/fill_layout_cpptoc.h"
23 #include "libcef_dll/cpptoc/views/layout_cpptoc.h"
24 #include "libcef_dll/cpptoc/views/overlay_controller_cpptoc.h"
25 #include "libcef_dll/cpptoc/views/panel_cpptoc.h"
26 #include "libcef_dll/cpptoc/views/scroll_view_cpptoc.h"
27 #include "libcef_dll/cpptoc/views/textfield_cpptoc.h"
28 #include "libcef_dll/cpptoc/views/view_cpptoc.h"
29 #include "libcef_dll/ctocpp/views/view_delegate_ctocpp.h"
30 #include "libcef_dll/ctocpp/views/window_delegate_ctocpp.h"
31 #include "libcef_dll/shutdown_checker.h"
32
33 // GLOBAL FUNCTIONS - Body may be edited by hand.
34
cef_window_create_top_level(struct _cef_window_delegate_t * delegate)35 CEF_EXPORT cef_window_t* cef_window_create_top_level(
36 struct _cef_window_delegate_t* delegate) {
37 shutdown_checker::AssertNotShutdown();
38
39 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
40
41 // Unverified params: delegate
42
43 // Execute
44 CefRefPtr<CefWindow> _retval =
45 CefWindow::CreateTopLevelWindow(CefWindowDelegateCToCpp::Wrap(delegate));
46
47 // Return type: refptr_same
48 return CefWindowCppToC::Wrap(_retval);
49 }
50
51 namespace {
52
53 // MEMBER FUNCTIONS - Body may be edited by hand.
54
window_show(struct _cef_window_t * self)55 void CEF_CALLBACK window_show(struct _cef_window_t* self) {
56 shutdown_checker::AssertNotShutdown();
57
58 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
59
60 DCHECK(self);
61 if (!self)
62 return;
63
64 // Execute
65 CefWindowCppToC::Get(self)->Show();
66 }
67
window_hide(struct _cef_window_t * self)68 void CEF_CALLBACK window_hide(struct _cef_window_t* self) {
69 shutdown_checker::AssertNotShutdown();
70
71 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
72
73 DCHECK(self);
74 if (!self)
75 return;
76
77 // Execute
78 CefWindowCppToC::Get(self)->Hide();
79 }
80
window_center_window(struct _cef_window_t * self,const cef_size_t * size)81 void CEF_CALLBACK window_center_window(struct _cef_window_t* self,
82 const cef_size_t* size) {
83 shutdown_checker::AssertNotShutdown();
84
85 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
86
87 DCHECK(self);
88 if (!self)
89 return;
90 // Verify param: size; type: simple_byref_const
91 DCHECK(size);
92 if (!size)
93 return;
94
95 // Translate param: size; type: simple_byref_const
96 CefSize sizeVal = size ? *size : CefSize();
97
98 // Execute
99 CefWindowCppToC::Get(self)->CenterWindow(sizeVal);
100 }
101
window_close(struct _cef_window_t * self)102 void CEF_CALLBACK window_close(struct _cef_window_t* self) {
103 shutdown_checker::AssertNotShutdown();
104
105 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
106
107 DCHECK(self);
108 if (!self)
109 return;
110
111 // Execute
112 CefWindowCppToC::Get(self)->Close();
113 }
114
window_is_closed(struct _cef_window_t * self)115 int CEF_CALLBACK window_is_closed(struct _cef_window_t* self) {
116 shutdown_checker::AssertNotShutdown();
117
118 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
119
120 DCHECK(self);
121 if (!self)
122 return 0;
123
124 // Execute
125 bool _retval = CefWindowCppToC::Get(self)->IsClosed();
126
127 // Return type: bool
128 return _retval;
129 }
130
window_activate(struct _cef_window_t * self)131 void CEF_CALLBACK window_activate(struct _cef_window_t* self) {
132 shutdown_checker::AssertNotShutdown();
133
134 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
135
136 DCHECK(self);
137 if (!self)
138 return;
139
140 // Execute
141 CefWindowCppToC::Get(self)->Activate();
142 }
143
window_deactivate(struct _cef_window_t * self)144 void CEF_CALLBACK window_deactivate(struct _cef_window_t* self) {
145 shutdown_checker::AssertNotShutdown();
146
147 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
148
149 DCHECK(self);
150 if (!self)
151 return;
152
153 // Execute
154 CefWindowCppToC::Get(self)->Deactivate();
155 }
156
window_is_active(struct _cef_window_t * self)157 int CEF_CALLBACK window_is_active(struct _cef_window_t* self) {
158 shutdown_checker::AssertNotShutdown();
159
160 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
161
162 DCHECK(self);
163 if (!self)
164 return 0;
165
166 // Execute
167 bool _retval = CefWindowCppToC::Get(self)->IsActive();
168
169 // Return type: bool
170 return _retval;
171 }
172
window_bring_to_top(struct _cef_window_t * self)173 void CEF_CALLBACK window_bring_to_top(struct _cef_window_t* self) {
174 shutdown_checker::AssertNotShutdown();
175
176 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
177
178 DCHECK(self);
179 if (!self)
180 return;
181
182 // Execute
183 CefWindowCppToC::Get(self)->BringToTop();
184 }
185
window_set_always_on_top(struct _cef_window_t * self,int on_top)186 void CEF_CALLBACK window_set_always_on_top(struct _cef_window_t* self,
187 int on_top) {
188 shutdown_checker::AssertNotShutdown();
189
190 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
191
192 DCHECK(self);
193 if (!self)
194 return;
195
196 // Execute
197 CefWindowCppToC::Get(self)->SetAlwaysOnTop(on_top ? true : false);
198 }
199
window_is_always_on_top(struct _cef_window_t * self)200 int CEF_CALLBACK window_is_always_on_top(struct _cef_window_t* self) {
201 shutdown_checker::AssertNotShutdown();
202
203 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
204
205 DCHECK(self);
206 if (!self)
207 return 0;
208
209 // Execute
210 bool _retval = CefWindowCppToC::Get(self)->IsAlwaysOnTop();
211
212 // Return type: bool
213 return _retval;
214 }
215
window_maximize(struct _cef_window_t * self)216 void CEF_CALLBACK window_maximize(struct _cef_window_t* self) {
217 shutdown_checker::AssertNotShutdown();
218
219 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
220
221 DCHECK(self);
222 if (!self)
223 return;
224
225 // Execute
226 CefWindowCppToC::Get(self)->Maximize();
227 }
228
window_minimize(struct _cef_window_t * self)229 void CEF_CALLBACK window_minimize(struct _cef_window_t* self) {
230 shutdown_checker::AssertNotShutdown();
231
232 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
233
234 DCHECK(self);
235 if (!self)
236 return;
237
238 // Execute
239 CefWindowCppToC::Get(self)->Minimize();
240 }
241
window_restore(struct _cef_window_t * self)242 void CEF_CALLBACK window_restore(struct _cef_window_t* self) {
243 shutdown_checker::AssertNotShutdown();
244
245 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
246
247 DCHECK(self);
248 if (!self)
249 return;
250
251 // Execute
252 CefWindowCppToC::Get(self)->Restore();
253 }
254
window_set_fullscreen(struct _cef_window_t * self,int fullscreen)255 void CEF_CALLBACK window_set_fullscreen(struct _cef_window_t* self,
256 int fullscreen) {
257 shutdown_checker::AssertNotShutdown();
258
259 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
260
261 DCHECK(self);
262 if (!self)
263 return;
264
265 // Execute
266 CefWindowCppToC::Get(self)->SetFullscreen(fullscreen ? true : false);
267 }
268
window_is_maximized(struct _cef_window_t * self)269 int CEF_CALLBACK window_is_maximized(struct _cef_window_t* self) {
270 shutdown_checker::AssertNotShutdown();
271
272 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
273
274 DCHECK(self);
275 if (!self)
276 return 0;
277
278 // Execute
279 bool _retval = CefWindowCppToC::Get(self)->IsMaximized();
280
281 // Return type: bool
282 return _retval;
283 }
284
window_is_minimized(struct _cef_window_t * self)285 int CEF_CALLBACK window_is_minimized(struct _cef_window_t* self) {
286 shutdown_checker::AssertNotShutdown();
287
288 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
289
290 DCHECK(self);
291 if (!self)
292 return 0;
293
294 // Execute
295 bool _retval = CefWindowCppToC::Get(self)->IsMinimized();
296
297 // Return type: bool
298 return _retval;
299 }
300
window_is_fullscreen(struct _cef_window_t * self)301 int CEF_CALLBACK window_is_fullscreen(struct _cef_window_t* self) {
302 shutdown_checker::AssertNotShutdown();
303
304 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
305
306 DCHECK(self);
307 if (!self)
308 return 0;
309
310 // Execute
311 bool _retval = CefWindowCppToC::Get(self)->IsFullscreen();
312
313 // Return type: bool
314 return _retval;
315 }
316
window_set_title(struct _cef_window_t * self,const cef_string_t * title)317 void CEF_CALLBACK window_set_title(struct _cef_window_t* self,
318 const cef_string_t* title) {
319 shutdown_checker::AssertNotShutdown();
320
321 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
322
323 DCHECK(self);
324 if (!self)
325 return;
326 // Unverified params: title
327
328 // Execute
329 CefWindowCppToC::Get(self)->SetTitle(CefString(title));
330 }
331
332 cef_string_userfree_t CEF_CALLBACK
window_get_title(struct _cef_window_t * self)333 window_get_title(struct _cef_window_t* self) {
334 shutdown_checker::AssertNotShutdown();
335
336 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
337
338 DCHECK(self);
339 if (!self)
340 return NULL;
341
342 // Execute
343 CefString _retval = CefWindowCppToC::Get(self)->GetTitle();
344
345 // Return type: string
346 return _retval.DetachToUserFree();
347 }
348
window_set_window_icon(struct _cef_window_t * self,cef_image_t * image)349 void CEF_CALLBACK window_set_window_icon(struct _cef_window_t* self,
350 cef_image_t* image) {
351 shutdown_checker::AssertNotShutdown();
352
353 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
354
355 DCHECK(self);
356 if (!self)
357 return;
358 // Verify param: image; type: refptr_same
359 DCHECK(image);
360 if (!image)
361 return;
362
363 // Execute
364 CefWindowCppToC::Get(self)->SetWindowIcon(CefImageCppToC::Unwrap(image));
365 }
366
window_get_window_icon(struct _cef_window_t * self)367 cef_image_t* CEF_CALLBACK window_get_window_icon(struct _cef_window_t* self) {
368 shutdown_checker::AssertNotShutdown();
369
370 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
371
372 DCHECK(self);
373 if (!self)
374 return NULL;
375
376 // Execute
377 CefRefPtr<CefImage> _retval = CefWindowCppToC::Get(self)->GetWindowIcon();
378
379 // Return type: refptr_same
380 return CefImageCppToC::Wrap(_retval);
381 }
382
window_set_window_app_icon(struct _cef_window_t * self,cef_image_t * image)383 void CEF_CALLBACK window_set_window_app_icon(struct _cef_window_t* self,
384 cef_image_t* image) {
385 shutdown_checker::AssertNotShutdown();
386
387 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
388
389 DCHECK(self);
390 if (!self)
391 return;
392 // Verify param: image; type: refptr_same
393 DCHECK(image);
394 if (!image)
395 return;
396
397 // Execute
398 CefWindowCppToC::Get(self)->SetWindowAppIcon(CefImageCppToC::Unwrap(image));
399 }
400
401 cef_image_t* CEF_CALLBACK
window_get_window_app_icon(struct _cef_window_t * self)402 window_get_window_app_icon(struct _cef_window_t* self) {
403 shutdown_checker::AssertNotShutdown();
404
405 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
406
407 DCHECK(self);
408 if (!self)
409 return NULL;
410
411 // Execute
412 CefRefPtr<CefImage> _retval = CefWindowCppToC::Get(self)->GetWindowAppIcon();
413
414 // Return type: refptr_same
415 return CefImageCppToC::Wrap(_retval);
416 }
417
418 cef_overlay_controller_t* CEF_CALLBACK
window_add_overlay_view(struct _cef_window_t * self,cef_view_t * view,cef_docking_mode_t docking_mode)419 window_add_overlay_view(struct _cef_window_t* self,
420 cef_view_t* view,
421 cef_docking_mode_t docking_mode) {
422 shutdown_checker::AssertNotShutdown();
423
424 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
425
426 DCHECK(self);
427 if (!self)
428 return NULL;
429 // Verify param: view; type: refptr_same
430 DCHECK(view);
431 if (!view)
432 return NULL;
433
434 // Execute
435 CefRefPtr<CefOverlayController> _retval =
436 CefWindowCppToC::Get(self)->AddOverlayView(CefViewCppToC::Unwrap(view),
437 docking_mode);
438
439 // Return type: refptr_same
440 return CefOverlayControllerCppToC::Wrap(_retval);
441 }
442
window_show_menu(struct _cef_window_t * self,cef_menu_model_t * menu_model,const cef_point_t * screen_point,cef_menu_anchor_position_t anchor_position)443 void CEF_CALLBACK window_show_menu(struct _cef_window_t* self,
444 cef_menu_model_t* menu_model,
445 const cef_point_t* screen_point,
446 cef_menu_anchor_position_t anchor_position) {
447 shutdown_checker::AssertNotShutdown();
448
449 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
450
451 DCHECK(self);
452 if (!self)
453 return;
454 // Verify param: menu_model; type: refptr_same
455 DCHECK(menu_model);
456 if (!menu_model)
457 return;
458 // Verify param: screen_point; type: simple_byref_const
459 DCHECK(screen_point);
460 if (!screen_point)
461 return;
462
463 // Translate param: screen_point; type: simple_byref_const
464 CefPoint screen_pointVal = screen_point ? *screen_point : CefPoint();
465
466 // Execute
467 CefWindowCppToC::Get(self)->ShowMenu(CefMenuModelCppToC::Unwrap(menu_model),
468 screen_pointVal, anchor_position);
469 }
470
window_cancel_menu(struct _cef_window_t * self)471 void CEF_CALLBACK window_cancel_menu(struct _cef_window_t* self) {
472 shutdown_checker::AssertNotShutdown();
473
474 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
475
476 DCHECK(self);
477 if (!self)
478 return;
479
480 // Execute
481 CefWindowCppToC::Get(self)->CancelMenu();
482 }
483
window_get_display(struct _cef_window_t * self)484 cef_display_t* CEF_CALLBACK window_get_display(struct _cef_window_t* self) {
485 shutdown_checker::AssertNotShutdown();
486
487 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
488
489 DCHECK(self);
490 if (!self)
491 return NULL;
492
493 // Execute
494 CefRefPtr<CefDisplay> _retval = CefWindowCppToC::Get(self)->GetDisplay();
495
496 // Return type: refptr_same
497 return CefDisplayCppToC::Wrap(_retval);
498 }
499
500 cef_rect_t CEF_CALLBACK
window_get_client_area_bounds_in_screen(struct _cef_window_t * self)501 window_get_client_area_bounds_in_screen(struct _cef_window_t* self) {
502 shutdown_checker::AssertNotShutdown();
503
504 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
505
506 DCHECK(self);
507 if (!self)
508 return CefRect();
509
510 // Execute
511 cef_rect_t _retval =
512 CefWindowCppToC::Get(self)->GetClientAreaBoundsInScreen();
513
514 // Return type: simple
515 return _retval;
516 }
517
518 void CEF_CALLBACK
window_set_draggable_regions(struct _cef_window_t * self,size_t regionsCount,cef_draggable_region_t const * regions)519 window_set_draggable_regions(struct _cef_window_t* self,
520 size_t regionsCount,
521 cef_draggable_region_t const* regions) {
522 shutdown_checker::AssertNotShutdown();
523
524 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
525
526 DCHECK(self);
527 if (!self)
528 return;
529 // Unverified params: regions
530
531 // Translate param: regions; type: simple_vec_byref_const
532 std::vector<CefDraggableRegion> regionsList;
533 if (regionsCount > 0) {
534 for (size_t i = 0; i < regionsCount; ++i) {
535 CefDraggableRegion regionsVal = regions[i];
536 regionsList.push_back(regionsVal);
537 }
538 }
539
540 // Execute
541 CefWindowCppToC::Get(self)->SetDraggableRegions(regionsList);
542 }
543
544 cef_window_handle_t CEF_CALLBACK
window_get_window_handle(struct _cef_window_t * self)545 window_get_window_handle(struct _cef_window_t* self) {
546 shutdown_checker::AssertNotShutdown();
547
548 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
549
550 DCHECK(self);
551 if (!self)
552 return kNullWindowHandle;
553
554 // Execute
555 cef_window_handle_t _retval = CefWindowCppToC::Get(self)->GetWindowHandle();
556
557 // Return type: simple
558 return _retval;
559 }
560
window_send_key_press(struct _cef_window_t * self,int key_code,uint32 event_flags)561 void CEF_CALLBACK window_send_key_press(struct _cef_window_t* self,
562 int key_code,
563 uint32 event_flags) {
564 shutdown_checker::AssertNotShutdown();
565
566 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
567
568 DCHECK(self);
569 if (!self)
570 return;
571
572 // Execute
573 CefWindowCppToC::Get(self)->SendKeyPress(key_code, event_flags);
574 }
575
window_send_mouse_move(struct _cef_window_t * self,int screen_x,int screen_y)576 void CEF_CALLBACK window_send_mouse_move(struct _cef_window_t* self,
577 int screen_x,
578 int screen_y) {
579 shutdown_checker::AssertNotShutdown();
580
581 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
582
583 DCHECK(self);
584 if (!self)
585 return;
586
587 // Execute
588 CefWindowCppToC::Get(self)->SendMouseMove(screen_x, screen_y);
589 }
590
window_send_mouse_events(struct _cef_window_t * self,cef_mouse_button_type_t button,int mouse_down,int mouse_up)591 void CEF_CALLBACK window_send_mouse_events(struct _cef_window_t* self,
592 cef_mouse_button_type_t button,
593 int mouse_down,
594 int mouse_up) {
595 shutdown_checker::AssertNotShutdown();
596
597 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
598
599 DCHECK(self);
600 if (!self)
601 return;
602
603 // Execute
604 CefWindowCppToC::Get(self)->SendMouseEvents(button, mouse_down ? true : false,
605 mouse_up ? true : false);
606 }
607
window_set_accelerator(struct _cef_window_t * self,int command_id,int key_code,int shift_pressed,int ctrl_pressed,int alt_pressed)608 void CEF_CALLBACK window_set_accelerator(struct _cef_window_t* self,
609 int command_id,
610 int key_code,
611 int shift_pressed,
612 int ctrl_pressed,
613 int alt_pressed) {
614 shutdown_checker::AssertNotShutdown();
615
616 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
617
618 DCHECK(self);
619 if (!self)
620 return;
621
622 // Execute
623 CefWindowCppToC::Get(self)->SetAccelerator(
624 command_id, key_code, shift_pressed ? true : false,
625 ctrl_pressed ? true : false, alt_pressed ? true : false);
626 }
627
window_remove_accelerator(struct _cef_window_t * self,int command_id)628 void CEF_CALLBACK window_remove_accelerator(struct _cef_window_t* self,
629 int command_id) {
630 shutdown_checker::AssertNotShutdown();
631
632 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
633
634 DCHECK(self);
635 if (!self)
636 return;
637
638 // Execute
639 CefWindowCppToC::Get(self)->RemoveAccelerator(command_id);
640 }
641
window_remove_all_accelerators(struct _cef_window_t * self)642 void CEF_CALLBACK window_remove_all_accelerators(struct _cef_window_t* self) {
643 shutdown_checker::AssertNotShutdown();
644
645 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
646
647 DCHECK(self);
648 if (!self)
649 return;
650
651 // Execute
652 CefWindowCppToC::Get(self)->RemoveAllAccelerators();
653 }
654
window_as_window(struct _cef_panel_t * self)655 struct _cef_window_t* CEF_CALLBACK window_as_window(struct _cef_panel_t* self) {
656 shutdown_checker::AssertNotShutdown();
657
658 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
659
660 DCHECK(self);
661 if (!self)
662 return NULL;
663
664 // Execute
665 CefRefPtr<CefWindow> _retval =
666 CefWindowCppToC::Get(reinterpret_cast<cef_window_t*>(self))->AsWindow();
667
668 // Return type: refptr_same
669 return CefWindowCppToC::Wrap(_retval);
670 }
671
672 cef_fill_layout_t* CEF_CALLBACK
window_set_to_fill_layout(struct _cef_panel_t * self)673 window_set_to_fill_layout(struct _cef_panel_t* self) {
674 shutdown_checker::AssertNotShutdown();
675
676 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
677
678 DCHECK(self);
679 if (!self)
680 return NULL;
681
682 // Execute
683 CefRefPtr<CefFillLayout> _retval =
684 CefWindowCppToC::Get(reinterpret_cast<cef_window_t*>(self))
685 ->SetToFillLayout();
686
687 // Return type: refptr_same
688 return CefFillLayoutCppToC::Wrap(_retval);
689 }
690
691 cef_box_layout_t* CEF_CALLBACK
window_set_to_box_layout(struct _cef_panel_t * self,const struct _cef_box_layout_settings_t * settings)692 window_set_to_box_layout(struct _cef_panel_t* self,
693 const struct _cef_box_layout_settings_t* settings) {
694 shutdown_checker::AssertNotShutdown();
695
696 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
697
698 DCHECK(self);
699 if (!self)
700 return NULL;
701 // Verify param: settings; type: struct_byref_const
702 DCHECK(settings);
703 if (!settings)
704 return NULL;
705
706 // Translate param: settings; type: struct_byref_const
707 CefBoxLayoutSettings settingsObj;
708 if (settings)
709 settingsObj.Set(*settings, false);
710
711 // Execute
712 CefRefPtr<CefBoxLayout> _retval =
713 CefWindowCppToC::Get(reinterpret_cast<cef_window_t*>(self))
714 ->SetToBoxLayout(settingsObj);
715
716 // Return type: refptr_same
717 return CefBoxLayoutCppToC::Wrap(_retval);
718 }
719
window_get_layout(struct _cef_panel_t * self)720 cef_layout_t* CEF_CALLBACK window_get_layout(struct _cef_panel_t* self) {
721 shutdown_checker::AssertNotShutdown();
722
723 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
724
725 DCHECK(self);
726 if (!self)
727 return NULL;
728
729 // Execute
730 CefRefPtr<CefLayout> _retval =
731 CefWindowCppToC::Get(reinterpret_cast<cef_window_t*>(self))->GetLayout();
732
733 // Return type: refptr_same
734 return CefLayoutCppToC::Wrap(_retval);
735 }
736
window_layout(struct _cef_panel_t * self)737 void CEF_CALLBACK window_layout(struct _cef_panel_t* self) {
738 shutdown_checker::AssertNotShutdown();
739
740 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
741
742 DCHECK(self);
743 if (!self)
744 return;
745
746 // Execute
747 CefWindowCppToC::Get(reinterpret_cast<cef_window_t*>(self))->Layout();
748 }
749
window_add_child_view(struct _cef_panel_t * self,cef_view_t * view)750 void CEF_CALLBACK window_add_child_view(struct _cef_panel_t* self,
751 cef_view_t* view) {
752 shutdown_checker::AssertNotShutdown();
753
754 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
755
756 DCHECK(self);
757 if (!self)
758 return;
759 // Verify param: view; type: refptr_same
760 DCHECK(view);
761 if (!view)
762 return;
763
764 // Execute
765 CefWindowCppToC::Get(reinterpret_cast<cef_window_t*>(self))
766 ->AddChildView(CefViewCppToC::Unwrap(view));
767 }
768
window_add_child_view_at(struct _cef_panel_t * self,cef_view_t * view,int index)769 void CEF_CALLBACK window_add_child_view_at(struct _cef_panel_t* self,
770 cef_view_t* view,
771 int index) {
772 shutdown_checker::AssertNotShutdown();
773
774 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
775
776 DCHECK(self);
777 if (!self)
778 return;
779 // Verify param: view; type: refptr_same
780 DCHECK(view);
781 if (!view)
782 return;
783 // Verify param: index; type: simple_byval
784 DCHECK_GE(index, 0);
785 if (index < 0)
786 return;
787
788 // Execute
789 CefWindowCppToC::Get(reinterpret_cast<cef_window_t*>(self))
790 ->AddChildViewAt(CefViewCppToC::Unwrap(view), index);
791 }
792
window_reorder_child_view(struct _cef_panel_t * self,cef_view_t * view,int index)793 void CEF_CALLBACK window_reorder_child_view(struct _cef_panel_t* self,
794 cef_view_t* view,
795 int index) {
796 shutdown_checker::AssertNotShutdown();
797
798 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
799
800 DCHECK(self);
801 if (!self)
802 return;
803 // Verify param: view; type: refptr_same
804 DCHECK(view);
805 if (!view)
806 return;
807
808 // Execute
809 CefWindowCppToC::Get(reinterpret_cast<cef_window_t*>(self))
810 ->ReorderChildView(CefViewCppToC::Unwrap(view), index);
811 }
812
window_remove_child_view(struct _cef_panel_t * self,cef_view_t * view)813 void CEF_CALLBACK window_remove_child_view(struct _cef_panel_t* self,
814 cef_view_t* view) {
815 shutdown_checker::AssertNotShutdown();
816
817 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
818
819 DCHECK(self);
820 if (!self)
821 return;
822 // Verify param: view; type: refptr_same
823 DCHECK(view);
824 if (!view)
825 return;
826
827 // Execute
828 CefWindowCppToC::Get(reinterpret_cast<cef_window_t*>(self))
829 ->RemoveChildView(CefViewCppToC::Unwrap(view));
830 }
831
window_remove_all_child_views(struct _cef_panel_t * self)832 void CEF_CALLBACK window_remove_all_child_views(struct _cef_panel_t* self) {
833 shutdown_checker::AssertNotShutdown();
834
835 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
836
837 DCHECK(self);
838 if (!self)
839 return;
840
841 // Execute
842 CefWindowCppToC::Get(reinterpret_cast<cef_window_t*>(self))
843 ->RemoveAllChildViews();
844 }
845
window_get_child_view_count(struct _cef_panel_t * self)846 size_t CEF_CALLBACK window_get_child_view_count(struct _cef_panel_t* self) {
847 shutdown_checker::AssertNotShutdown();
848
849 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
850
851 DCHECK(self);
852 if (!self)
853 return 0;
854
855 // Execute
856 size_t _retval = CefWindowCppToC::Get(reinterpret_cast<cef_window_t*>(self))
857 ->GetChildViewCount();
858
859 // Return type: simple
860 return _retval;
861 }
862
window_get_child_view_at(struct _cef_panel_t * self,int index)863 cef_view_t* CEF_CALLBACK window_get_child_view_at(struct _cef_panel_t* self,
864 int index) {
865 shutdown_checker::AssertNotShutdown();
866
867 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
868
869 DCHECK(self);
870 if (!self)
871 return NULL;
872 // Verify param: index; type: simple_byval
873 DCHECK_GE(index, 0);
874 if (index < 0)
875 return NULL;
876
877 // Execute
878 CefRefPtr<CefView> _retval =
879 CefWindowCppToC::Get(reinterpret_cast<cef_window_t*>(self))
880 ->GetChildViewAt(index);
881
882 // Return type: refptr_same
883 return CefViewCppToC::Wrap(_retval);
884 }
885
886 cef_browser_view_t* CEF_CALLBACK
window_as_browser_view(struct _cef_view_t * self)887 window_as_browser_view(struct _cef_view_t* self) {
888 shutdown_checker::AssertNotShutdown();
889
890 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
891
892 DCHECK(self);
893 if (!self)
894 return NULL;
895
896 // Execute
897 CefRefPtr<CefBrowserView> _retval =
898 CefWindowCppToC::Get(reinterpret_cast<cef_window_t*>(self))
899 ->AsBrowserView();
900
901 // Return type: refptr_same
902 return CefBrowserViewCppToC::Wrap(_retval);
903 }
904
window_as_button(struct _cef_view_t * self)905 cef_button_t* CEF_CALLBACK window_as_button(struct _cef_view_t* self) {
906 shutdown_checker::AssertNotShutdown();
907
908 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
909
910 DCHECK(self);
911 if (!self)
912 return NULL;
913
914 // Execute
915 CefRefPtr<CefButton> _retval =
916 CefWindowCppToC::Get(reinterpret_cast<cef_window_t*>(self))->AsButton();
917
918 // Return type: refptr_same
919 return CefButtonCppToC::Wrap(_retval);
920 }
921
window_as_panel(struct _cef_view_t * self)922 cef_panel_t* CEF_CALLBACK window_as_panel(struct _cef_view_t* self) {
923 shutdown_checker::AssertNotShutdown();
924
925 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
926
927 DCHECK(self);
928 if (!self)
929 return NULL;
930
931 // Execute
932 CefRefPtr<CefPanel> _retval =
933 CefWindowCppToC::Get(reinterpret_cast<cef_window_t*>(self))->AsPanel();
934
935 // Return type: refptr_same
936 return CefPanelCppToC::Wrap(_retval);
937 }
938
939 cef_scroll_view_t* CEF_CALLBACK
window_as_scroll_view(struct _cef_view_t * self)940 window_as_scroll_view(struct _cef_view_t* self) {
941 shutdown_checker::AssertNotShutdown();
942
943 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
944
945 DCHECK(self);
946 if (!self)
947 return NULL;
948
949 // Execute
950 CefRefPtr<CefScrollView> _retval =
951 CefWindowCppToC::Get(reinterpret_cast<cef_window_t*>(self))
952 ->AsScrollView();
953
954 // Return type: refptr_same
955 return CefScrollViewCppToC::Wrap(_retval);
956 }
957
window_as_textfield(struct _cef_view_t * self)958 cef_textfield_t* CEF_CALLBACK window_as_textfield(struct _cef_view_t* self) {
959 shutdown_checker::AssertNotShutdown();
960
961 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
962
963 DCHECK(self);
964 if (!self)
965 return NULL;
966
967 // Execute
968 CefRefPtr<CefTextfield> _retval =
969 CefWindowCppToC::Get(reinterpret_cast<cef_window_t*>(self))
970 ->AsTextfield();
971
972 // Return type: refptr_same
973 return CefTextfieldCppToC::Wrap(_retval);
974 }
975
976 cef_string_userfree_t CEF_CALLBACK
window_get_type_string(struct _cef_view_t * self)977 window_get_type_string(struct _cef_view_t* self) {
978 shutdown_checker::AssertNotShutdown();
979
980 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
981
982 DCHECK(self);
983 if (!self)
984 return NULL;
985
986 // Execute
987 CefString _retval =
988 CefWindowCppToC::Get(reinterpret_cast<cef_window_t*>(self))
989 ->GetTypeString();
990
991 // Return type: string
992 return _retval.DetachToUserFree();
993 }
994
window_to_string(struct _cef_view_t * self,int include_children)995 cef_string_userfree_t CEF_CALLBACK window_to_string(struct _cef_view_t* self,
996 int include_children) {
997 shutdown_checker::AssertNotShutdown();
998
999 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1000
1001 DCHECK(self);
1002 if (!self)
1003 return NULL;
1004
1005 // Execute
1006 CefString _retval =
1007 CefWindowCppToC::Get(reinterpret_cast<cef_window_t*>(self))
1008 ->ToString(include_children ? true : false);
1009
1010 // Return type: string
1011 return _retval.DetachToUserFree();
1012 }
1013
window_is_valid(struct _cef_view_t * self)1014 int CEF_CALLBACK window_is_valid(struct _cef_view_t* self) {
1015 shutdown_checker::AssertNotShutdown();
1016
1017 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1018
1019 DCHECK(self);
1020 if (!self)
1021 return 0;
1022
1023 // Execute
1024 bool _retval =
1025 CefWindowCppToC::Get(reinterpret_cast<cef_window_t*>(self))->IsValid();
1026
1027 // Return type: bool
1028 return _retval;
1029 }
1030
window_is_attached(struct _cef_view_t * self)1031 int CEF_CALLBACK window_is_attached(struct _cef_view_t* self) {
1032 shutdown_checker::AssertNotShutdown();
1033
1034 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1035
1036 DCHECK(self);
1037 if (!self)
1038 return 0;
1039
1040 // Execute
1041 bool _retval =
1042 CefWindowCppToC::Get(reinterpret_cast<cef_window_t*>(self))->IsAttached();
1043
1044 // Return type: bool
1045 return _retval;
1046 }
1047
window_is_same(struct _cef_view_t * self,cef_view_t * that)1048 int CEF_CALLBACK window_is_same(struct _cef_view_t* self, cef_view_t* that) {
1049 shutdown_checker::AssertNotShutdown();
1050
1051 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1052
1053 DCHECK(self);
1054 if (!self)
1055 return 0;
1056 // Verify param: that; type: refptr_same
1057 DCHECK(that);
1058 if (!that)
1059 return 0;
1060
1061 // Execute
1062 bool _retval = CefWindowCppToC::Get(reinterpret_cast<cef_window_t*>(self))
1063 ->IsSame(CefViewCppToC::Unwrap(that));
1064
1065 // Return type: bool
1066 return _retval;
1067 }
1068
1069 cef_view_delegate_t* CEF_CALLBACK
window_get_delegate(struct _cef_view_t * self)1070 window_get_delegate(struct _cef_view_t* self) {
1071 shutdown_checker::AssertNotShutdown();
1072
1073 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1074
1075 DCHECK(self);
1076 if (!self)
1077 return NULL;
1078
1079 // Execute
1080 CefRefPtr<CefViewDelegate> _retval =
1081 CefWindowCppToC::Get(reinterpret_cast<cef_window_t*>(self))
1082 ->GetDelegate();
1083
1084 // Return type: refptr_diff
1085 return CefViewDelegateCToCpp::Unwrap(_retval);
1086 }
1087
window_get_window(struct _cef_view_t * self)1088 struct _cef_window_t* CEF_CALLBACK window_get_window(struct _cef_view_t* self) {
1089 shutdown_checker::AssertNotShutdown();
1090
1091 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1092
1093 DCHECK(self);
1094 if (!self)
1095 return NULL;
1096
1097 // Execute
1098 CefRefPtr<CefWindow> _retval =
1099 CefWindowCppToC::Get(reinterpret_cast<cef_window_t*>(self))->GetWindow();
1100
1101 // Return type: refptr_same
1102 return CefWindowCppToC::Wrap(_retval);
1103 }
1104
window_get_id(struct _cef_view_t * self)1105 int CEF_CALLBACK window_get_id(struct _cef_view_t* self) {
1106 shutdown_checker::AssertNotShutdown();
1107
1108 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1109
1110 DCHECK(self);
1111 if (!self)
1112 return 0;
1113
1114 // Execute
1115 int _retval =
1116 CefWindowCppToC::Get(reinterpret_cast<cef_window_t*>(self))->GetID();
1117
1118 // Return type: simple
1119 return _retval;
1120 }
1121
window_set_id(struct _cef_view_t * self,int id)1122 void CEF_CALLBACK window_set_id(struct _cef_view_t* self, int id) {
1123 shutdown_checker::AssertNotShutdown();
1124
1125 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1126
1127 DCHECK(self);
1128 if (!self)
1129 return;
1130
1131 // Execute
1132 CefWindowCppToC::Get(reinterpret_cast<cef_window_t*>(self))->SetID(id);
1133 }
1134
window_get_group_id(struct _cef_view_t * self)1135 int CEF_CALLBACK window_get_group_id(struct _cef_view_t* self) {
1136 shutdown_checker::AssertNotShutdown();
1137
1138 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1139
1140 DCHECK(self);
1141 if (!self)
1142 return 0;
1143
1144 // Execute
1145 int _retval =
1146 CefWindowCppToC::Get(reinterpret_cast<cef_window_t*>(self))->GetGroupID();
1147
1148 // Return type: simple
1149 return _retval;
1150 }
1151
window_set_group_id(struct _cef_view_t * self,int group_id)1152 void CEF_CALLBACK window_set_group_id(struct _cef_view_t* self, int group_id) {
1153 shutdown_checker::AssertNotShutdown();
1154
1155 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1156
1157 DCHECK(self);
1158 if (!self)
1159 return;
1160
1161 // Execute
1162 CefWindowCppToC::Get(reinterpret_cast<cef_window_t*>(self))
1163 ->SetGroupID(group_id);
1164 }
1165
window_get_parent_view(struct _cef_view_t * self)1166 cef_view_t* CEF_CALLBACK window_get_parent_view(struct _cef_view_t* self) {
1167 shutdown_checker::AssertNotShutdown();
1168
1169 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1170
1171 DCHECK(self);
1172 if (!self)
1173 return NULL;
1174
1175 // Execute
1176 CefRefPtr<CefView> _retval =
1177 CefWindowCppToC::Get(reinterpret_cast<cef_window_t*>(self))
1178 ->GetParentView();
1179
1180 // Return type: refptr_same
1181 return CefViewCppToC::Wrap(_retval);
1182 }
1183
window_get_view_for_id(struct _cef_view_t * self,int id)1184 cef_view_t* CEF_CALLBACK window_get_view_for_id(struct _cef_view_t* self,
1185 int id) {
1186 shutdown_checker::AssertNotShutdown();
1187
1188 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1189
1190 DCHECK(self);
1191 if (!self)
1192 return NULL;
1193
1194 // Execute
1195 CefRefPtr<CefView> _retval =
1196 CefWindowCppToC::Get(reinterpret_cast<cef_window_t*>(self))
1197 ->GetViewForID(id);
1198
1199 // Return type: refptr_same
1200 return CefViewCppToC::Wrap(_retval);
1201 }
1202
window_set_bounds(struct _cef_view_t * self,const cef_rect_t * bounds)1203 void CEF_CALLBACK window_set_bounds(struct _cef_view_t* self,
1204 const cef_rect_t* bounds) {
1205 shutdown_checker::AssertNotShutdown();
1206
1207 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1208
1209 DCHECK(self);
1210 if (!self)
1211 return;
1212 // Verify param: bounds; type: simple_byref_const
1213 DCHECK(bounds);
1214 if (!bounds)
1215 return;
1216
1217 // Translate param: bounds; type: simple_byref_const
1218 CefRect boundsVal = bounds ? *bounds : CefRect();
1219
1220 // Execute
1221 CefWindowCppToC::Get(reinterpret_cast<cef_window_t*>(self))
1222 ->SetBounds(boundsVal);
1223 }
1224
window_get_bounds(struct _cef_view_t * self)1225 cef_rect_t CEF_CALLBACK window_get_bounds(struct _cef_view_t* self) {
1226 shutdown_checker::AssertNotShutdown();
1227
1228 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1229
1230 DCHECK(self);
1231 if (!self)
1232 return CefRect();
1233
1234 // Execute
1235 cef_rect_t _retval =
1236 CefWindowCppToC::Get(reinterpret_cast<cef_window_t*>(self))->GetBounds();
1237
1238 // Return type: simple
1239 return _retval;
1240 }
1241
window_get_bounds_in_screen(struct _cef_view_t * self)1242 cef_rect_t CEF_CALLBACK window_get_bounds_in_screen(struct _cef_view_t* self) {
1243 shutdown_checker::AssertNotShutdown();
1244
1245 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1246
1247 DCHECK(self);
1248 if (!self)
1249 return CefRect();
1250
1251 // Execute
1252 cef_rect_t _retval =
1253 CefWindowCppToC::Get(reinterpret_cast<cef_window_t*>(self))
1254 ->GetBoundsInScreen();
1255
1256 // Return type: simple
1257 return _retval;
1258 }
1259
window_set_size(struct _cef_view_t * self,const cef_size_t * size)1260 void CEF_CALLBACK window_set_size(struct _cef_view_t* self,
1261 const cef_size_t* size) {
1262 shutdown_checker::AssertNotShutdown();
1263
1264 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1265
1266 DCHECK(self);
1267 if (!self)
1268 return;
1269 // Verify param: size; type: simple_byref_const
1270 DCHECK(size);
1271 if (!size)
1272 return;
1273
1274 // Translate param: size; type: simple_byref_const
1275 CefSize sizeVal = size ? *size : CefSize();
1276
1277 // Execute
1278 CefWindowCppToC::Get(reinterpret_cast<cef_window_t*>(self))->SetSize(sizeVal);
1279 }
1280
window_get_size(struct _cef_view_t * self)1281 cef_size_t CEF_CALLBACK window_get_size(struct _cef_view_t* self) {
1282 shutdown_checker::AssertNotShutdown();
1283
1284 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1285
1286 DCHECK(self);
1287 if (!self)
1288 return CefSize();
1289
1290 // Execute
1291 cef_size_t _retval =
1292 CefWindowCppToC::Get(reinterpret_cast<cef_window_t*>(self))->GetSize();
1293
1294 // Return type: simple
1295 return _retval;
1296 }
1297
window_set_position(struct _cef_view_t * self,const cef_point_t * position)1298 void CEF_CALLBACK window_set_position(struct _cef_view_t* self,
1299 const cef_point_t* position) {
1300 shutdown_checker::AssertNotShutdown();
1301
1302 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1303
1304 DCHECK(self);
1305 if (!self)
1306 return;
1307 // Verify param: position; type: simple_byref_const
1308 DCHECK(position);
1309 if (!position)
1310 return;
1311
1312 // Translate param: position; type: simple_byref_const
1313 CefPoint positionVal = position ? *position : CefPoint();
1314
1315 // Execute
1316 CefWindowCppToC::Get(reinterpret_cast<cef_window_t*>(self))
1317 ->SetPosition(positionVal);
1318 }
1319
window_get_position(struct _cef_view_t * self)1320 cef_point_t CEF_CALLBACK window_get_position(struct _cef_view_t* self) {
1321 shutdown_checker::AssertNotShutdown();
1322
1323 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1324
1325 DCHECK(self);
1326 if (!self)
1327 return CefPoint();
1328
1329 // Execute
1330 cef_point_t _retval =
1331 CefWindowCppToC::Get(reinterpret_cast<cef_window_t*>(self))
1332 ->GetPosition();
1333
1334 // Return type: simple
1335 return _retval;
1336 }
1337
window_set_insets(struct _cef_view_t * self,const cef_insets_t * insets)1338 void CEF_CALLBACK window_set_insets(struct _cef_view_t* self,
1339 const cef_insets_t* insets) {
1340 shutdown_checker::AssertNotShutdown();
1341
1342 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1343
1344 DCHECK(self);
1345 if (!self)
1346 return;
1347 // Verify param: insets; type: simple_byref_const
1348 DCHECK(insets);
1349 if (!insets)
1350 return;
1351
1352 // Translate param: insets; type: simple_byref_const
1353 CefInsets insetsVal = insets ? *insets : CefInsets();
1354
1355 // Execute
1356 CefWindowCppToC::Get(reinterpret_cast<cef_window_t*>(self))
1357 ->SetInsets(insetsVal);
1358 }
1359
window_get_insets(struct _cef_view_t * self)1360 cef_insets_t CEF_CALLBACK window_get_insets(struct _cef_view_t* self) {
1361 shutdown_checker::AssertNotShutdown();
1362
1363 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1364
1365 DCHECK(self);
1366 if (!self)
1367 return CefInsets();
1368
1369 // Execute
1370 cef_insets_t _retval =
1371 CefWindowCppToC::Get(reinterpret_cast<cef_window_t*>(self))->GetInsets();
1372
1373 // Return type: simple
1374 return _retval;
1375 }
1376
window_get_preferred_size(struct _cef_view_t * self)1377 cef_size_t CEF_CALLBACK window_get_preferred_size(struct _cef_view_t* self) {
1378 shutdown_checker::AssertNotShutdown();
1379
1380 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1381
1382 DCHECK(self);
1383 if (!self)
1384 return CefSize();
1385
1386 // Execute
1387 cef_size_t _retval =
1388 CefWindowCppToC::Get(reinterpret_cast<cef_window_t*>(self))
1389 ->GetPreferredSize();
1390
1391 // Return type: simple
1392 return _retval;
1393 }
1394
window_size_to_preferred_size(struct _cef_view_t * self)1395 void CEF_CALLBACK window_size_to_preferred_size(struct _cef_view_t* self) {
1396 shutdown_checker::AssertNotShutdown();
1397
1398 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1399
1400 DCHECK(self);
1401 if (!self)
1402 return;
1403
1404 // Execute
1405 CefWindowCppToC::Get(reinterpret_cast<cef_window_t*>(self))
1406 ->SizeToPreferredSize();
1407 }
1408
window_get_minimum_size(struct _cef_view_t * self)1409 cef_size_t CEF_CALLBACK window_get_minimum_size(struct _cef_view_t* self) {
1410 shutdown_checker::AssertNotShutdown();
1411
1412 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1413
1414 DCHECK(self);
1415 if (!self)
1416 return CefSize();
1417
1418 // Execute
1419 cef_size_t _retval =
1420 CefWindowCppToC::Get(reinterpret_cast<cef_window_t*>(self))
1421 ->GetMinimumSize();
1422
1423 // Return type: simple
1424 return _retval;
1425 }
1426
window_get_maximum_size(struct _cef_view_t * self)1427 cef_size_t CEF_CALLBACK window_get_maximum_size(struct _cef_view_t* self) {
1428 shutdown_checker::AssertNotShutdown();
1429
1430 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1431
1432 DCHECK(self);
1433 if (!self)
1434 return CefSize();
1435
1436 // Execute
1437 cef_size_t _retval =
1438 CefWindowCppToC::Get(reinterpret_cast<cef_window_t*>(self))
1439 ->GetMaximumSize();
1440
1441 // Return type: simple
1442 return _retval;
1443 }
1444
window_get_height_for_width(struct _cef_view_t * self,int width)1445 int CEF_CALLBACK window_get_height_for_width(struct _cef_view_t* self,
1446 int width) {
1447 shutdown_checker::AssertNotShutdown();
1448
1449 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1450
1451 DCHECK(self);
1452 if (!self)
1453 return 0;
1454
1455 // Execute
1456 int _retval = CefWindowCppToC::Get(reinterpret_cast<cef_window_t*>(self))
1457 ->GetHeightForWidth(width);
1458
1459 // Return type: simple
1460 return _retval;
1461 }
1462
window_invalidate_layout(struct _cef_view_t * self)1463 void CEF_CALLBACK window_invalidate_layout(struct _cef_view_t* self) {
1464 shutdown_checker::AssertNotShutdown();
1465
1466 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1467
1468 DCHECK(self);
1469 if (!self)
1470 return;
1471
1472 // Execute
1473 CefWindowCppToC::Get(reinterpret_cast<cef_window_t*>(self))
1474 ->InvalidateLayout();
1475 }
1476
window_set_visible(struct _cef_view_t * self,int visible)1477 void CEF_CALLBACK window_set_visible(struct _cef_view_t* self, int visible) {
1478 shutdown_checker::AssertNotShutdown();
1479
1480 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1481
1482 DCHECK(self);
1483 if (!self)
1484 return;
1485
1486 // Execute
1487 CefWindowCppToC::Get(reinterpret_cast<cef_window_t*>(self))
1488 ->SetVisible(visible ? true : false);
1489 }
1490
window_is_visible(struct _cef_view_t * self)1491 int CEF_CALLBACK window_is_visible(struct _cef_view_t* self) {
1492 shutdown_checker::AssertNotShutdown();
1493
1494 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1495
1496 DCHECK(self);
1497 if (!self)
1498 return 0;
1499
1500 // Execute
1501 bool _retval =
1502 CefWindowCppToC::Get(reinterpret_cast<cef_window_t*>(self))->IsVisible();
1503
1504 // Return type: bool
1505 return _retval;
1506 }
1507
window_is_drawn(struct _cef_view_t * self)1508 int CEF_CALLBACK window_is_drawn(struct _cef_view_t* self) {
1509 shutdown_checker::AssertNotShutdown();
1510
1511 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1512
1513 DCHECK(self);
1514 if (!self)
1515 return 0;
1516
1517 // Execute
1518 bool _retval =
1519 CefWindowCppToC::Get(reinterpret_cast<cef_window_t*>(self))->IsDrawn();
1520
1521 // Return type: bool
1522 return _retval;
1523 }
1524
window_set_enabled(struct _cef_view_t * self,int enabled)1525 void CEF_CALLBACK window_set_enabled(struct _cef_view_t* self, int enabled) {
1526 shutdown_checker::AssertNotShutdown();
1527
1528 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1529
1530 DCHECK(self);
1531 if (!self)
1532 return;
1533
1534 // Execute
1535 CefWindowCppToC::Get(reinterpret_cast<cef_window_t*>(self))
1536 ->SetEnabled(enabled ? true : false);
1537 }
1538
window_is_enabled(struct _cef_view_t * self)1539 int CEF_CALLBACK window_is_enabled(struct _cef_view_t* self) {
1540 shutdown_checker::AssertNotShutdown();
1541
1542 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1543
1544 DCHECK(self);
1545 if (!self)
1546 return 0;
1547
1548 // Execute
1549 bool _retval =
1550 CefWindowCppToC::Get(reinterpret_cast<cef_window_t*>(self))->IsEnabled();
1551
1552 // Return type: bool
1553 return _retval;
1554 }
1555
window_set_focusable(struct _cef_view_t * self,int focusable)1556 void CEF_CALLBACK window_set_focusable(struct _cef_view_t* self,
1557 int focusable) {
1558 shutdown_checker::AssertNotShutdown();
1559
1560 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1561
1562 DCHECK(self);
1563 if (!self)
1564 return;
1565
1566 // Execute
1567 CefWindowCppToC::Get(reinterpret_cast<cef_window_t*>(self))
1568 ->SetFocusable(focusable ? true : false);
1569 }
1570
window_is_focusable(struct _cef_view_t * self)1571 int CEF_CALLBACK window_is_focusable(struct _cef_view_t* self) {
1572 shutdown_checker::AssertNotShutdown();
1573
1574 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1575
1576 DCHECK(self);
1577 if (!self)
1578 return 0;
1579
1580 // Execute
1581 bool _retval = CefWindowCppToC::Get(reinterpret_cast<cef_window_t*>(self))
1582 ->IsFocusable();
1583
1584 // Return type: bool
1585 return _retval;
1586 }
1587
window_is_accessibility_focusable(struct _cef_view_t * self)1588 int CEF_CALLBACK window_is_accessibility_focusable(struct _cef_view_t* self) {
1589 shutdown_checker::AssertNotShutdown();
1590
1591 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1592
1593 DCHECK(self);
1594 if (!self)
1595 return 0;
1596
1597 // Execute
1598 bool _retval = CefWindowCppToC::Get(reinterpret_cast<cef_window_t*>(self))
1599 ->IsAccessibilityFocusable();
1600
1601 // Return type: bool
1602 return _retval;
1603 }
1604
window_request_focus(struct _cef_view_t * self)1605 void CEF_CALLBACK window_request_focus(struct _cef_view_t* self) {
1606 shutdown_checker::AssertNotShutdown();
1607
1608 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1609
1610 DCHECK(self);
1611 if (!self)
1612 return;
1613
1614 // Execute
1615 CefWindowCppToC::Get(reinterpret_cast<cef_window_t*>(self))->RequestFocus();
1616 }
1617
window_set_background_color(struct _cef_view_t * self,cef_color_t color)1618 void CEF_CALLBACK window_set_background_color(struct _cef_view_t* self,
1619 cef_color_t color) {
1620 shutdown_checker::AssertNotShutdown();
1621
1622 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1623
1624 DCHECK(self);
1625 if (!self)
1626 return;
1627
1628 // Execute
1629 CefWindowCppToC::Get(reinterpret_cast<cef_window_t*>(self))
1630 ->SetBackgroundColor(color);
1631 }
1632
window_get_background_color(struct _cef_view_t * self)1633 cef_color_t CEF_CALLBACK window_get_background_color(struct _cef_view_t* self) {
1634 shutdown_checker::AssertNotShutdown();
1635
1636 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1637
1638 DCHECK(self);
1639 if (!self)
1640 return 0;
1641
1642 // Execute
1643 cef_color_t _retval =
1644 CefWindowCppToC::Get(reinterpret_cast<cef_window_t*>(self))
1645 ->GetBackgroundColor();
1646
1647 // Return type: simple
1648 return _retval;
1649 }
1650
window_convert_point_to_screen(struct _cef_view_t * self,cef_point_t * point)1651 int CEF_CALLBACK window_convert_point_to_screen(struct _cef_view_t* self,
1652 cef_point_t* point) {
1653 shutdown_checker::AssertNotShutdown();
1654
1655 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1656
1657 DCHECK(self);
1658 if (!self)
1659 return 0;
1660 // Verify param: point; type: simple_byref
1661 DCHECK(point);
1662 if (!point)
1663 return 0;
1664
1665 // Translate param: point; type: simple_byref
1666 CefPoint pointVal = point ? *point : CefPoint();
1667
1668 // Execute
1669 bool _retval = CefWindowCppToC::Get(reinterpret_cast<cef_window_t*>(self))
1670 ->ConvertPointToScreen(pointVal);
1671
1672 // Restore param: point; type: simple_byref
1673 if (point)
1674 *point = pointVal;
1675
1676 // Return type: bool
1677 return _retval;
1678 }
1679
window_convert_point_from_screen(struct _cef_view_t * self,cef_point_t * point)1680 int CEF_CALLBACK window_convert_point_from_screen(struct _cef_view_t* self,
1681 cef_point_t* point) {
1682 shutdown_checker::AssertNotShutdown();
1683
1684 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1685
1686 DCHECK(self);
1687 if (!self)
1688 return 0;
1689 // Verify param: point; type: simple_byref
1690 DCHECK(point);
1691 if (!point)
1692 return 0;
1693
1694 // Translate param: point; type: simple_byref
1695 CefPoint pointVal = point ? *point : CefPoint();
1696
1697 // Execute
1698 bool _retval = CefWindowCppToC::Get(reinterpret_cast<cef_window_t*>(self))
1699 ->ConvertPointFromScreen(pointVal);
1700
1701 // Restore param: point; type: simple_byref
1702 if (point)
1703 *point = pointVal;
1704
1705 // Return type: bool
1706 return _retval;
1707 }
1708
window_convert_point_to_window(struct _cef_view_t * self,cef_point_t * point)1709 int CEF_CALLBACK window_convert_point_to_window(struct _cef_view_t* self,
1710 cef_point_t* point) {
1711 shutdown_checker::AssertNotShutdown();
1712
1713 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1714
1715 DCHECK(self);
1716 if (!self)
1717 return 0;
1718 // Verify param: point; type: simple_byref
1719 DCHECK(point);
1720 if (!point)
1721 return 0;
1722
1723 // Translate param: point; type: simple_byref
1724 CefPoint pointVal = point ? *point : CefPoint();
1725
1726 // Execute
1727 bool _retval = CefWindowCppToC::Get(reinterpret_cast<cef_window_t*>(self))
1728 ->ConvertPointToWindow(pointVal);
1729
1730 // Restore param: point; type: simple_byref
1731 if (point)
1732 *point = pointVal;
1733
1734 // Return type: bool
1735 return _retval;
1736 }
1737
window_convert_point_from_window(struct _cef_view_t * self,cef_point_t * point)1738 int CEF_CALLBACK window_convert_point_from_window(struct _cef_view_t* self,
1739 cef_point_t* point) {
1740 shutdown_checker::AssertNotShutdown();
1741
1742 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1743
1744 DCHECK(self);
1745 if (!self)
1746 return 0;
1747 // Verify param: point; type: simple_byref
1748 DCHECK(point);
1749 if (!point)
1750 return 0;
1751
1752 // Translate param: point; type: simple_byref
1753 CefPoint pointVal = point ? *point : CefPoint();
1754
1755 // Execute
1756 bool _retval = CefWindowCppToC::Get(reinterpret_cast<cef_window_t*>(self))
1757 ->ConvertPointFromWindow(pointVal);
1758
1759 // Restore param: point; type: simple_byref
1760 if (point)
1761 *point = pointVal;
1762
1763 // Return type: bool
1764 return _retval;
1765 }
1766
window_convert_point_to_view(struct _cef_view_t * self,cef_view_t * view,cef_point_t * point)1767 int CEF_CALLBACK window_convert_point_to_view(struct _cef_view_t* self,
1768 cef_view_t* view,
1769 cef_point_t* point) {
1770 shutdown_checker::AssertNotShutdown();
1771
1772 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1773
1774 DCHECK(self);
1775 if (!self)
1776 return 0;
1777 // Verify param: view; type: refptr_same
1778 DCHECK(view);
1779 if (!view)
1780 return 0;
1781 // Verify param: point; type: simple_byref
1782 DCHECK(point);
1783 if (!point)
1784 return 0;
1785
1786 // Translate param: point; type: simple_byref
1787 CefPoint pointVal = point ? *point : CefPoint();
1788
1789 // Execute
1790 bool _retval =
1791 CefWindowCppToC::Get(reinterpret_cast<cef_window_t*>(self))
1792 ->ConvertPointToView(CefViewCppToC::Unwrap(view), pointVal);
1793
1794 // Restore param: point; type: simple_byref
1795 if (point)
1796 *point = pointVal;
1797
1798 // Return type: bool
1799 return _retval;
1800 }
1801
window_convert_point_from_view(struct _cef_view_t * self,cef_view_t * view,cef_point_t * point)1802 int CEF_CALLBACK window_convert_point_from_view(struct _cef_view_t* self,
1803 cef_view_t* view,
1804 cef_point_t* point) {
1805 shutdown_checker::AssertNotShutdown();
1806
1807 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1808
1809 DCHECK(self);
1810 if (!self)
1811 return 0;
1812 // Verify param: view; type: refptr_same
1813 DCHECK(view);
1814 if (!view)
1815 return 0;
1816 // Verify param: point; type: simple_byref
1817 DCHECK(point);
1818 if (!point)
1819 return 0;
1820
1821 // Translate param: point; type: simple_byref
1822 CefPoint pointVal = point ? *point : CefPoint();
1823
1824 // Execute
1825 bool _retval =
1826 CefWindowCppToC::Get(reinterpret_cast<cef_window_t*>(self))
1827 ->ConvertPointFromView(CefViewCppToC::Unwrap(view), pointVal);
1828
1829 // Restore param: point; type: simple_byref
1830 if (point)
1831 *point = pointVal;
1832
1833 // Return type: bool
1834 return _retval;
1835 }
1836
1837 } // namespace
1838
1839 // CONSTRUCTOR - Do not edit by hand.
1840
CefWindowCppToC()1841 CefWindowCppToC::CefWindowCppToC() {
1842 GetStruct()->show = window_show;
1843 GetStruct()->hide = window_hide;
1844 GetStruct()->center_window = window_center_window;
1845 GetStruct()->close = window_close;
1846 GetStruct()->is_closed = window_is_closed;
1847 GetStruct()->activate = window_activate;
1848 GetStruct()->deactivate = window_deactivate;
1849 GetStruct()->is_active = window_is_active;
1850 GetStruct()->bring_to_top = window_bring_to_top;
1851 GetStruct()->set_always_on_top = window_set_always_on_top;
1852 GetStruct()->is_always_on_top = window_is_always_on_top;
1853 GetStruct()->maximize = window_maximize;
1854 GetStruct()->minimize = window_minimize;
1855 GetStruct()->restore = window_restore;
1856 GetStruct()->set_fullscreen = window_set_fullscreen;
1857 GetStruct()->is_maximized = window_is_maximized;
1858 GetStruct()->is_minimized = window_is_minimized;
1859 GetStruct()->is_fullscreen = window_is_fullscreen;
1860 GetStruct()->set_title = window_set_title;
1861 GetStruct()->get_title = window_get_title;
1862 GetStruct()->set_window_icon = window_set_window_icon;
1863 GetStruct()->get_window_icon = window_get_window_icon;
1864 GetStruct()->set_window_app_icon = window_set_window_app_icon;
1865 GetStruct()->get_window_app_icon = window_get_window_app_icon;
1866 GetStruct()->add_overlay_view = window_add_overlay_view;
1867 GetStruct()->show_menu = window_show_menu;
1868 GetStruct()->cancel_menu = window_cancel_menu;
1869 GetStruct()->get_display = window_get_display;
1870 GetStruct()->get_client_area_bounds_in_screen =
1871 window_get_client_area_bounds_in_screen;
1872 GetStruct()->set_draggable_regions = window_set_draggable_regions;
1873 GetStruct()->get_window_handle = window_get_window_handle;
1874 GetStruct()->send_key_press = window_send_key_press;
1875 GetStruct()->send_mouse_move = window_send_mouse_move;
1876 GetStruct()->send_mouse_events = window_send_mouse_events;
1877 GetStruct()->set_accelerator = window_set_accelerator;
1878 GetStruct()->remove_accelerator = window_remove_accelerator;
1879 GetStruct()->remove_all_accelerators = window_remove_all_accelerators;
1880 GetStruct()->base.as_window = window_as_window;
1881 GetStruct()->base.set_to_fill_layout = window_set_to_fill_layout;
1882 GetStruct()->base.set_to_box_layout = window_set_to_box_layout;
1883 GetStruct()->base.get_layout = window_get_layout;
1884 GetStruct()->base.layout = window_layout;
1885 GetStruct()->base.add_child_view = window_add_child_view;
1886 GetStruct()->base.add_child_view_at = window_add_child_view_at;
1887 GetStruct()->base.reorder_child_view = window_reorder_child_view;
1888 GetStruct()->base.remove_child_view = window_remove_child_view;
1889 GetStruct()->base.remove_all_child_views = window_remove_all_child_views;
1890 GetStruct()->base.get_child_view_count = window_get_child_view_count;
1891 GetStruct()->base.get_child_view_at = window_get_child_view_at;
1892 GetStruct()->base.base.as_browser_view = window_as_browser_view;
1893 GetStruct()->base.base.as_button = window_as_button;
1894 GetStruct()->base.base.as_panel = window_as_panel;
1895 GetStruct()->base.base.as_scroll_view = window_as_scroll_view;
1896 GetStruct()->base.base.as_textfield = window_as_textfield;
1897 GetStruct()->base.base.get_type_string = window_get_type_string;
1898 GetStruct()->base.base.to_string = window_to_string;
1899 GetStruct()->base.base.is_valid = window_is_valid;
1900 GetStruct()->base.base.is_attached = window_is_attached;
1901 GetStruct()->base.base.is_same = window_is_same;
1902 GetStruct()->base.base.get_delegate = window_get_delegate;
1903 GetStruct()->base.base.get_window = window_get_window;
1904 GetStruct()->base.base.get_id = window_get_id;
1905 GetStruct()->base.base.set_id = window_set_id;
1906 GetStruct()->base.base.get_group_id = window_get_group_id;
1907 GetStruct()->base.base.set_group_id = window_set_group_id;
1908 GetStruct()->base.base.get_parent_view = window_get_parent_view;
1909 GetStruct()->base.base.get_view_for_id = window_get_view_for_id;
1910 GetStruct()->base.base.set_bounds = window_set_bounds;
1911 GetStruct()->base.base.get_bounds = window_get_bounds;
1912 GetStruct()->base.base.get_bounds_in_screen = window_get_bounds_in_screen;
1913 GetStruct()->base.base.set_size = window_set_size;
1914 GetStruct()->base.base.get_size = window_get_size;
1915 GetStruct()->base.base.set_position = window_set_position;
1916 GetStruct()->base.base.get_position = window_get_position;
1917 GetStruct()->base.base.set_insets = window_set_insets;
1918 GetStruct()->base.base.get_insets = window_get_insets;
1919 GetStruct()->base.base.get_preferred_size = window_get_preferred_size;
1920 GetStruct()->base.base.size_to_preferred_size = window_size_to_preferred_size;
1921 GetStruct()->base.base.get_minimum_size = window_get_minimum_size;
1922 GetStruct()->base.base.get_maximum_size = window_get_maximum_size;
1923 GetStruct()->base.base.get_height_for_width = window_get_height_for_width;
1924 GetStruct()->base.base.invalidate_layout = window_invalidate_layout;
1925 GetStruct()->base.base.set_visible = window_set_visible;
1926 GetStruct()->base.base.is_visible = window_is_visible;
1927 GetStruct()->base.base.is_drawn = window_is_drawn;
1928 GetStruct()->base.base.set_enabled = window_set_enabled;
1929 GetStruct()->base.base.is_enabled = window_is_enabled;
1930 GetStruct()->base.base.set_focusable = window_set_focusable;
1931 GetStruct()->base.base.is_focusable = window_is_focusable;
1932 GetStruct()->base.base.is_accessibility_focusable =
1933 window_is_accessibility_focusable;
1934 GetStruct()->base.base.request_focus = window_request_focus;
1935 GetStruct()->base.base.set_background_color = window_set_background_color;
1936 GetStruct()->base.base.get_background_color = window_get_background_color;
1937 GetStruct()->base.base.convert_point_to_screen =
1938 window_convert_point_to_screen;
1939 GetStruct()->base.base.convert_point_from_screen =
1940 window_convert_point_from_screen;
1941 GetStruct()->base.base.convert_point_to_window =
1942 window_convert_point_to_window;
1943 GetStruct()->base.base.convert_point_from_window =
1944 window_convert_point_from_window;
1945 GetStruct()->base.base.convert_point_to_view = window_convert_point_to_view;
1946 GetStruct()->base.base.convert_point_from_view =
1947 window_convert_point_from_view;
1948 }
1949
1950 // DESTRUCTOR - Do not edit by hand.
1951
~CefWindowCppToC()1952 CefWindowCppToC::~CefWindowCppToC() {
1953 shutdown_checker::AssertNotShutdown();
1954 }
1955
1956 template <>
1957 CefRefPtr<CefWindow>
UnwrapDerived(CefWrapperType type,cef_window_t * s)1958 CefCppToCRefCounted<CefWindowCppToC, CefWindow, cef_window_t>::UnwrapDerived(
1959 CefWrapperType type,
1960 cef_window_t* s) {
1961 NOTREACHED() << "Unexpected class type: " << type;
1962 return nullptr;
1963 }
1964
1965 template <>
1966 CefWrapperType CefCppToCRefCounted<CefWindowCppToC, CefWindow, cef_window_t>::
1967 kWrapperType = WT_WINDOW;
1968