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:
@@ -367,6 +367,12 @@ typedef struct _cef_browser_host_t {
|
||||
void (CEF_CALLBACK *replace_misspelling)(struct _cef_browser_host_t* self,
|
||||
const cef_string_t* word);
|
||||
|
||||
///
|
||||
// Add the specified |word| to the spelling dictionary.
|
||||
///
|
||||
void (CEF_CALLBACK *add_word_to_dictionary)(struct _cef_browser_host_t* self,
|
||||
const cef_string_t* word);
|
||||
|
||||
///
|
||||
// Returns true (1) if window rendering is disabled.
|
||||
///
|
||||
|
@@ -413,6 +413,12 @@ class CefBrowserHost : public virtual CefBase {
|
||||
/*--cef()--*/
|
||||
virtual void ReplaceMisspelling(const CefString& word) =0;
|
||||
|
||||
///
|
||||
// Add the specified |word| to the spelling dictionary.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual void AddWordToDictionary(const CefString& word) =0;
|
||||
|
||||
///
|
||||
// Returns true if window rendering is disabled.
|
||||
///
|
||||
|
@@ -1308,6 +1308,7 @@ typedef enum {
|
||||
MENU_ID_SPELLCHECK_SUGGESTION_4 = 204,
|
||||
MENU_ID_SPELLCHECK_SUGGESTION_LAST = 204,
|
||||
MENU_ID_NO_SPELLING_SUGGESTIONS = 205,
|
||||
MENU_ID_ADD_TO_DICTIONARY = 206,
|
||||
|
||||
// All user-defined menu IDs should come between MENU_ID_USER_FIRST and
|
||||
// MENU_ID_USER_LAST to avoid overlapping the Chromium and CEF ID ranges
|
||||
|
Reference in New Issue
Block a user