mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Further improvements to spell checking support (issue #137).
- Add "Add to dictionary" context menu option. - Use available translations for "Add to dictionary" and "No spelling suggestions". - Fix placement of context menu separators. - Display the "No spelling suggestions" option as grayed out. git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1879 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@@ -350,6 +350,22 @@ void CefBrowserHostCToCpp::ReplaceMisspelling(const CefString& word) {
|
||||
word.GetStruct());
|
||||
}
|
||||
|
||||
void CefBrowserHostCToCpp::AddWordToDictionary(const CefString& word) {
|
||||
if (CEF_MEMBER_MISSING(struct_, add_word_to_dictionary))
|
||||
return;
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Verify param: word; type: string_byref_const
|
||||
DCHECK(!word.empty());
|
||||
if (word.empty())
|
||||
return;
|
||||
|
||||
// Execute
|
||||
struct_->add_word_to_dictionary(struct_,
|
||||
word.GetStruct());
|
||||
}
|
||||
|
||||
bool CefBrowserHostCToCpp::IsWindowRenderingDisabled() {
|
||||
if (CEF_MEMBER_MISSING(struct_, is_window_rendering_disabled))
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user