| 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/chrome_web_ui_controller_factory.h" | 5 #include "chrome/browser/ui/webui/chrome_web_ui_controller_factory.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 | 104 |
| 105 #if defined(OS_CHROMEOS) | 105 #if defined(OS_CHROMEOS) |
| 106 #include "chrome/browser/ui/webui/chromeos/bluetooth_pairing_ui.h" | 106 #include "chrome/browser/ui/webui/chromeos/bluetooth_pairing_ui.h" |
| 107 #include "chrome/browser/ui/webui/chromeos/certificate_manager_dialog_ui.h" | 107 #include "chrome/browser/ui/webui/chromeos/certificate_manager_dialog_ui.h" |
| 108 #include "chrome/browser/ui/webui/chromeos/charger_replacement_ui.h" | 108 #include "chrome/browser/ui/webui/chromeos/charger_replacement_ui.h" |
| 109 #include "chrome/browser/ui/webui/chromeos/choose_mobile_network_ui.h" | 109 #include "chrome/browser/ui/webui/chromeos/choose_mobile_network_ui.h" |
| 110 #include "chrome/browser/ui/webui/chromeos/cryptohome_ui.h" | 110 #include "chrome/browser/ui/webui/chromeos/cryptohome_ui.h" |
| 111 #include "chrome/browser/ui/webui/chromeos/drive_internals_ui.h" | 111 #include "chrome/browser/ui/webui/chromeos/drive_internals_ui.h" |
| 112 #include "chrome/browser/ui/webui/chromeos/first_run/first_run_ui.h" | 112 #include "chrome/browser/ui/webui/chromeos/first_run/first_run_ui.h" |
| 113 #include "chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.h" | 113 #include "chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.h" |
| 114 #include "chrome/browser/ui/webui/chromeos/keyboard_overlay_ui.h" | |
| 115 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h" | 114 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h" |
| 116 #include "chrome/browser/ui/webui/chromeos/mobile_setup_ui.h" | 115 #include "chrome/browser/ui/webui/chromeos/mobile_setup_ui.h" |
| 117 #include "chrome/browser/ui/webui/chromeos/network_ui.h" | 116 #include "chrome/browser/ui/webui/chromeos/network_ui.h" |
| 118 #include "chrome/browser/ui/webui/chromeos/nfc_debug_ui.h" | 117 #include "chrome/browser/ui/webui/chromeos/nfc_debug_ui.h" |
| 119 #include "chrome/browser/ui/webui/chromeos/power_ui.h" | 118 #include "chrome/browser/ui/webui/chromeos/power_ui.h" |
| 120 #include "chrome/browser/ui/webui/chromeos/provided_file_systems_ui.h" | 119 #include "chrome/browser/ui/webui/chromeos/provided_file_systems_ui.h" |
| 121 #include "chrome/browser/ui/webui/chromeos/proxy_settings_ui.h" | 120 #include "chrome/browser/ui/webui/chromeos/proxy_settings_ui.h" |
| 122 #include "chrome/browser/ui/webui/chromeos/salsa_ui.h" | 121 #include "chrome/browser/ui/webui/chromeos/salsa_ui.h" |
| 123 #include "chrome/browser/ui/webui/chromeos/set_time_ui.h" | 122 #include "chrome/browser/ui/webui/chromeos/set_time_ui.h" |
| 124 #include "chrome/browser/ui/webui/chromeos/sim_unlock_ui.h" | 123 #include "chrome/browser/ui/webui/chromeos/sim_unlock_ui.h" |
| 125 #include "chrome/browser/ui/webui/chromeos/slow_trace_ui.h" | 124 #include "chrome/browser/ui/webui/chromeos/slow_trace_ui.h" |
| 126 #include "chrome/browser/ui/webui/chromeos/slow_ui.h" | 125 #include "chrome/browser/ui/webui/chromeos/slow_ui.h" |
| 127 #endif | 126 #endif |
| 128 | 127 |
| 128 #if defined(OS_CHROMEOS) && !defined(USE_ATHENA) |
| 129 #include "chrome/browser/ui/webui/chromeos/keyboard_overlay_ui.h" |
| 130 #endif |
| 131 |
| 129 #if defined(USE_AURA) | 132 #if defined(USE_AURA) |
| 130 #include "chrome/browser/ui/webui/gesture_config_ui.h" | 133 #include "chrome/browser/ui/webui/gesture_config_ui.h" |
| 131 #endif | 134 #endif |
| 132 | 135 |
| 133 #if !defined(OS_CHROMEOS) && !defined(OS_ANDROID) | 136 #if !defined(OS_CHROMEOS) && !defined(OS_ANDROID) |
| 134 #include "chrome/browser/ui/sync/sync_promo_ui.h" | 137 #include "chrome/browser/ui/sync/sync_promo_ui.h" |
| 135 #endif | 138 #endif |
| 136 | 139 |
| 137 #if defined(OS_WIN) | 140 #if defined(OS_WIN) |
| 138 #include "chrome/browser/ui/webui/conflicts_ui.h" | 141 #include "chrome/browser/ui/webui/conflicts_ui.h" |
| (...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 419 if (url.host() == chrome::kChromeUIChooseMobileNetworkHost) | 422 if (url.host() == chrome::kChromeUIChooseMobileNetworkHost) |
| 420 return &NewWebUI<chromeos::ChooseMobileNetworkUI>; | 423 return &NewWebUI<chromeos::ChooseMobileNetworkUI>; |
| 421 if (url.host() == chrome::kChromeUICryptohomeHost) | 424 if (url.host() == chrome::kChromeUICryptohomeHost) |
| 422 return &NewWebUI<chromeos::CryptohomeUI>; | 425 return &NewWebUI<chromeos::CryptohomeUI>; |
| 423 if (url.host() == chrome::kChromeUIDriveInternalsHost) | 426 if (url.host() == chrome::kChromeUIDriveInternalsHost) |
| 424 return &NewWebUI<chromeos::DriveInternalsUI>; | 427 return &NewWebUI<chromeos::DriveInternalsUI>; |
| 425 if (url.host() == chrome::kChromeUIFirstRunHost) | 428 if (url.host() == chrome::kChromeUIFirstRunHost) |
| 426 return &NewWebUI<chromeos::FirstRunUI>; | 429 return &NewWebUI<chromeos::FirstRunUI>; |
| 427 if (url.host() == chrome::kChromeUIImageBurnerHost) | 430 if (url.host() == chrome::kChromeUIImageBurnerHost) |
| 428 return &NewWebUI<ImageBurnUI>; | 431 return &NewWebUI<ImageBurnUI>; |
| 432 #if !defined(USE_ATHENA) |
| 429 if (url.host() == chrome::kChromeUIKeyboardOverlayHost) | 433 if (url.host() == chrome::kChromeUIKeyboardOverlayHost) |
| 430 return &NewWebUI<KeyboardOverlayUI>; | 434 return &NewWebUI<KeyboardOverlayUI>; |
| 435 #endif |
| 431 if (url.host() == chrome::kChromeUIMobileSetupHost) | 436 if (url.host() == chrome::kChromeUIMobileSetupHost) |
| 432 return &NewWebUI<MobileSetupUI>; | 437 return &NewWebUI<MobileSetupUI>; |
| 433 if (url.host() == chrome::kChromeUINfcDebugHost) | 438 if (url.host() == chrome::kChromeUINfcDebugHost) |
| 434 return &NewWebUI<chromeos::NfcDebugUI>; | 439 return &NewWebUI<chromeos::NfcDebugUI>; |
| 435 if (url.host() == chrome::kChromeUIOobeHost) | 440 if (url.host() == chrome::kChromeUIOobeHost) |
| 436 return &NewWebUI<chromeos::OobeUI>; | 441 return &NewWebUI<chromeos::OobeUI>; |
| 437 if (url.host() == chrome::kChromeUIProvidedFileSystemsHost) | 442 if (url.host() == chrome::kChromeUIProvidedFileSystemsHost) |
| 438 return &NewWebUI<chromeos::ProvidedFileSystemsUI>; | 443 return &NewWebUI<chromeos::ProvidedFileSystemsUI>; |
| 439 if (url.host() == chrome::kChromeUIProxySettingsHost) | 444 if (url.host() == chrome::kChromeUIProxySettingsHost) |
| 440 return &NewWebUI<chromeos::ProxySettingsUI>; | 445 return &NewWebUI<chromeos::ProxySettingsUI>; |
| (...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 721 #endif | 726 #endif |
| 722 | 727 |
| 723 // Android doesn't use the plugins pages. | 728 // Android doesn't use the plugins pages. |
| 724 if (page_url.host() == chrome::kChromeUIPluginsHost) | 729 if (page_url.host() == chrome::kChromeUIPluginsHost) |
| 725 return PluginsUI::GetFaviconResourceBytes(scale_factor); | 730 return PluginsUI::GetFaviconResourceBytes(scale_factor); |
| 726 | 731 |
| 727 #endif | 732 #endif |
| 728 | 733 |
| 729 return NULL; | 734 return NULL; |
| 730 } | 735 } |
| OLD | NEW |