| 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 "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "chrome/browser/about_flags.h" | 8 #include "chrome/browser/about_flags.h" |
| 9 #include "chrome/browser/browser_process.h" | 9 #include "chrome/browser/browser_process.h" |
| 10 #include "chrome/browser/extensions/extension_service.h" | 10 #include "chrome/browser/extensions/extension_service.h" |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 #include "chrome/browser/ui/webui/chromeos/proxy_settings_ui.h" | 68 #include "chrome/browser/ui/webui/chromeos/proxy_settings_ui.h" |
| 69 #include "chrome/browser/ui/webui/chromeos/register_page_ui.h" | 69 #include "chrome/browser/ui/webui/chromeos/register_page_ui.h" |
| 70 #include "chrome/browser/ui/webui/chromeos/sim_unlock_ui.h" | 70 #include "chrome/browser/ui/webui/chromeos/sim_unlock_ui.h" |
| 71 #include "chrome/browser/ui/webui/chromeos/system_info_ui.h" | 71 #include "chrome/browser/ui/webui/chromeos/system_info_ui.h" |
| 72 #endif | 72 #endif |
| 73 | 73 |
| 74 #if !defined(OS_CHROMEOS) && !defined(OS_ANDROID) | 74 #if !defined(OS_CHROMEOS) && !defined(OS_ANDROID) |
| 75 #include "chrome/browser/ui/webui/sync_promo/sync_promo_ui.h" | 75 #include "chrome/browser/ui/webui/sync_promo/sync_promo_ui.h" |
| 76 #endif | 76 #endif |
| 77 | 77 |
| 78 #if defined(USE_VIRTUAL_KEYBOARD) | |
| 79 #include "chrome/browser/ui/webui/keyboard_ui.h" | |
| 80 #endif | |
| 81 | |
| 82 #if defined(OS_WIN) | 78 #if defined(OS_WIN) |
| 83 #include "chrome/browser/ui/webui/conflicts_ui.h" | 79 #include "chrome/browser/ui/webui/conflicts_ui.h" |
| 84 #endif | 80 #endif |
| 85 | 81 |
| 86 #if (defined(USE_NSS) || defined(USE_OPENSSL)) && defined(USE_AURA) | 82 #if (defined(USE_NSS) || defined(USE_OPENSSL)) && defined(USE_AURA) |
| 87 #include "chrome/browser/ui/webui/certificate_viewer_ui.h" | 83 #include "chrome/browser/ui/webui/certificate_viewer_ui.h" |
| 88 #endif | 84 #endif |
| 89 | 85 |
| 90 using content::WebUI; | 86 using content::WebUI; |
| 91 using content::WebUIController; | 87 using content::WebUIController; |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 284 * Other #defines and special logics. | 280 * Other #defines and special logics. |
| 285 ***************************************************************************/ | 281 ***************************************************************************/ |
| 286 #if defined(ENABLE_CONFIGURATION_POLICY) | 282 #if defined(ENABLE_CONFIGURATION_POLICY) |
| 287 if (url.host() == chrome::kChromeUIPolicyHost) | 283 if (url.host() == chrome::kChromeUIPolicyHost) |
| 288 return &NewWebUI<PolicyUI>; | 284 return &NewWebUI<PolicyUI>; |
| 289 #endif | 285 #endif |
| 290 #if defined(ENABLE_TASK_MANAGER) | 286 #if defined(ENABLE_TASK_MANAGER) |
| 291 if (url.host() == chrome::kChromeUITaskManagerHost) | 287 if (url.host() == chrome::kChromeUITaskManagerHost) |
| 292 return &NewWebUI<TaskManagerUI>; | 288 return &NewWebUI<TaskManagerUI>; |
| 293 #endif // defined(ENABLE_TASK_MANAGER) | 289 #endif // defined(ENABLE_TASK_MANAGER) |
| 294 #if defined(USE_VIRTUAL_KEYBOARD) | |
| 295 if (url.host() == chrome::kChromeUIKeyboardHost) | |
| 296 return &NewWebUI<KeyboardUI>; | |
| 297 #endif | |
| 298 | 290 |
| 299 #if (defined(OS_LINUX) && defined(TOOLKIT_VIEWS)) || defined(USE_AURA) | 291 #if (defined(OS_LINUX) && defined(TOOLKIT_VIEWS)) || defined(USE_AURA) |
| 300 if (url.host() == chrome::kChromeUICollectedCookiesHost || | 292 if (url.host() == chrome::kChromeUICollectedCookiesHost || |
| 301 url.host() == chrome::kChromeUIHttpAuthHost || | 293 url.host() == chrome::kChromeUIHttpAuthHost || |
| 302 url.host() == chrome::kChromeUITabModalConfirmDialogHost) { | 294 url.host() == chrome::kChromeUITabModalConfirmDialogHost) { |
| 303 return &NewWebUI<ConstrainedWebDialogUI>; | 295 return &NewWebUI<ConstrainedWebDialogUI>; |
| 304 } | 296 } |
| 305 #endif | 297 #endif |
| 306 | 298 |
| 307 #if !defined(OS_CHROMEOS) && !defined(OS_ANDROID) | 299 #if !defined(OS_CHROMEOS) && !defined(OS_ANDROID) |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 511 if (page_url.host() == chrome::kChromeUISettingsFrameHost) | 503 if (page_url.host() == chrome::kChromeUISettingsFrameHost) |
| 512 return options2::OptionsUI::GetFaviconResourceBytes(); | 504 return options2::OptionsUI::GetFaviconResourceBytes(); |
| 513 | 505 |
| 514 // Android doesn't use the plugins pages. | 506 // Android doesn't use the plugins pages. |
| 515 if (page_url.host() == chrome::kChromeUIPluginsHost) | 507 if (page_url.host() == chrome::kChromeUIPluginsHost) |
| 516 return PluginsUI::GetFaviconResourceBytes(); | 508 return PluginsUI::GetFaviconResourceBytes(); |
| 517 #endif | 509 #endif |
| 518 | 510 |
| 519 return NULL; | 511 return NULL; |
| 520 } | 512 } |
| OLD | NEW |