mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
views: Add groups and focus/blur callbacks (issue #2102)
- cefclient: Only make menus focusable when ALT is pressed. - cefclient: Display sample top menu when passed the `--show-top-menu` command-line flag.
This commit is contained in:
@@ -298,6 +298,32 @@ void CefBrowserViewCToCpp::SetID(int id) {
|
||||
id);
|
||||
}
|
||||
|
||||
int CefBrowserViewCToCpp::GetGroupID() {
|
||||
cef_view_t* _struct = reinterpret_cast<cef_view_t*>(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 CefBrowserViewCToCpp::SetGroupID(int group_id) {
|
||||
cef_view_t* _struct = reinterpret_cast<cef_view_t*>(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<CefView> CefBrowserViewCToCpp::GetParentView() {
|
||||
cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
|
||||
if (CEF_MEMBER_MISSING(_struct, get_parent_view))
|
||||
|
@@ -49,6 +49,8 @@ class CefBrowserViewCToCpp
|
||||
CefRefPtr<CefWindow> GetWindow() OVERRIDE;
|
||||
int GetID() OVERRIDE;
|
||||
void SetID(int id) OVERRIDE;
|
||||
int GetGroupID() OVERRIDE;
|
||||
void SetGroupID(int group_id) OVERRIDE;
|
||||
CefRefPtr<CefView> GetParentView() OVERRIDE;
|
||||
CefRefPtr<CefView> GetViewForID(int id) OVERRIDE;
|
||||
void SetBounds(const CefRect& bounds) OVERRIDE;
|
||||
|
@@ -260,6 +260,42 @@ void CefBrowserViewDelegateCToCpp::OnChildViewChanged(CefRefPtr<CefView> view,
|
||||
CefViewCppToC::Wrap(child));
|
||||
}
|
||||
|
||||
void CefBrowserViewDelegateCToCpp::OnFocus(CefRefPtr<CefView> view) {
|
||||
cef_view_delegate_t* _struct = reinterpret_cast<cef_view_delegate_t*>(
|
||||
GetStruct());
|
||||
if (CEF_MEMBER_MISSING(_struct, on_focus))
|
||||
return;
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Verify param: view; type: refptr_diff
|
||||
DCHECK(view.get());
|
||||
if (!view.get())
|
||||
return;
|
||||
|
||||
// Execute
|
||||
_struct->on_focus(_struct,
|
||||
CefViewCppToC::Wrap(view));
|
||||
}
|
||||
|
||||
void CefBrowserViewDelegateCToCpp::OnBlur(CefRefPtr<CefView> view) {
|
||||
cef_view_delegate_t* _struct = reinterpret_cast<cef_view_delegate_t*>(
|
||||
GetStruct());
|
||||
if (CEF_MEMBER_MISSING(_struct, on_blur))
|
||||
return;
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Verify param: view; type: refptr_diff
|
||||
DCHECK(view.get());
|
||||
if (!view.get())
|
||||
return;
|
||||
|
||||
// Execute
|
||||
_struct->on_blur(_struct,
|
||||
CefViewCppToC::Wrap(view));
|
||||
}
|
||||
|
||||
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
|
@@ -56,6 +56,8 @@ class CefBrowserViewDelegateCToCpp
|
||||
CefRefPtr<CefView> parent) override;
|
||||
void OnChildViewChanged(CefRefPtr<CefView> view, bool added,
|
||||
CefRefPtr<CefView> child) override;
|
||||
void OnFocus(CefRefPtr<CefView> view) override;
|
||||
void OnBlur(CefRefPtr<CefView> view) override;
|
||||
};
|
||||
|
||||
#endif // CEF_LIBCEF_DLL_CTOCPP_VIEWS_BROWSER_VIEW_DELEGATE_CTOCPP_H_
|
||||
|
@@ -303,6 +303,32 @@ void CefButtonCToCpp::SetID(int id) {
|
||||
id);
|
||||
}
|
||||
|
||||
int CefButtonCToCpp::GetGroupID() {
|
||||
cef_view_t* _struct = reinterpret_cast<cef_view_t*>(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 CefButtonCToCpp::SetGroupID(int group_id) {
|
||||
cef_view_t* _struct = reinterpret_cast<cef_view_t*>(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<CefView> CefButtonCToCpp::GetParentView() {
|
||||
cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
|
||||
if (CEF_MEMBER_MISSING(_struct, get_parent_view))
|
||||
|
@@ -53,6 +53,8 @@ class CefButtonCToCpp
|
||||
CefRefPtr<CefWindow> GetWindow() OVERRIDE;
|
||||
int GetID() OVERRIDE;
|
||||
void SetID(int id) OVERRIDE;
|
||||
int GetGroupID() OVERRIDE;
|
||||
void SetGroupID(int group_id) OVERRIDE;
|
||||
CefRefPtr<CefView> GetParentView() OVERRIDE;
|
||||
CefRefPtr<CefView> GetViewForID(int id) OVERRIDE;
|
||||
void SetBounds(const CefRect& bounds) OVERRIDE;
|
||||
|
@@ -171,6 +171,42 @@ void CefButtonDelegateCToCpp::OnChildViewChanged(CefRefPtr<CefView> view,
|
||||
CefViewCppToC::Wrap(child));
|
||||
}
|
||||
|
||||
void CefButtonDelegateCToCpp::OnFocus(CefRefPtr<CefView> view) {
|
||||
cef_view_delegate_t* _struct = reinterpret_cast<cef_view_delegate_t*>(
|
||||
GetStruct());
|
||||
if (CEF_MEMBER_MISSING(_struct, on_focus))
|
||||
return;
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Verify param: view; type: refptr_diff
|
||||
DCHECK(view.get());
|
||||
if (!view.get())
|
||||
return;
|
||||
|
||||
// Execute
|
||||
_struct->on_focus(_struct,
|
||||
CefViewCppToC::Wrap(view));
|
||||
}
|
||||
|
||||
void CefButtonDelegateCToCpp::OnBlur(CefRefPtr<CefView> view) {
|
||||
cef_view_delegate_t* _struct = reinterpret_cast<cef_view_delegate_t*>(
|
||||
GetStruct());
|
||||
if (CEF_MEMBER_MISSING(_struct, on_blur))
|
||||
return;
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Verify param: view; type: refptr_diff
|
||||
DCHECK(view.get());
|
||||
if (!view.get())
|
||||
return;
|
||||
|
||||
// Execute
|
||||
_struct->on_blur(_struct,
|
||||
CefViewCppToC::Wrap(view));
|
||||
}
|
||||
|
||||
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
|
@@ -44,6 +44,8 @@ class CefButtonDelegateCToCpp
|
||||
CefRefPtr<CefView> parent) override;
|
||||
void OnChildViewChanged(CefRefPtr<CefView> view, bool added,
|
||||
CefRefPtr<CefView> child) override;
|
||||
void OnFocus(CefRefPtr<CefView> view) override;
|
||||
void OnBlur(CefRefPtr<CefView> view) override;
|
||||
};
|
||||
|
||||
#endif // CEF_LIBCEF_DLL_CTOCPP_VIEWS_BUTTON_DELEGATE_CTOCPP_H_
|
||||
|
@@ -488,6 +488,32 @@ void CefLabelButtonCToCpp::SetID(int id) {
|
||||
id);
|
||||
}
|
||||
|
||||
int CefLabelButtonCToCpp::GetGroupID() {
|
||||
cef_view_t* _struct = reinterpret_cast<cef_view_t*>(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 CefLabelButtonCToCpp::SetGroupID(int group_id) {
|
||||
cef_view_t* _struct = reinterpret_cast<cef_view_t*>(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<CefView> CefLabelButtonCToCpp::GetParentView() {
|
||||
cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
|
||||
if (CEF_MEMBER_MISSING(_struct, get_parent_view))
|
||||
|
@@ -68,6 +68,8 @@ class CefLabelButtonCToCpp
|
||||
CefRefPtr<CefWindow> GetWindow() OVERRIDE;
|
||||
int GetID() OVERRIDE;
|
||||
void SetID(int id) OVERRIDE;
|
||||
int GetGroupID() OVERRIDE;
|
||||
void SetGroupID(int group_id) OVERRIDE;
|
||||
CefRefPtr<CefView> GetParentView() OVERRIDE;
|
||||
CefRefPtr<CefView> GetViewForID(int id) OVERRIDE;
|
||||
void SetBounds(const CefRect& bounds) OVERRIDE;
|
||||
|
@@ -522,6 +522,32 @@ void CefMenuButtonCToCpp::SetID(int id) {
|
||||
id);
|
||||
}
|
||||
|
||||
int CefMenuButtonCToCpp::GetGroupID() {
|
||||
cef_view_t* _struct = reinterpret_cast<cef_view_t*>(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 CefMenuButtonCToCpp::SetGroupID(int group_id) {
|
||||
cef_view_t* _struct = reinterpret_cast<cef_view_t*>(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<CefView> CefMenuButtonCToCpp::GetParentView() {
|
||||
cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
|
||||
if (CEF_MEMBER_MISSING(_struct, get_parent_view))
|
||||
|
@@ -71,6 +71,8 @@ class CefMenuButtonCToCpp
|
||||
CefRefPtr<CefWindow> GetWindow() OVERRIDE;
|
||||
int GetID() OVERRIDE;
|
||||
void SetID(int id) OVERRIDE;
|
||||
int GetGroupID() OVERRIDE;
|
||||
void SetGroupID(int group_id) OVERRIDE;
|
||||
CefRefPtr<CefView> GetParentView() OVERRIDE;
|
||||
CefRefPtr<CefView> GetViewForID(int id) OVERRIDE;
|
||||
void SetBounds(const CefRect& bounds) OVERRIDE;
|
||||
|
@@ -191,6 +191,42 @@ void CefMenuButtonDelegateCToCpp::OnChildViewChanged(CefRefPtr<CefView> view,
|
||||
CefViewCppToC::Wrap(child));
|
||||
}
|
||||
|
||||
void CefMenuButtonDelegateCToCpp::OnFocus(CefRefPtr<CefView> view) {
|
||||
cef_view_delegate_t* _struct = reinterpret_cast<cef_view_delegate_t*>(
|
||||
GetStruct());
|
||||
if (CEF_MEMBER_MISSING(_struct, on_focus))
|
||||
return;
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Verify param: view; type: refptr_diff
|
||||
DCHECK(view.get());
|
||||
if (!view.get())
|
||||
return;
|
||||
|
||||
// Execute
|
||||
_struct->on_focus(_struct,
|
||||
CefViewCppToC::Wrap(view));
|
||||
}
|
||||
|
||||
void CefMenuButtonDelegateCToCpp::OnBlur(CefRefPtr<CefView> view) {
|
||||
cef_view_delegate_t* _struct = reinterpret_cast<cef_view_delegate_t*>(
|
||||
GetStruct());
|
||||
if (CEF_MEMBER_MISSING(_struct, on_blur))
|
||||
return;
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Verify param: view; type: refptr_diff
|
||||
DCHECK(view.get());
|
||||
if (!view.get())
|
||||
return;
|
||||
|
||||
// Execute
|
||||
_struct->on_blur(_struct,
|
||||
CefViewCppToC::Wrap(view));
|
||||
}
|
||||
|
||||
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
|
@@ -48,6 +48,8 @@ class CefMenuButtonDelegateCToCpp
|
||||
CefRefPtr<CefView> parent) override;
|
||||
void OnChildViewChanged(CefRefPtr<CefView> view, bool added,
|
||||
CefRefPtr<CefView> child) override;
|
||||
void OnFocus(CefRefPtr<CefView> view) override;
|
||||
void OnBlur(CefRefPtr<CefView> view) override;
|
||||
};
|
||||
|
||||
#endif // CEF_LIBCEF_DLL_CTOCPP_VIEWS_MENU_BUTTON_DELEGATE_CTOCPP_H_
|
||||
|
@@ -436,6 +436,32 @@ void CefPanelCToCpp::SetID(int id) {
|
||||
id);
|
||||
}
|
||||
|
||||
int CefPanelCToCpp::GetGroupID() {
|
||||
cef_view_t* _struct = reinterpret_cast<cef_view_t*>(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<cef_view_t*>(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<CefView> CefPanelCToCpp::GetParentView() {
|
||||
cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
|
||||
if (CEF_MEMBER_MISSING(_struct, get_parent_view))
|
||||
|
@@ -67,6 +67,8 @@ class CefPanelCToCpp
|
||||
CefRefPtr<CefWindow> GetWindow() OVERRIDE;
|
||||
int GetID() OVERRIDE;
|
||||
void SetID(int id) OVERRIDE;
|
||||
int GetGroupID() OVERRIDE;
|
||||
void SetGroupID(int group_id) OVERRIDE;
|
||||
CefRefPtr<CefView> GetParentView() OVERRIDE;
|
||||
CefRefPtr<CefView> GetViewForID(int id) OVERRIDE;
|
||||
void SetBounds(const CefRect& bounds) OVERRIDE;
|
||||
|
@@ -153,6 +153,42 @@ void CefPanelDelegateCToCpp::OnChildViewChanged(CefRefPtr<CefView> view,
|
||||
CefViewCppToC::Wrap(child));
|
||||
}
|
||||
|
||||
void CefPanelDelegateCToCpp::OnFocus(CefRefPtr<CefView> view) {
|
||||
cef_view_delegate_t* _struct = reinterpret_cast<cef_view_delegate_t*>(
|
||||
GetStruct());
|
||||
if (CEF_MEMBER_MISSING(_struct, on_focus))
|
||||
return;
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Verify param: view; type: refptr_diff
|
||||
DCHECK(view.get());
|
||||
if (!view.get())
|
||||
return;
|
||||
|
||||
// Execute
|
||||
_struct->on_focus(_struct,
|
||||
CefViewCppToC::Wrap(view));
|
||||
}
|
||||
|
||||
void CefPanelDelegateCToCpp::OnBlur(CefRefPtr<CefView> view) {
|
||||
cef_view_delegate_t* _struct = reinterpret_cast<cef_view_delegate_t*>(
|
||||
GetStruct());
|
||||
if (CEF_MEMBER_MISSING(_struct, on_blur))
|
||||
return;
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Verify param: view; type: refptr_diff
|
||||
DCHECK(view.get());
|
||||
if (!view.get())
|
||||
return;
|
||||
|
||||
// Execute
|
||||
_struct->on_blur(_struct,
|
||||
CefViewCppToC::Wrap(view));
|
||||
}
|
||||
|
||||
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
|
@@ -41,6 +41,8 @@ class CefPanelDelegateCToCpp
|
||||
CefRefPtr<CefView> parent) override;
|
||||
void OnChildViewChanged(CefRefPtr<CefView> view, bool added,
|
||||
CefRefPtr<CefView> child) override;
|
||||
void OnFocus(CefRefPtr<CefView> view) override;
|
||||
void OnBlur(CefRefPtr<CefView> view) override;
|
||||
};
|
||||
|
||||
#endif // CEF_LIBCEF_DLL_CTOCPP_VIEWS_PANEL_DELEGATE_CTOCPP_H_
|
||||
|
@@ -345,6 +345,32 @@ void CefScrollViewCToCpp::SetID(int id) {
|
||||
id);
|
||||
}
|
||||
|
||||
int CefScrollViewCToCpp::GetGroupID() {
|
||||
cef_view_t* _struct = reinterpret_cast<cef_view_t*>(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 CefScrollViewCToCpp::SetGroupID(int group_id) {
|
||||
cef_view_t* _struct = reinterpret_cast<cef_view_t*>(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<CefView> CefScrollViewCToCpp::GetParentView() {
|
||||
cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
|
||||
if (CEF_MEMBER_MISSING(_struct, get_parent_view))
|
||||
|
@@ -54,6 +54,8 @@ class CefScrollViewCToCpp
|
||||
CefRefPtr<CefWindow> GetWindow() OVERRIDE;
|
||||
int GetID() OVERRIDE;
|
||||
void SetID(int id) OVERRIDE;
|
||||
int GetGroupID() OVERRIDE;
|
||||
void SetGroupID(int group_id) OVERRIDE;
|
||||
CefRefPtr<CefView> GetParentView() OVERRIDE;
|
||||
CefRefPtr<CefView> GetViewForID(int id) OVERRIDE;
|
||||
void SetBounds(const CefRect& bounds) OVERRIDE;
|
||||
|
@@ -681,6 +681,32 @@ void CefTextfieldCToCpp::SetID(int id) {
|
||||
id);
|
||||
}
|
||||
|
||||
int CefTextfieldCToCpp::GetGroupID() {
|
||||
cef_view_t* _struct = reinterpret_cast<cef_view_t*>(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 CefTextfieldCToCpp::SetGroupID(int group_id) {
|
||||
cef_view_t* _struct = reinterpret_cast<cef_view_t*>(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<CefView> CefTextfieldCToCpp::GetParentView() {
|
||||
cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
|
||||
if (CEF_MEMBER_MISSING(_struct, get_parent_view))
|
||||
|
@@ -79,6 +79,8 @@ class CefTextfieldCToCpp
|
||||
CefRefPtr<CefWindow> GetWindow() OVERRIDE;
|
||||
int GetID() OVERRIDE;
|
||||
void SetID(int id) OVERRIDE;
|
||||
int GetGroupID() OVERRIDE;
|
||||
void SetGroupID(int group_id) OVERRIDE;
|
||||
CefRefPtr<CefView> GetParentView() OVERRIDE;
|
||||
CefRefPtr<CefView> GetViewForID(int id) OVERRIDE;
|
||||
void SetBounds(const CefRect& bounds) OVERRIDE;
|
||||
|
@@ -193,6 +193,42 @@ void CefTextfieldDelegateCToCpp::OnChildViewChanged(CefRefPtr<CefView> view,
|
||||
CefViewCppToC::Wrap(child));
|
||||
}
|
||||
|
||||
void CefTextfieldDelegateCToCpp::OnFocus(CefRefPtr<CefView> view) {
|
||||
cef_view_delegate_t* _struct = reinterpret_cast<cef_view_delegate_t*>(
|
||||
GetStruct());
|
||||
if (CEF_MEMBER_MISSING(_struct, on_focus))
|
||||
return;
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Verify param: view; type: refptr_diff
|
||||
DCHECK(view.get());
|
||||
if (!view.get())
|
||||
return;
|
||||
|
||||
// Execute
|
||||
_struct->on_focus(_struct,
|
||||
CefViewCppToC::Wrap(view));
|
||||
}
|
||||
|
||||
void CefTextfieldDelegateCToCpp::OnBlur(CefRefPtr<CefView> view) {
|
||||
cef_view_delegate_t* _struct = reinterpret_cast<cef_view_delegate_t*>(
|
||||
GetStruct());
|
||||
if (CEF_MEMBER_MISSING(_struct, on_blur))
|
||||
return;
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Verify param: view; type: refptr_diff
|
||||
DCHECK(view.get());
|
||||
if (!view.get())
|
||||
return;
|
||||
|
||||
// Execute
|
||||
_struct->on_blur(_struct,
|
||||
CefViewCppToC::Wrap(view));
|
||||
}
|
||||
|
||||
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
|
@@ -46,6 +46,8 @@ class CefTextfieldDelegateCToCpp
|
||||
CefRefPtr<CefView> parent) override;
|
||||
void OnChildViewChanged(CefRefPtr<CefView> view, bool added,
|
||||
CefRefPtr<CefView> child) override;
|
||||
void OnFocus(CefRefPtr<CefView> view) override;
|
||||
void OnBlur(CefRefPtr<CefView> view) override;
|
||||
};
|
||||
|
||||
#endif // CEF_LIBCEF_DLL_CTOCPP_VIEWS_TEXTFIELD_DELEGATE_CTOCPP_H_
|
||||
|
@@ -229,6 +229,32 @@ void CefViewCToCpp::SetID(int id) {
|
||||
id);
|
||||
}
|
||||
|
||||
int CefViewCToCpp::GetGroupID() {
|
||||
cef_view_t* _struct = 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 CefViewCToCpp::SetGroupID(int group_id) {
|
||||
cef_view_t* _struct = 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<CefView> CefViewCToCpp::GetParentView() {
|
||||
cef_view_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, get_parent_view))
|
||||
|
@@ -56,6 +56,8 @@ class CefViewCToCpp
|
||||
CefRefPtr<CefWindow> GetWindow() OVERRIDE;
|
||||
int GetID() OVERRIDE;
|
||||
void SetID(int id) OVERRIDE;
|
||||
int GetGroupID() OVERRIDE;
|
||||
void SetGroupID(int group_id) OVERRIDE;
|
||||
CefRefPtr<CefView> GetParentView() OVERRIDE;
|
||||
CefRefPtr<CefView> GetViewForID(int id) OVERRIDE;
|
||||
void SetBounds(const CefRect& bounds) OVERRIDE;
|
||||
|
@@ -152,6 +152,40 @@ void CefViewDelegateCToCpp::OnChildViewChanged(CefRefPtr<CefView> view,
|
||||
CefViewCppToC::Wrap(child));
|
||||
}
|
||||
|
||||
void CefViewDelegateCToCpp::OnFocus(CefRefPtr<CefView> view) {
|
||||
cef_view_delegate_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, on_focus))
|
||||
return;
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Verify param: view; type: refptr_diff
|
||||
DCHECK(view.get());
|
||||
if (!view.get())
|
||||
return;
|
||||
|
||||
// Execute
|
||||
_struct->on_focus(_struct,
|
||||
CefViewCppToC::Wrap(view));
|
||||
}
|
||||
|
||||
void CefViewDelegateCToCpp::OnBlur(CefRefPtr<CefView> view) {
|
||||
cef_view_delegate_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, on_blur))
|
||||
return;
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Verify param: view; type: refptr_diff
|
||||
DCHECK(view.get());
|
||||
if (!view.get())
|
||||
return;
|
||||
|
||||
// Execute
|
||||
_struct->on_blur(_struct,
|
||||
CefViewCppToC::Wrap(view));
|
||||
}
|
||||
|
||||
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
|
@@ -41,6 +41,8 @@ class CefViewDelegateCToCpp
|
||||
CefRefPtr<CefView> parent) override;
|
||||
void OnChildViewChanged(CefRefPtr<CefView> view, bool added,
|
||||
CefRefPtr<CefView> child) override;
|
||||
void OnFocus(CefRefPtr<CefView> view) override;
|
||||
void OnBlur(CefRefPtr<CefView> view) override;
|
||||
};
|
||||
|
||||
#endif // CEF_LIBCEF_DLL_CTOCPP_VIEWS_VIEW_DELEGATE_CTOCPP_H_
|
||||
|
@@ -938,6 +938,32 @@ void CefWindowCToCpp::SetID(int id) {
|
||||
id);
|
||||
}
|
||||
|
||||
int CefWindowCToCpp::GetGroupID() {
|
||||
cef_view_t* _struct = reinterpret_cast<cef_view_t*>(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 CefWindowCToCpp::SetGroupID(int group_id) {
|
||||
cef_view_t* _struct = reinterpret_cast<cef_view_t*>(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<CefView> CefWindowCToCpp::GetParentView() {
|
||||
cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
|
||||
if (CEF_MEMBER_MISSING(_struct, get_parent_view))
|
||||
|
@@ -103,6 +103,8 @@ class CefWindowCToCpp
|
||||
CefRefPtr<CefWindow> GetWindow() OVERRIDE;
|
||||
int GetID() OVERRIDE;
|
||||
void SetID(int id) OVERRIDE;
|
||||
int GetGroupID() OVERRIDE;
|
||||
void SetGroupID(int group_id) OVERRIDE;
|
||||
CefRefPtr<CefView> GetParentView() OVERRIDE;
|
||||
CefRefPtr<CefView> GetViewForID(int id) OVERRIDE;
|
||||
void SetBounds(const CefRect& bounds) OVERRIDE;
|
||||
|
@@ -331,6 +331,42 @@ void CefWindowDelegateCToCpp::OnChildViewChanged(CefRefPtr<CefView> view,
|
||||
CefViewCppToC::Wrap(child));
|
||||
}
|
||||
|
||||
void CefWindowDelegateCToCpp::OnFocus(CefRefPtr<CefView> view) {
|
||||
cef_view_delegate_t* _struct = reinterpret_cast<cef_view_delegate_t*>(
|
||||
GetStruct());
|
||||
if (CEF_MEMBER_MISSING(_struct, on_focus))
|
||||
return;
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Verify param: view; type: refptr_diff
|
||||
DCHECK(view.get());
|
||||
if (!view.get())
|
||||
return;
|
||||
|
||||
// Execute
|
||||
_struct->on_focus(_struct,
|
||||
CefViewCppToC::Wrap(view));
|
||||
}
|
||||
|
||||
void CefWindowDelegateCToCpp::OnBlur(CefRefPtr<CefView> view) {
|
||||
cef_view_delegate_t* _struct = reinterpret_cast<cef_view_delegate_t*>(
|
||||
GetStruct());
|
||||
if (CEF_MEMBER_MISSING(_struct, on_blur))
|
||||
return;
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Verify param: view; type: refptr_diff
|
||||
DCHECK(view.get());
|
||||
if (!view.get())
|
||||
return;
|
||||
|
||||
// Execute
|
||||
_struct->on_blur(_struct,
|
||||
CefViewCppToC::Wrap(view));
|
||||
}
|
||||
|
||||
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
|
@@ -55,6 +55,8 @@ class CefWindowDelegateCToCpp
|
||||
CefRefPtr<CefView> parent) override;
|
||||
void OnChildViewChanged(CefRefPtr<CefView> view, bool added,
|
||||
CefRefPtr<CefView> child) override;
|
||||
void OnFocus(CefRefPtr<CefView> view) override;
|
||||
void OnBlur(CefRefPtr<CefView> view) override;
|
||||
};
|
||||
|
||||
#endif // CEF_LIBCEF_DLL_CTOCPP_VIEWS_WINDOW_DELEGATE_CTOCPP_H_
|
||||
|
Reference in New Issue
Block a user