// Copyright (c) 2017 The Chromium Embedded Framework Authors. All rights // reserved. Use of this source code is governed by a BSD-style license that // can be found in the LICENSE file. // // --------------------------------------------------------------------------- // // This file was generated by the CEF translator tool. If making changes by // hand only do so within the body of existing method and function // implementations. See the translator.README.txt file in the tools directory // for more information. // #include "libcef_dll/cpptoc/views/panel_delegate_cpptoc.h" #include "libcef_dll/cpptoc/views/view_delegate_cpptoc.h" #include "libcef_dll/ctocpp/views/box_layout_ctocpp.h" #include "libcef_dll/ctocpp/views/browser_view_ctocpp.h" #include "libcef_dll/ctocpp/views/button_ctocpp.h" #include "libcef_dll/ctocpp/views/fill_layout_ctocpp.h" #include "libcef_dll/ctocpp/views/layout_ctocpp.h" #include "libcef_dll/ctocpp/views/panel_ctocpp.h" #include "libcef_dll/ctocpp/views/scroll_view_ctocpp.h" #include "libcef_dll/ctocpp/views/textfield_ctocpp.h" #include "libcef_dll/ctocpp/views/view_ctocpp.h" #include "libcef_dll/ctocpp/views/window_ctocpp.h" // STATIC METHODS - Body may be edited by hand. CefRefPtr CefPanel::CreatePanel( CefRefPtr delegate) { // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Unverified params: delegate // Execute cef_panel_t* _retval = cef_panel_create( CefPanelDelegateCppToC::Wrap(delegate)); // Return type: refptr_same return CefPanelCToCpp::Wrap(_retval); } // VIRTUAL METHODS - Body may be edited by hand. CefRefPtr CefPanelCToCpp::AsWindow() { cef_panel_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, as_window)) return NULL; // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute cef_window_t* _retval = _struct->as_window(_struct); // Return type: refptr_same return CefWindowCToCpp::Wrap(_retval); } CefRefPtr CefPanelCToCpp::SetToFillLayout() { cef_panel_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_to_fill_layout)) return NULL; // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute cef_fill_layout_t* _retval = _struct->set_to_fill_layout(_struct); // Return type: refptr_same return CefFillLayoutCToCpp::Wrap(_retval); } CefRefPtr CefPanelCToCpp::SetToBoxLayout( const CefBoxLayoutSettings& settings) { cef_panel_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, set_to_box_layout)) return NULL; // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute cef_box_layout_t* _retval = _struct->set_to_box_layout(_struct, &settings); // Return type: refptr_same return CefBoxLayoutCToCpp::Wrap(_retval); } CefRefPtr CefPanelCToCpp::GetLayout() { cef_panel_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_layout)) return NULL; // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute cef_layout_t* _retval = _struct->get_layout(_struct); // Return type: refptr_same return CefLayoutCToCpp::Wrap(_retval); } void CefPanelCToCpp::Layout() { cef_panel_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, layout)) return; // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute _struct->layout(_struct); } void CefPanelCToCpp::AddChildView(CefRefPtr view) { cef_panel_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, add_child_view)) return; // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Verify param: view; type: refptr_same DCHECK(view.get()); if (!view.get()) return; // Execute _struct->add_child_view(_struct, CefViewCToCpp::Unwrap(view)); } void CefPanelCToCpp::AddChildViewAt(CefRefPtr view, int index) { cef_panel_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, add_child_view_at)) return; // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Verify param: view; type: refptr_same DCHECK(view.get()); if (!view.get()) return; // Verify param: index; type: simple_byval DCHECK_GE(index, 0); if (index < 0) return; // Execute _struct->add_child_view_at(_struct, CefViewCToCpp::Unwrap(view), index); } void CefPanelCToCpp::ReorderChildView(CefRefPtr view, int index) { cef_panel_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, reorder_child_view)) return; // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Verify param: view; type: refptr_same DCHECK(view.get()); if (!view.get()) return; // Execute _struct->reorder_child_view(_struct, CefViewCToCpp::Unwrap(view), index); } void CefPanelCToCpp::RemoveChildView(CefRefPtr view) { cef_panel_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, remove_child_view)) return; // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Verify param: view; type: refptr_same DCHECK(view.get()); if (!view.get()) return; // Execute _struct->remove_child_view(_struct, CefViewCToCpp::Unwrap(view)); } void CefPanelCToCpp::RemoveAllChildViews() { cef_panel_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, remove_all_child_views)) return; // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute _struct->remove_all_child_views(_struct); } size_t CefPanelCToCpp::GetChildViewCount() { cef_panel_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_child_view_count)) return 0; // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute size_t _retval = _struct->get_child_view_count(_struct); // Return type: simple return _retval; } CefRefPtr CefPanelCToCpp::GetChildViewAt(int index) { cef_panel_t* _struct = GetStruct(); if (CEF_MEMBER_MISSING(_struct, get_child_view_at)) return NULL; // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Verify param: index; type: simple_byval DCHECK_GE(index, 0); if (index < 0) return NULL; // Execute cef_view_t* _retval = _struct->get_child_view_at(_struct, index); // Return type: refptr_same return CefViewCToCpp::Wrap(_retval); } CefRefPtr CefPanelCToCpp::AsBrowserView() { cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, as_browser_view)) return NULL; // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute cef_browser_view_t* _retval = _struct->as_browser_view(_struct); // Return type: refptr_same return CefBrowserViewCToCpp::Wrap(_retval); } CefRefPtr CefPanelCToCpp::AsButton() { cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, as_button)) return NULL; // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute cef_button_t* _retval = _struct->as_button(_struct); // Return type: refptr_same return CefButtonCToCpp::Wrap(_retval); } CefRefPtr CefPanelCToCpp::AsPanel() { cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, as_panel)) return NULL; // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute cef_panel_t* _retval = _struct->as_panel(_struct); // Return type: refptr_same return CefPanelCToCpp::Wrap(_retval); } CefRefPtr CefPanelCToCpp::AsScrollView() { cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, as_scroll_view)) return NULL; // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute cef_scroll_view_t* _retval = _struct->as_scroll_view(_struct); // Return type: refptr_same return CefScrollViewCToCpp::Wrap(_retval); } CefRefPtr CefPanelCToCpp::AsTextfield() { cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, as_textfield)) return NULL; // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute cef_textfield_t* _retval = _struct->as_textfield(_struct); // Return type: refptr_same return CefTextfieldCToCpp::Wrap(_retval); } CefString CefPanelCToCpp::GetTypeString() { cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_type_string)) return CefString(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute cef_string_userfree_t _retval = _struct->get_type_string(_struct); // Return type: string CefString _retvalStr; _retvalStr.AttachToUserFree(_retval); return _retvalStr; } CefString CefPanelCToCpp::ToString(bool include_children) { cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, to_string)) return CefString(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute cef_string_userfree_t _retval = _struct->to_string(_struct, include_children); // Return type: string CefString _retvalStr; _retvalStr.AttachToUserFree(_retval); return _retvalStr; } bool CefPanelCToCpp::IsValid() { cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, is_valid)) return false; // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute int _retval = _struct->is_valid(_struct); // Return type: bool return _retval?true:false; } bool CefPanelCToCpp::IsAttached() { cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, is_attached)) return false; // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute int _retval = _struct->is_attached(_struct); // Return type: bool return _retval?true:false; } bool CefPanelCToCpp::IsSame(CefRefPtr that) { cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, is_same)) return false; // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Verify param: that; type: refptr_same DCHECK(that.get()); if (!that.get()) return false; // Execute int _retval = _struct->is_same(_struct, CefViewCToCpp::Unwrap(that)); // Return type: bool return _retval?true:false; } CefRefPtr CefPanelCToCpp::GetDelegate() { cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_delegate)) return NULL; // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute cef_view_delegate_t* _retval = _struct->get_delegate(_struct); // Return type: refptr_diff return CefViewDelegateCppToC::Unwrap(_retval); } CefRefPtr CefPanelCToCpp::GetWindow() { cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_window)) return NULL; // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute cef_window_t* _retval = _struct->get_window(_struct); // Return type: refptr_same return CefWindowCToCpp::Wrap(_retval); } int CefPanelCToCpp::GetID() { cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_id)) return 0; // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute int _retval = _struct->get_id(_struct); // Return type: simple return _retval; } void CefPanelCToCpp::SetID(int id) { cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_id)) return; // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute _struct->set_id(_struct, id); } int CefPanelCToCpp::GetGroupID() { cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_group_id)) return 0; // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute int _retval = _struct->get_group_id(_struct); // Return type: simple return _retval; } void CefPanelCToCpp::SetGroupID(int group_id) { cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_group_id)) return; // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute _struct->set_group_id(_struct, group_id); } CefRefPtr CefPanelCToCpp::GetParentView() { cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_parent_view)) return NULL; // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute cef_view_t* _retval = _struct->get_parent_view(_struct); // Return type: refptr_same return CefViewCToCpp::Wrap(_retval); } CefRefPtr CefPanelCToCpp::GetViewForID(int id) { cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_view_for_id)) return NULL; // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute cef_view_t* _retval = _struct->get_view_for_id(_struct, id); // Return type: refptr_same return CefViewCToCpp::Wrap(_retval); } void CefPanelCToCpp::SetBounds(const CefRect& bounds) { cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_bounds)) return; // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute _struct->set_bounds(_struct, &bounds); } CefRect CefPanelCToCpp::GetBounds() { cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_bounds)) return CefRect(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute cef_rect_t _retval = _struct->get_bounds(_struct); // Return type: simple return _retval; } CefRect CefPanelCToCpp::GetBoundsInScreen() { cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_bounds_in_screen)) return CefRect(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute cef_rect_t _retval = _struct->get_bounds_in_screen(_struct); // Return type: simple return _retval; } void CefPanelCToCpp::SetSize(const CefSize& size) { cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_size)) return; // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute _struct->set_size(_struct, &size); } CefSize CefPanelCToCpp::GetSize() { cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_size)) return CefSize(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute cef_size_t _retval = _struct->get_size(_struct); // Return type: simple return _retval; } void CefPanelCToCpp::SetPosition(const CefPoint& position) { cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_position)) return; // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute _struct->set_position(_struct, &position); } CefPoint CefPanelCToCpp::GetPosition() { cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_position)) return CefPoint(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute cef_point_t _retval = _struct->get_position(_struct); // Return type: simple return _retval; } CefSize CefPanelCToCpp::GetPreferredSize() { cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_preferred_size)) return CefSize(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute cef_size_t _retval = _struct->get_preferred_size(_struct); // Return type: simple return _retval; } void CefPanelCToCpp::SizeToPreferredSize() { cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, size_to_preferred_size)) return; // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute _struct->size_to_preferred_size(_struct); } CefSize CefPanelCToCpp::GetMinimumSize() { cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_minimum_size)) return CefSize(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute cef_size_t _retval = _struct->get_minimum_size(_struct); // Return type: simple return _retval; } CefSize CefPanelCToCpp::GetMaximumSize() { cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_maximum_size)) return CefSize(); // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute cef_size_t _retval = _struct->get_maximum_size(_struct); // Return type: simple return _retval; } int CefPanelCToCpp::GetHeightForWidth(int width) { cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_height_for_width)) return 0; // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute int _retval = _struct->get_height_for_width(_struct, width); // Return type: simple return _retval; } void CefPanelCToCpp::InvalidateLayout() { cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, invalidate_layout)) return; // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute _struct->invalidate_layout(_struct); } void CefPanelCToCpp::SetVisible(bool visible) { cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_visible)) return; // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute _struct->set_visible(_struct, visible); } bool CefPanelCToCpp::IsVisible() { cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, is_visible)) return false; // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute int _retval = _struct->is_visible(_struct); // Return type: bool return _retval?true:false; } bool CefPanelCToCpp::IsDrawn() { cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, is_drawn)) return false; // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute int _retval = _struct->is_drawn(_struct); // Return type: bool return _retval?true:false; } void CefPanelCToCpp::SetEnabled(bool enabled) { cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_enabled)) return; // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute _struct->set_enabled(_struct, enabled); } bool CefPanelCToCpp::IsEnabled() { cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, is_enabled)) return false; // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute int _retval = _struct->is_enabled(_struct); // Return type: bool return _retval?true:false; } void CefPanelCToCpp::SetFocusable(bool focusable) { cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_focusable)) return; // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute _struct->set_focusable(_struct, focusable); } bool CefPanelCToCpp::IsFocusable() { cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, is_focusable)) return false; // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute int _retval = _struct->is_focusable(_struct); // Return type: bool return _retval?true:false; } bool CefPanelCToCpp::IsAccessibilityFocusable() { cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, is_accessibility_focusable)) return false; // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute int _retval = _struct->is_accessibility_focusable(_struct); // Return type: bool return _retval?true:false; } void CefPanelCToCpp::RequestFocus() { cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, request_focus)) return; // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute _struct->request_focus(_struct); } void CefPanelCToCpp::SetBackgroundColor(cef_color_t color) { cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, set_background_color)) return; // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute _struct->set_background_color(_struct, color); } cef_color_t CefPanelCToCpp::GetBackgroundColor() { cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, get_background_color)) return 0; // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute cef_color_t _retval = _struct->get_background_color(_struct); // Return type: simple return _retval; } bool CefPanelCToCpp::ConvertPointToScreen(CefPoint& point) { cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, convert_point_to_screen)) return false; // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute int _retval = _struct->convert_point_to_screen(_struct, &point); // Return type: bool return _retval?true:false; } bool CefPanelCToCpp::ConvertPointFromScreen(CefPoint& point) { cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, convert_point_from_screen)) return false; // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute int _retval = _struct->convert_point_from_screen(_struct, &point); // Return type: bool return _retval?true:false; } bool CefPanelCToCpp::ConvertPointToWindow(CefPoint& point) { cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, convert_point_to_window)) return false; // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute int _retval = _struct->convert_point_to_window(_struct, &point); // Return type: bool return _retval?true:false; } bool CefPanelCToCpp::ConvertPointFromWindow(CefPoint& point) { cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, convert_point_from_window)) return false; // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Execute int _retval = _struct->convert_point_from_window(_struct, &point); // Return type: bool return _retval?true:false; } bool CefPanelCToCpp::ConvertPointToView(CefRefPtr view, CefPoint& point) { cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, convert_point_to_view)) return false; // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Verify param: view; type: refptr_same DCHECK(view.get()); if (!view.get()) return false; // Execute int _retval = _struct->convert_point_to_view(_struct, CefViewCToCpp::Unwrap(view), &point); // Return type: bool return _retval?true:false; } bool CefPanelCToCpp::ConvertPointFromView(CefRefPtr view, CefPoint& point) { cef_view_t* _struct = reinterpret_cast(GetStruct()); if (CEF_MEMBER_MISSING(_struct, convert_point_from_view)) return false; // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING // Verify param: view; type: refptr_same DCHECK(view.get()); if (!view.get()) return false; // Execute int _retval = _struct->convert_point_from_view(_struct, CefViewCToCpp::Unwrap(view), &point); // Return type: bool return _retval?true:false; } // CONSTRUCTOR - Do not edit by hand. CefPanelCToCpp::CefPanelCToCpp() { } template<> cef_panel_t* CefCToCppRefCounted::UnwrapDerived(CefWrapperType type, CefPanel* c) { if (type == WT_WINDOW) { return reinterpret_cast(CefWindowCToCpp::Unwrap( reinterpret_cast(c))); } NOTREACHED() << "Unexpected class type: " << type; return NULL; } #if DCHECK_IS_ON() template<> base::AtomicRefCount CefCToCppRefCounted::DebugObjCt = 0; #endif template<> CefWrapperType CefCToCppRefCounted::kWrapperType = WT_PANEL;