| 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/options2/options_ui2.h" | 5 #include "chrome/browser/ui/webui/options2/options_ui2.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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 #include "chrome/browser/ui/webui/options2/chromeos/cros_language_options_handle
r2.h" | 63 #include "chrome/browser/ui/webui/options2/chromeos/cros_language_options_handle
r2.h" |
| 64 #include "chrome/browser/ui/webui/options2/chromeos/internet_options_handler2.h" | 64 #include "chrome/browser/ui/webui/options2/chromeos/internet_options_handler2.h" |
| 65 #include "chrome/browser/ui/webui/options2/chromeos/language_chewing_handler2.h" | 65 #include "chrome/browser/ui/webui/options2/chromeos/language_chewing_handler2.h" |
| 66 #include "chrome/browser/ui/webui/options2/chromeos/keyboard_handler2.h" | 66 #include "chrome/browser/ui/webui/options2/chromeos/keyboard_handler2.h" |
| 67 #include "chrome/browser/ui/webui/options2/chromeos/language_hangul_handler2.h" | 67 #include "chrome/browser/ui/webui/options2/chromeos/language_hangul_handler2.h" |
| 68 #include "chrome/browser/ui/webui/options2/chromeos/language_mozc_handler2.h" | 68 #include "chrome/browser/ui/webui/options2/chromeos/language_mozc_handler2.h" |
| 69 #include "chrome/browser/ui/webui/options2/chromeos/language_pinyin_handler2.h" | 69 #include "chrome/browser/ui/webui/options2/chromeos/language_pinyin_handler2.h" |
| 70 #include "chrome/browser/ui/webui/options2/chromeos/pointer_handler2.h" | 70 #include "chrome/browser/ui/webui/options2/chromeos/pointer_handler2.h" |
| 71 #include "chrome/browser/ui/webui/options2/chromeos/proxy_handler2.h" | 71 #include "chrome/browser/ui/webui/options2/chromeos/proxy_handler2.h" |
| 72 #include "chrome/browser/ui/webui/options2/chromeos/stats_options_handler2.h" | 72 #include "chrome/browser/ui/webui/options2/chromeos/stats_options_handler2.h" |
| 73 #include "chrome/browser/ui/webui/options2/chromeos/system_options_handler2.h" | |
| 74 #include "chrome/browser/ui/webui/options2/chromeos/user_image_source2.h" | 73 #include "chrome/browser/ui/webui/options2/chromeos/user_image_source2.h" |
| 75 #include "chrome/browser/ui/webui/options2/chromeos/virtual_keyboard_manager_han
dler2.h" | 74 #include "chrome/browser/ui/webui/options2/chromeos/virtual_keyboard_manager_han
dler2.h" |
| 76 #endif | 75 #endif |
| 77 | 76 |
| 78 #if defined(USE_NSS) | 77 #if defined(USE_NSS) |
| 79 #include "chrome/browser/ui/webui/options2/certificate_manager_handler2.h" | 78 #include "chrome/browser/ui/webui/options2/certificate_manager_handler2.h" |
| 80 #endif | 79 #endif |
| 81 | 80 |
| 82 using content::WebContents; | 81 using content::WebContents; |
| 83 using content::WebUIMessageHandler; | 82 using content::WebUIMessageHandler; |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 AddOptionsPageUIHandler( | 252 AddOptionsPageUIHandler( |
| 254 localized_strings, | 253 localized_strings, |
| 255 new chromeos::options2::VirtualKeyboardManagerHandler()); | 254 new chromeos::options2::VirtualKeyboardManagerHandler()); |
| 256 AddOptionsPageUIHandler(localized_strings, | 255 AddOptionsPageUIHandler(localized_strings, |
| 257 new chromeos::options2::ProxyHandler()); | 256 new chromeos::options2::ProxyHandler()); |
| 258 AddOptionsPageUIHandler( | 257 AddOptionsPageUIHandler( |
| 259 localized_strings, | 258 localized_strings, |
| 260 new chromeos::options2::ChangePictureOptionsHandler()); | 259 new chromeos::options2::ChangePictureOptionsHandler()); |
| 261 AddOptionsPageUIHandler(localized_strings, | 260 AddOptionsPageUIHandler(localized_strings, |
| 262 new chromeos::options2::StatsOptionsHandler()); | 261 new chromeos::options2::StatsOptionsHandler()); |
| 263 AddOptionsPageUIHandler(localized_strings, new SystemOptionsHandler()); | |
| 264 #endif | 262 #endif |
| 265 #if defined(USE_NSS) | 263 #if defined(USE_NSS) |
| 266 AddOptionsPageUIHandler(localized_strings, new CertificateManagerHandler()); | 264 AddOptionsPageUIHandler(localized_strings, new CertificateManagerHandler()); |
| 267 #endif | 265 #endif |
| 268 AddOptionsPageUIHandler(localized_strings, new HandlerOptionsHandler()); | 266 AddOptionsPageUIHandler(localized_strings, new HandlerOptionsHandler()); |
| 269 | 267 |
| 270 // |localized_strings| ownership is taken over by this constructor. | 268 // |localized_strings| ownership is taken over by this constructor. |
| 271 OptionsUIHTMLSource* html_source = | 269 OptionsUIHTMLSource* html_source = |
| 272 new OptionsUIHTMLSource(localized_strings); | 270 new OptionsUIHTMLSource(localized_strings); |
| 273 | 271 |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 361 WideToASCII(CommandLine::ForCurrentProcess()->GetCommandLineString()); | 359 WideToASCII(CommandLine::ForCurrentProcess()->GetCommandLineString()); |
| 362 #else | 360 #else |
| 363 command_line_string = | 361 command_line_string = |
| 364 CommandLine::ForCurrentProcess()->GetCommandLineString(); | 362 CommandLine::ForCurrentProcess()->GetCommandLineString(); |
| 365 #endif | 363 #endif |
| 366 | 364 |
| 367 render_view_host->SetWebUIProperty("commandLineString", command_line_string); | 365 render_view_host->SetWebUIProperty("commandLineString", command_line_string); |
| 368 } | 366 } |
| 369 | 367 |
| 370 } // namespace options2 | 368 } // namespace options2 |
| OLD | NEW |