mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Add search/find support (issue #513).
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1482 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@@ -260,6 +260,38 @@ void CefBrowserHostCToCpp::Print() {
|
||||
struct_->print(struct_);
|
||||
}
|
||||
|
||||
void CefBrowserHostCToCpp::Find(int identifier, const CefString& searchText,
|
||||
bool forward, bool matchCase, bool findNext) {
|
||||
if (CEF_MEMBER_MISSING(struct_, find))
|
||||
return;
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Verify param: searchText; type: string_byref_const
|
||||
DCHECK(!searchText.empty());
|
||||
if (searchText.empty())
|
||||
return;
|
||||
|
||||
// Execute
|
||||
struct_->find(struct_,
|
||||
identifier,
|
||||
searchText.GetStruct(),
|
||||
forward,
|
||||
matchCase,
|
||||
findNext);
|
||||
}
|
||||
|
||||
void CefBrowserHostCToCpp::StopFinding(bool clearSelection) {
|
||||
if (CEF_MEMBER_MISSING(struct_, stop_finding))
|
||||
return;
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
struct_->stop_finding(struct_,
|
||||
clearSelection);
|
||||
}
|
||||
|
||||
void CefBrowserHostCToCpp::SetMouseCursorChangeDisabled(bool disabled) {
|
||||
if (CEF_MEMBER_MISSING(struct_, set_mouse_cursor_change_disabled))
|
||||
return;
|
||||
|
Reference in New Issue
Block a user