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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h" | 81 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h" |
82 #include "chrome/browser/chromeos/policy/consumer_management_service.h" | 82 #include "chrome/browser/chromeos/policy/consumer_management_service.h" |
83 #include "chrome/browser/chromeos/system/pointer_device_observer.h" | 83 #include "chrome/browser/chromeos/system/pointer_device_observer.h" |
84 #include "chrome/browser/ui/webui/options/chromeos/accounts_options_handler.h" | 84 #include "chrome/browser/ui/webui/options/chromeos/accounts_options_handler.h" |
85 #include "chrome/browser/ui/webui/options/chromeos/bluetooth_options_handler.h" | 85 #include "chrome/browser/ui/webui/options/chromeos/bluetooth_options_handler.h" |
86 #include "chrome/browser/ui/webui/options/chromeos/change_picture_options_handle
r.h" | 86 #include "chrome/browser/ui/webui/options/chromeos/change_picture_options_handle
r.h" |
87 #include "chrome/browser/ui/webui/options/chromeos/consumer_management_handler.h
" | 87 #include "chrome/browser/ui/webui/options/chromeos/consumer_management_handler.h
" |
88 #include "chrome/browser/ui/webui/options/chromeos/core_chromeos_options_handler
.h" | 88 #include "chrome/browser/ui/webui/options/chromeos/core_chromeos_options_handler
.h" |
89 #include "chrome/browser/ui/webui/options/chromeos/cros_language_options_handler
.h" | 89 #include "chrome/browser/ui/webui/options/chromeos/cros_language_options_handler
.h" |
90 #include "chrome/browser/ui/webui/options/chromeos/date_time_options_handler.h" | 90 #include "chrome/browser/ui/webui/options/chromeos/date_time_options_handler.h" |
91 #include "chrome/browser/ui/webui/options/chromeos/display_options_handler.h" | |
92 #include "chrome/browser/ui/webui/options/chromeos/display_overscan_handler.h" | |
93 #include "chrome/browser/ui/webui/options/chromeos/internet_options_handler.h" | 91 #include "chrome/browser/ui/webui/options/chromeos/internet_options_handler.h" |
94 #include "chrome/browser/ui/webui/options/chromeos/keyboard_handler.h" | 92 #include "chrome/browser/ui/webui/options/chromeos/keyboard_handler.h" |
95 #include "chrome/browser/ui/webui/options/chromeos/pointer_handler.h" | 93 #include "chrome/browser/ui/webui/options/chromeos/pointer_handler.h" |
96 #include "chrome/browser/ui/webui/options/chromeos/power_handler.h" | |
97 #include "chrome/browser/ui/webui/options/chromeos/proxy_handler.h" | 94 #include "chrome/browser/ui/webui/options/chromeos/proxy_handler.h" |
98 #include "chrome/browser/ui/webui/options/chromeos/stats_options_handler.h" | 95 #include "chrome/browser/ui/webui/options/chromeos/stats_options_handler.h" |
99 #include "chrome/browser/ui/webui/options/chromeos/user_image_source.h" | 96 #include "chrome/browser/ui/webui/options/chromeos/user_image_source.h" |
100 #endif | 97 #endif |
101 | 98 |
| 99 #if defined(OS_CHROMEOS) && !defined(USE_ATHENA) |
| 100 #include "chrome/browser/ui/webui/options/chromeos/display_options_handler.h" |
| 101 #include "chrome/browser/ui/webui/options/chromeos/display_overscan_handler.h" |
| 102 #include "chrome/browser/ui/webui/options/chromeos/power_handler.h" |
| 103 #endif |
| 104 |
102 #if defined(USE_NSS) | 105 #if defined(USE_NSS) |
103 #include "chrome/browser/ui/webui/options/certificate_manager_handler.h" | 106 #include "chrome/browser/ui/webui/options/certificate_manager_handler.h" |
104 #endif | 107 #endif |
105 | 108 |
106 #if defined(ENABLE_GOOGLE_NOW) | 109 #if defined(ENABLE_GOOGLE_NOW) |
107 #include "chrome/browser/ui/webui/options/geolocation_options_handler.h" | 110 #include "chrome/browser/ui/webui/options/geolocation_options_handler.h" |
108 #endif | 111 #endif |
109 | 112 |
110 using content::RenderViewHost; | 113 using content::RenderViewHost; |
111 | 114 |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
312 AddOptionsPageUIHandler(localized_strings, new SyncSetupHandler( | 315 AddOptionsPageUIHandler(localized_strings, new SyncSetupHandler( |
313 g_browser_process->profile_manager())); | 316 g_browser_process->profile_manager())); |
314 AddOptionsPageUIHandler(localized_strings, new WebsiteSettingsHandler()); | 317 AddOptionsPageUIHandler(localized_strings, new WebsiteSettingsHandler()); |
315 #if defined(OS_CHROMEOS) | 318 #if defined(OS_CHROMEOS) |
316 AddOptionsPageUIHandler(localized_strings, | 319 AddOptionsPageUIHandler(localized_strings, |
317 new chromeos::options::AccountsOptionsHandler()); | 320 new chromeos::options::AccountsOptionsHandler()); |
318 AddOptionsPageUIHandler(localized_strings, | 321 AddOptionsPageUIHandler(localized_strings, |
319 new chromeos::options::BluetoothOptionsHandler()); | 322 new chromeos::options::BluetoothOptionsHandler()); |
320 AddOptionsPageUIHandler(localized_strings, | 323 AddOptionsPageUIHandler(localized_strings, |
321 new chromeos::options::DateTimeOptionsHandler()); | 324 new chromeos::options::DateTimeOptionsHandler()); |
| 325 #if !defined(USE_ATHENA) |
322 AddOptionsPageUIHandler(localized_strings, | 326 AddOptionsPageUIHandler(localized_strings, |
323 new chromeos::options::DisplayOptionsHandler()); | 327 new chromeos::options::DisplayOptionsHandler()); |
324 AddOptionsPageUIHandler(localized_strings, | 328 AddOptionsPageUIHandler(localized_strings, |
325 new chromeos::options::DisplayOverscanHandler()); | 329 new chromeos::options::DisplayOverscanHandler()); |
326 AddOptionsPageUIHandler(localized_strings, | 330 AddOptionsPageUIHandler(localized_strings, |
| 331 new chromeos::options::PowerHandler()); |
| 332 #endif |
| 333 AddOptionsPageUIHandler(localized_strings, |
327 new chromeos::options::InternetOptionsHandler()); | 334 new chromeos::options::InternetOptionsHandler()); |
328 AddOptionsPageUIHandler(localized_strings, | 335 AddOptionsPageUIHandler(localized_strings, |
329 new chromeos::options::KeyboardHandler()); | 336 new chromeos::options::KeyboardHandler()); |
330 AddOptionsPageUIHandler(localized_strings, | |
331 new chromeos::options::PowerHandler()); | |
332 | 337 |
333 chromeos::options::PointerHandler* pointer_handler = | 338 chromeos::options::PointerHandler* pointer_handler = |
334 new chromeos::options::PointerHandler(); | 339 new chromeos::options::PointerHandler(); |
335 AddOptionsPageUIHandler(localized_strings, pointer_handler); | 340 AddOptionsPageUIHandler(localized_strings, pointer_handler); |
336 | 341 |
337 AddOptionsPageUIHandler(localized_strings, | 342 AddOptionsPageUIHandler(localized_strings, |
338 new chromeos::options::ProxyHandler()); | 343 new chromeos::options::ProxyHandler()); |
339 AddOptionsPageUIHandler( | 344 AddOptionsPageUIHandler( |
340 localized_strings, | 345 localized_strings, |
341 new chromeos::options::ChangePictureOptionsHandler()); | 346 new chromeos::options::ChangePictureOptionsHandler()); |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
477 // Add only if handler's service is enabled. | 482 // Add only if handler's service is enabled. |
478 if (handler->IsEnabled()) { | 483 if (handler->IsEnabled()) { |
479 // Add handler to the list and also pass the ownership. | 484 // Add handler to the list and also pass the ownership. |
480 web_ui()->AddMessageHandler(handler.release()); | 485 web_ui()->AddMessageHandler(handler.release()); |
481 handler_raw->GetLocalizedValues(localized_strings); | 486 handler_raw->GetLocalizedValues(localized_strings); |
482 handlers_.push_back(handler_raw); | 487 handlers_.push_back(handler_raw); |
483 } | 488 } |
484 } | 489 } |
485 | 490 |
486 } // namespace options | 491 } // namespace options |
OLD | NEW |