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 <utility> | 8 #include <utility> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 #include "chrome/browser/ui/webui/options/chromeos/accounts_options_handler.h" | 86 #include "chrome/browser/ui/webui/options/chromeos/accounts_options_handler.h" |
87 #include "chrome/browser/ui/webui/options/chromeos/bluetooth_options_handler.h" | 87 #include "chrome/browser/ui/webui/options/chromeos/bluetooth_options_handler.h" |
88 #include "chrome/browser/ui/webui/options/chromeos/change_picture_options_handle
r.h" | 88 #include "chrome/browser/ui/webui/options/chromeos/change_picture_options_handle
r.h" |
89 #include "chrome/browser/ui/webui/options/chromeos/core_chromeos_options_handler
.h" | 89 #include "chrome/browser/ui/webui/options/chromeos/core_chromeos_options_handler
.h" |
90 #include "chrome/browser/ui/webui/options/chromeos/cros_language_options_handler
.h" | 90 #include "chrome/browser/ui/webui/options/chromeos/cros_language_options_handler
.h" |
91 #include "chrome/browser/ui/webui/options/chromeos/date_time_options_handler.h" | 91 #include "chrome/browser/ui/webui/options/chromeos/date_time_options_handler.h" |
92 #include "chrome/browser/ui/webui/options/chromeos/display_options_handler.h" | 92 #include "chrome/browser/ui/webui/options/chromeos/display_options_handler.h" |
93 #include "chrome/browser/ui/webui/options/chromeos/display_overscan_handler.h" | 93 #include "chrome/browser/ui/webui/options/chromeos/display_overscan_handler.h" |
94 #include "chrome/browser/ui/webui/options/chromeos/internet_options_handler.h" | 94 #include "chrome/browser/ui/webui/options/chromeos/internet_options_handler.h" |
95 #include "chrome/browser/ui/webui/options/chromeos/keyboard_handler.h" | 95 #include "chrome/browser/ui/webui/options/chromeos/keyboard_handler.h" |
96 #include "chrome/browser/ui/webui/options/chromeos/options_note_handler.h" | 96 #include "chrome/browser/ui/webui/options/chromeos/options_stylus_handler.h" |
97 #include "chrome/browser/ui/webui/options/chromeos/pointer_handler.h" | 97 #include "chrome/browser/ui/webui/options/chromeos/pointer_handler.h" |
98 #include "chrome/browser/ui/webui/options/chromeos/power_handler.h" | 98 #include "chrome/browser/ui/webui/options/chromeos/power_handler.h" |
99 #include "chrome/browser/ui/webui/options/chromeos/proxy_handler.h" | 99 #include "chrome/browser/ui/webui/options/chromeos/proxy_handler.h" |
100 #include "chrome/browser/ui/webui/options/chromeos/stats_options_handler.h" | 100 #include "chrome/browser/ui/webui/options/chromeos/stats_options_handler.h" |
101 #include "chrome/browser/ui/webui/options/chromeos/storage_manager_handler.h" | 101 #include "chrome/browser/ui/webui/options/chromeos/storage_manager_handler.h" |
102 #include "chrome/browser/ui/webui/options/chromeos/user_image_source.h" | 102 #include "chrome/browser/ui/webui/options/chromeos/user_image_source.h" |
103 #endif | 103 #endif |
104 | 104 |
105 #if defined(USE_NSS_CERTS) | 105 #if defined(USE_NSS_CERTS) |
106 #include "chrome/browser/ui/webui/options/certificate_manager_handler.h" | 106 #include "chrome/browser/ui/webui/options/certificate_manager_handler.h" |
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
410 new chromeos::options::DisplayOptionsHandler()); | 410 new chromeos::options::DisplayOptionsHandler()); |
411 AddOptionsPageUIHandler(localized_strings, | 411 AddOptionsPageUIHandler(localized_strings, |
412 new chromeos::options::DisplayOverscanHandler()); | 412 new chromeos::options::DisplayOverscanHandler()); |
413 AddOptionsPageUIHandler(localized_strings, | 413 AddOptionsPageUIHandler(localized_strings, |
414 new chromeos::options::PowerHandler()); | 414 new chromeos::options::PowerHandler()); |
415 AddOptionsPageUIHandler(localized_strings, | 415 AddOptionsPageUIHandler(localized_strings, |
416 new chromeos::options::InternetOptionsHandler()); | 416 new chromeos::options::InternetOptionsHandler()); |
417 AddOptionsPageUIHandler(localized_strings, | 417 AddOptionsPageUIHandler(localized_strings, |
418 new chromeos::options::KeyboardHandler()); | 418 new chromeos::options::KeyboardHandler()); |
419 AddOptionsPageUIHandler(localized_strings, | 419 AddOptionsPageUIHandler(localized_strings, |
420 new chromeos::options::OptionsNoteHandler()); | 420 new chromeos::options::OptionsStylusHandler()); |
421 | 421 |
422 chromeos::options::PointerHandler* pointer_handler = | 422 chromeos::options::PointerHandler* pointer_handler = |
423 new chromeos::options::PointerHandler(); | 423 new chromeos::options::PointerHandler(); |
424 AddOptionsPageUIHandler(localized_strings, pointer_handler); | 424 AddOptionsPageUIHandler(localized_strings, pointer_handler); |
425 | 425 |
426 AddOptionsPageUIHandler(localized_strings, | 426 AddOptionsPageUIHandler(localized_strings, |
427 new chromeos::options::ProxyHandler()); | 427 new chromeos::options::ProxyHandler()); |
428 AddOptionsPageUIHandler( | 428 AddOptionsPageUIHandler( |
429 localized_strings, | 429 localized_strings, |
430 new chromeos::options::ChangePictureOptionsHandler()); | 430 new chromeos::options::ChangePictureOptionsHandler()); |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
569 // Add only if handler's service is enabled. | 569 // Add only if handler's service is enabled. |
570 if (handler->IsEnabled()) { | 570 if (handler->IsEnabled()) { |
571 // Add handler to the list and also pass the ownership. | 571 // Add handler to the list and also pass the ownership. |
572 web_ui()->AddMessageHandler(handler.release()); | 572 web_ui()->AddMessageHandler(handler.release()); |
573 handler_raw->GetLocalizedValues(localized_strings); | 573 handler_raw->GetLocalizedValues(localized_strings); |
574 handlers_.push_back(handler_raw); | 574 handlers_.push_back(handler_raw); |
575 } | 575 } |
576 } | 576 } |
577 | 577 |
578 } // namespace options | 578 } // namespace options |
OLD | NEW |