OLD | NEW |
---|---|
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/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 15 matching lines...) Expand all Loading... | |
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/automatic_settings_reset_handler.h" | 27 #include "chrome/browser/ui/webui/options/automatic_settings_reset_handler.h" |
28 #include "chrome/browser/ui/webui/options/browser_options_handler.h" | 28 #include "chrome/browser/ui/webui/options/browser_options_handler.h" |
29 #include "chrome/browser/ui/webui/options/clear_browser_data_handler.h" | 29 #include "chrome/browser/ui/webui/options/clear_browser_data_handler.h" |
30 #include "chrome/browser/ui/webui/options/content_settings_handler.h" | 30 #include "chrome/browser/ui/webui/options/content_settings_handler.h" |
31 #include "chrome/browser/ui/webui/options/cookies_view_handler.h" | 31 #include "chrome/browser/ui/webui/options/cookies_view_handler.h" |
32 #include "chrome/browser/ui/webui/options/core_options_handler.h" | 32 #include "chrome/browser/ui/webui/options/core_options_handler.h" |
33 #include "chrome/browser/ui/webui/options/create_profile_handler.h" | 33 #include "chrome/browser/ui/webui/options/create_profile_handler.h" |
34 #include "chrome/browser/ui/webui/options/font_settings_handler.h" | 34 #include "chrome/browser/ui/webui/options/font_settings_handler.h" |
35 #include "chrome/browser/ui/webui/options/handler_options_handler.h" | 35 #include "chrome/browser/ui/webui/options/handler_options_handler.h" |
36 #include "chrome/browser/ui/webui/options/help_overlay_handler.h" | |
36 #include "chrome/browser/ui/webui/options/home_page_overlay_handler.h" | 37 #include "chrome/browser/ui/webui/options/home_page_overlay_handler.h" |
37 #include "chrome/browser/ui/webui/options/import_data_handler.h" | 38 #include "chrome/browser/ui/webui/options/import_data_handler.h" |
38 #include "chrome/browser/ui/webui/options/language_dictionary_overlay_handler.h" | 39 #include "chrome/browser/ui/webui/options/language_dictionary_overlay_handler.h" |
39 #include "chrome/browser/ui/webui/options/language_options_handler.h" | 40 #include "chrome/browser/ui/webui/options/language_options_handler.h" |
40 #include "chrome/browser/ui/webui/options/manage_profile_handler.h" | 41 #include "chrome/browser/ui/webui/options/manage_profile_handler.h" |
41 #include "chrome/browser/ui/webui/options/media_devices_selection_handler.h" | 42 #include "chrome/browser/ui/webui/options/media_devices_selection_handler.h" |
42 #include "chrome/browser/ui/webui/options/password_manager_handler.h" | 43 #include "chrome/browser/ui/webui/options/password_manager_handler.h" |
43 #include "chrome/browser/ui/webui/options/reset_profile_settings_handler.h" | 44 #include "chrome/browser/ui/webui/options/reset_profile_settings_handler.h" |
44 #include "chrome/browser/ui/webui/options/search_engine_manager_handler.h" | 45 #include "chrome/browser/ui/webui/options/search_engine_manager_handler.h" |
45 #include "chrome/browser/ui/webui/options/startup_pages_handler.h" | 46 #include "chrome/browser/ui/webui/options/startup_pages_handler.h" |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
266 AddOptionsPageUIHandler(localized_strings, browser_options_handler); | 267 AddOptionsPageUIHandler(localized_strings, browser_options_handler); |
267 | 268 |
268 AddOptionsPageUIHandler(localized_strings, new ClearBrowserDataHandler()); | 269 AddOptionsPageUIHandler(localized_strings, new ClearBrowserDataHandler()); |
269 AddOptionsPageUIHandler(localized_strings, new ContentSettingsHandler()); | 270 AddOptionsPageUIHandler(localized_strings, new ContentSettingsHandler()); |
270 AddOptionsPageUIHandler(localized_strings, new CookiesViewHandler()); | 271 AddOptionsPageUIHandler(localized_strings, new CookiesViewHandler()); |
271 AddOptionsPageUIHandler(localized_strings, new CreateProfileHandler()); | 272 AddOptionsPageUIHandler(localized_strings, new CreateProfileHandler()); |
272 AddOptionsPageUIHandler(localized_strings, new FontSettingsHandler()); | 273 AddOptionsPageUIHandler(localized_strings, new FontSettingsHandler()); |
273 #if defined(ENABLE_GOOGLE_NOW) | 274 #if defined(ENABLE_GOOGLE_NOW) |
274 AddOptionsPageUIHandler(localized_strings, new GeolocationOptionsHandler()); | 275 AddOptionsPageUIHandler(localized_strings, new GeolocationOptionsHandler()); |
275 #endif | 276 #endif |
277 AddOptionsPageUIHandler(localized_strings, new HelpOverlayHandler()); | |
Dan Beam
2014/08/07 22:36:16
why isn't this added only on ChromeOS?
michaelpg
2014/08/08 01:10:46
Done. (The only other thing to mention is I intent
Dan Beam
2014/08/08 02:39:13
are there immediate plans to use any of the "about
stevenjb
2014/08/08 16:41:32
The plan of record is to try settings-in-a-window
| |
276 AddOptionsPageUIHandler(localized_strings, new HomePageOverlayHandler()); | 278 AddOptionsPageUIHandler(localized_strings, new HomePageOverlayHandler()); |
277 AddOptionsPageUIHandler(localized_strings, | 279 AddOptionsPageUIHandler(localized_strings, |
278 new MediaDevicesSelectionHandler()); | 280 new MediaDevicesSelectionHandler()); |
279 #if defined(OS_CHROMEOS) | 281 #if defined(OS_CHROMEOS) |
280 AddOptionsPageUIHandler(localized_strings, | 282 AddOptionsPageUIHandler(localized_strings, |
281 new chromeos::options::CrosLanguageOptionsHandler()); | 283 new chromeos::options::CrosLanguageOptionsHandler()); |
282 #else | 284 #else |
283 AddOptionsPageUIHandler(localized_strings, new LanguageOptionsHandler()); | 285 AddOptionsPageUIHandler(localized_strings, new LanguageOptionsHandler()); |
284 #endif | 286 #endif |
285 AddOptionsPageUIHandler(localized_strings, | 287 AddOptionsPageUIHandler(localized_strings, |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
456 // Add only if handler's service is enabled. | 458 // Add only if handler's service is enabled. |
457 if (handler->IsEnabled()) { | 459 if (handler->IsEnabled()) { |
458 // Add handler to the list and also pass the ownership. | 460 // Add handler to the list and also pass the ownership. |
459 web_ui()->AddMessageHandler(handler.release()); | 461 web_ui()->AddMessageHandler(handler.release()); |
460 handler_raw->GetLocalizedValues(localized_strings); | 462 handler_raw->GetLocalizedValues(localized_strings); |
461 handlers_.push_back(handler_raw); | 463 handlers_.push_back(handler_raw); |
462 } | 464 } |
463 } | 465 } |
464 | 466 |
465 } // namespace options | 467 } // namespace options |
OLD | NEW |