| 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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/consumer_management_handler.h
" | 89 #include "chrome/browser/ui/webui/options/chromeos/consumer_management_handler.h
" |
| 90 #include "chrome/browser/ui/webui/options/chromeos/core_chromeos_options_handler
.h" | 90 #include "chrome/browser/ui/webui/options/chromeos/core_chromeos_options_handler
.h" |
| 91 #include "chrome/browser/ui/webui/options/chromeos/cros_language_options_handler
.h" | 91 #include "chrome/browser/ui/webui/options/chromeos/cros_language_options_handler
.h" |
| 92 #include "chrome/browser/ui/webui/options/chromeos/date_time_options_handler.h" | 92 #include "chrome/browser/ui/webui/options/chromeos/date_time_options_handler.h" |
| 93 #include "chrome/browser/ui/webui/options/chromeos/display_options_handler.h" | 93 #include "chrome/browser/ui/webui/options/chromeos/display_options_handler.h" |
| 94 #include "chrome/browser/ui/webui/options/chromeos/display_overscan_handler.h" | 94 #include "chrome/browser/ui/webui/options/chromeos/display_overscan_handler.h" |
| 95 #include "chrome/browser/ui/webui/options/chromeos/internet_options_handler.h" | 95 #include "chrome/browser/ui/webui/options/chromeos/internet_options_handler.h" |
| 96 #include "chrome/browser/ui/webui/options/chromeos/keyboard_handler.h" | 96 #include "chrome/browser/ui/webui/options/chromeos/keyboard_handler.h" |
| 97 #include "chrome/browser/ui/webui/options/chromeos/options_note_handler.h" |
| 97 #include "chrome/browser/ui/webui/options/chromeos/pointer_handler.h" | 98 #include "chrome/browser/ui/webui/options/chromeos/pointer_handler.h" |
| 98 #include "chrome/browser/ui/webui/options/chromeos/power_handler.h" | 99 #include "chrome/browser/ui/webui/options/chromeos/power_handler.h" |
| 99 #include "chrome/browser/ui/webui/options/chromeos/proxy_handler.h" | 100 #include "chrome/browser/ui/webui/options/chromeos/proxy_handler.h" |
| 100 #include "chrome/browser/ui/webui/options/chromeos/stats_options_handler.h" | 101 #include "chrome/browser/ui/webui/options/chromeos/stats_options_handler.h" |
| 101 #include "chrome/browser/ui/webui/options/chromeos/storage_manager_handler.h" | 102 #include "chrome/browser/ui/webui/options/chromeos/storage_manager_handler.h" |
| 102 #include "chrome/browser/ui/webui/options/chromeos/user_image_source.h" | 103 #include "chrome/browser/ui/webui/options/chromeos/user_image_source.h" |
| 103 #endif | 104 #endif |
| 104 | 105 |
| 105 #if defined(USE_NSS_CERTS) | 106 #if defined(USE_NSS_CERTS) |
| 106 #include "chrome/browser/ui/webui/options/certificate_manager_handler.h" | 107 #include "chrome/browser/ui/webui/options/certificate_manager_handler.h" |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 319 AddOptionsPageUIHandler(localized_strings, | 320 AddOptionsPageUIHandler(localized_strings, |
| 320 new chromeos::options::DisplayOptionsHandler()); | 321 new chromeos::options::DisplayOptionsHandler()); |
| 321 AddOptionsPageUIHandler(localized_strings, | 322 AddOptionsPageUIHandler(localized_strings, |
| 322 new chromeos::options::DisplayOverscanHandler()); | 323 new chromeos::options::DisplayOverscanHandler()); |
| 323 AddOptionsPageUIHandler(localized_strings, | 324 AddOptionsPageUIHandler(localized_strings, |
| 324 new chromeos::options::PowerHandler()); | 325 new chromeos::options::PowerHandler()); |
| 325 AddOptionsPageUIHandler(localized_strings, | 326 AddOptionsPageUIHandler(localized_strings, |
| 326 new chromeos::options::InternetOptionsHandler()); | 327 new chromeos::options::InternetOptionsHandler()); |
| 327 AddOptionsPageUIHandler(localized_strings, | 328 AddOptionsPageUIHandler(localized_strings, |
| 328 new chromeos::options::KeyboardHandler()); | 329 new chromeos::options::KeyboardHandler()); |
| 330 AddOptionsPageUIHandler(localized_strings, |
| 331 new chromeos::options::OptionsNoteHandler()); |
| 329 | 332 |
| 330 chromeos::options::PointerHandler* pointer_handler = | 333 chromeos::options::PointerHandler* pointer_handler = |
| 331 new chromeos::options::PointerHandler(); | 334 new chromeos::options::PointerHandler(); |
| 332 AddOptionsPageUIHandler(localized_strings, pointer_handler); | 335 AddOptionsPageUIHandler(localized_strings, pointer_handler); |
| 333 | 336 |
| 334 AddOptionsPageUIHandler(localized_strings, | 337 AddOptionsPageUIHandler(localized_strings, |
| 335 new chromeos::options::ProxyHandler()); | 338 new chromeos::options::ProxyHandler()); |
| 336 AddOptionsPageUIHandler( | 339 AddOptionsPageUIHandler( |
| 337 localized_strings, | 340 localized_strings, |
| 338 new chromeos::options::ChangePictureOptionsHandler()); | 341 new chromeos::options::ChangePictureOptionsHandler()); |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 484 // Add only if handler's service is enabled. | 487 // Add only if handler's service is enabled. |
| 485 if (handler->IsEnabled()) { | 488 if (handler->IsEnabled()) { |
| 486 // Add handler to the list and also pass the ownership. | 489 // Add handler to the list and also pass the ownership. |
| 487 web_ui()->AddMessageHandler(handler.release()); | 490 web_ui()->AddMessageHandler(handler.release()); |
| 488 handler_raw->GetLocalizedValues(localized_strings); | 491 handler_raw->GetLocalizedValues(localized_strings); |
| 489 handlers_.push_back(handler_raw); | 492 handlers_.push_back(handler_raw); |
| 490 } | 493 } |
| 491 } | 494 } |
| 492 | 495 |
| 493 } // namespace options | 496 } // namespace options |
| OLD | NEW |