diff options
author | rouslan@chromium.org <rouslan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-20 08:26:46 +0000 |
---|---|---|
committer | rouslan@chromium.org <rouslan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-20 08:26:46 +0000 |
commit | 6cc4a844cc9caaf721728ba0097cff61bbf7fbeb (patch) | |
tree | e9cba89d5d28430f45e8053a274635006503386a /chrome/browser/ui/webui/options/options_ui.cc | |
parent | 9687e5ef4025dca16d787afdef2bbda6c07e2272 (diff) | |
download | chromium_src-6cc4a844cc9caaf721728ba0097cff61bbf7fbeb.zip chromium_src-6cc4a844cc9caaf721728ba0097cff61bbf7fbeb.tar.gz chromium_src-6cc4a844cc9caaf721728ba0097cff61bbf7fbeb.tar.bz2 |
Enable users to alter their custom dictionary from an overlay on chrome://settings/editDictionary. This overlay can also be accessed through:
Settings
|_Show advanced settings...
..|_Language and spell-checker settings...
....|_Custom spelling dictionary
When a user types an unknown word into a textarea, the browser underlines this word as a misspelling. The user can right-click on this word and select "Add to Dictionary". If the user made a mistake, the user needs a way to remove a word from their custom dictionary. This CL provides this functionality.
Automated tests are in https://codereview.chromium.org/11280013/ and https://codereview.chromium.org/11308076/.
BUG=18238
Review URL: https://chromiumcodereview.appspot.com/11362063
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@168760 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/webui/options/options_ui.cc')
-rw-r--r-- | chrome/browser/ui/webui/options/options_ui.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/browser/ui/webui/options/options_ui.cc b/chrome/browser/ui/webui/options/options_ui.cc index 567122f..81e6db5 100644 --- a/chrome/browser/ui/webui/options/options_ui.cc +++ b/chrome/browser/ui/webui/options/options_ui.cc @@ -33,6 +33,7 @@ #include "chrome/browser/ui/webui/options/handler_options_handler.h" #include "chrome/browser/ui/webui/options/home_page_overlay_handler.h" #include "chrome/browser/ui/webui/options/import_data_handler.h" +#include "chrome/browser/ui/webui/options/language_dictionary_overlay_handler.h" #include "chrome/browser/ui/webui/options/language_options_handler.h" #include "chrome/browser/ui/webui/options/manage_profile_handler.h" #include "chrome/browser/ui/webui/options/media_devices_selection_handler.h" @@ -249,6 +250,8 @@ OptionsUI::OptionsUI(content::WebUI* web_ui) #else AddOptionsPageUIHandler(localized_strings, new LanguageOptionsHandler()); #endif + AddOptionsPageUIHandler(localized_strings, + new LanguageDictionaryOverlayHandler()); AddOptionsPageUIHandler(localized_strings, new ManageProfileHandler()); AddOptionsPageUIHandler(localized_strings, new PasswordManagerHandler()); AddOptionsPageUIHandler(localized_strings, new SearchEngineManagerHandler()); |