Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(221)

Side by Side Diff: chrome/browser/ui/webui/options/options_ui.cc

Issue 11362063: Editing the custom spelling dictionary (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/webui/options/options_ui.h" 5 #include "chrome/browser/ui/webui/options/options_ui.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 15 matching lines...) Expand all
26 #include "chrome/browser/ui/webui/options/autofill_options_handler.h" 26 #include "chrome/browser/ui/webui/options/autofill_options_handler.h"
27 #include "chrome/browser/ui/webui/options/browser_options_handler.h" 27 #include "chrome/browser/ui/webui/options/browser_options_handler.h"
28 #include "chrome/browser/ui/webui/options/clear_browser_data_handler.h" 28 #include "chrome/browser/ui/webui/options/clear_browser_data_handler.h"
29 #include "chrome/browser/ui/webui/options/content_settings_handler.h" 29 #include "chrome/browser/ui/webui/options/content_settings_handler.h"
30 #include "chrome/browser/ui/webui/options/cookies_view_handler.h" 30 #include "chrome/browser/ui/webui/options/cookies_view_handler.h"
31 #include "chrome/browser/ui/webui/options/core_options_handler.h" 31 #include "chrome/browser/ui/webui/options/core_options_handler.h"
32 #include "chrome/browser/ui/webui/options/font_settings_handler.h" 32 #include "chrome/browser/ui/webui/options/font_settings_handler.h"
33 #include "chrome/browser/ui/webui/options/handler_options_handler.h" 33 #include "chrome/browser/ui/webui/options/handler_options_handler.h"
34 #include "chrome/browser/ui/webui/options/home_page_overlay_handler.h" 34 #include "chrome/browser/ui/webui/options/home_page_overlay_handler.h"
35 #include "chrome/browser/ui/webui/options/import_data_handler.h" 35 #include "chrome/browser/ui/webui/options/import_data_handler.h"
36 #include "chrome/browser/ui/webui/options/language_dictionary_overlay_handler.h"
36 #include "chrome/browser/ui/webui/options/language_options_handler.h" 37 #include "chrome/browser/ui/webui/options/language_options_handler.h"
37 #include "chrome/browser/ui/webui/options/manage_profile_handler.h" 38 #include "chrome/browser/ui/webui/options/manage_profile_handler.h"
38 #include "chrome/browser/ui/webui/options/media_galleries_handler.h" 39 #include "chrome/browser/ui/webui/options/media_galleries_handler.h"
39 #include "chrome/browser/ui/webui/options/options_sync_setup_handler.h" 40 #include "chrome/browser/ui/webui/options/options_sync_setup_handler.h"
40 #include "chrome/browser/ui/webui/options/password_manager_handler.h" 41 #include "chrome/browser/ui/webui/options/password_manager_handler.h"
41 #include "chrome/browser/ui/webui/options/search_engine_manager_handler.h" 42 #include "chrome/browser/ui/webui/options/search_engine_manager_handler.h"
42 #include "chrome/browser/ui/webui/options/startup_pages_handler.h" 43 #include "chrome/browser/ui/webui/options/startup_pages_handler.h"
43 #include "chrome/browser/ui/webui/options/web_intents_settings_handler.h" 44 #include "chrome/browser/ui/webui/options/web_intents_settings_handler.h"
44 #include "chrome/browser/ui/webui/theme_source.h" 45 #include "chrome/browser/ui/webui/theme_source.h"
45 #include "chrome/common/jstemplate_builder.h" 46 #include "chrome/common/jstemplate_builder.h"
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 AddOptionsPageUIHandler(localized_strings, new FontSettingsHandler()); 236 AddOptionsPageUIHandler(localized_strings, new FontSettingsHandler());
236 AddOptionsPageUIHandler(localized_strings, new HomePageOverlayHandler()); 237 AddOptionsPageUIHandler(localized_strings, new HomePageOverlayHandler());
237 AddOptionsPageUIHandler(localized_strings, new MediaGalleriesHandler()); 238 AddOptionsPageUIHandler(localized_strings, new MediaGalleriesHandler());
238 AddOptionsPageUIHandler(localized_strings, new WebIntentsSettingsHandler()); 239 AddOptionsPageUIHandler(localized_strings, new WebIntentsSettingsHandler());
239 #if defined(OS_CHROMEOS) 240 #if defined(OS_CHROMEOS)
240 AddOptionsPageUIHandler(localized_strings, 241 AddOptionsPageUIHandler(localized_strings,
241 new chromeos::options::CrosLanguageOptionsHandler()); 242 new chromeos::options::CrosLanguageOptionsHandler());
242 #else 243 #else
243 AddOptionsPageUIHandler(localized_strings, new LanguageOptionsHandler()); 244 AddOptionsPageUIHandler(localized_strings, new LanguageOptionsHandler());
244 #endif 245 #endif
246 AddOptionsPageUIHandler(localized_strings,
247 new LanguageDictionaryOverlayHandler());
245 AddOptionsPageUIHandler(localized_strings, new ManageProfileHandler()); 248 AddOptionsPageUIHandler(localized_strings, new ManageProfileHandler());
246 AddOptionsPageUIHandler(localized_strings, new PasswordManagerHandler()); 249 AddOptionsPageUIHandler(localized_strings, new PasswordManagerHandler());
247 AddOptionsPageUIHandler(localized_strings, new SearchEngineManagerHandler()); 250 AddOptionsPageUIHandler(localized_strings, new SearchEngineManagerHandler());
248 AddOptionsPageUIHandler(localized_strings, new ImportDataHandler()); 251 AddOptionsPageUIHandler(localized_strings, new ImportDataHandler());
249 AddOptionsPageUIHandler(localized_strings, new StartupPagesHandler()); 252 AddOptionsPageUIHandler(localized_strings, new StartupPagesHandler());
250 AddOptionsPageUIHandler(localized_strings, new OptionsSyncSetupHandler( 253 AddOptionsPageUIHandler(localized_strings, new OptionsSyncSetupHandler(
251 g_browser_process->profile_manager())); 254 g_browser_process->profile_manager()));
252 #if defined(OS_CHROMEOS) 255 #if defined(OS_CHROMEOS)
253 AddOptionsPageUIHandler(localized_strings, 256 AddOptionsPageUIHandler(localized_strings,
254 new chromeos::options::AccountsOptionsHandler()); 257 new chromeos::options::AccountsOptionsHandler());
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 // Add only if handler's service is enabled. 402 // Add only if handler's service is enabled.
400 if (handler->IsEnabled()) { 403 if (handler->IsEnabled()) {
401 // Add handler to the list and also pass the ownership. 404 // Add handler to the list and also pass the ownership.
402 web_ui()->AddMessageHandler(handler.release()); 405 web_ui()->AddMessageHandler(handler.release());
403 handler_raw->GetLocalizedValues(localized_strings); 406 handler_raw->GetLocalizedValues(localized_strings);
404 handlers_.push_back(handler_raw); 407 handlers_.push_back(handler_raw);
405 } 408 }
406 } 409 }
407 410
408 } // namespace options 411 } // namespace options
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698