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/bind.h" | 7 #include "base/bind.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/location.h" | 9 #include "base/location.h" |
10 #include "base/message_loop/message_loop_proxy.h" | 10 #include "base/message_loop/message_loop_proxy.h" |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 #include "chrome/browser/ui/webui/chromeos/power_ui.h" | 120 #include "chrome/browser/ui/webui/chromeos/power_ui.h" |
121 #include "chrome/browser/ui/webui/chromeos/proxy_settings_ui.h" | 121 #include "chrome/browser/ui/webui/chromeos/proxy_settings_ui.h" |
122 #include "chrome/browser/ui/webui/chromeos/salsa_ui.h" | 122 #include "chrome/browser/ui/webui/chromeos/salsa_ui.h" |
123 #include "chrome/browser/ui/webui/chromeos/sim_unlock_ui.h" | 123 #include "chrome/browser/ui/webui/chromeos/sim_unlock_ui.h" |
124 #include "chrome/browser/ui/webui/chromeos/slow_trace_ui.h" | 124 #include "chrome/browser/ui/webui/chromeos/slow_trace_ui.h" |
125 #include "chrome/browser/ui/webui/chromeos/slow_ui.h" | 125 #include "chrome/browser/ui/webui/chromeos/slow_ui.h" |
126 #endif | 126 #endif |
127 | 127 |
128 #if defined(USE_AURA) | 128 #if defined(USE_AURA) |
129 #include "chrome/browser/ui/webui/gesture_config_ui.h" | 129 #include "chrome/browser/ui/webui/gesture_config_ui.h" |
130 #include "ui/keyboard/keyboard_constants.h" | |
131 #include "ui/keyboard/keyboard_ui_controller.h" | |
132 #endif | 130 #endif |
133 | 131 |
134 #if !defined(OS_CHROMEOS) && !defined(OS_ANDROID) | 132 #if !defined(OS_CHROMEOS) && !defined(OS_ANDROID) |
135 #include "chrome/browser/ui/sync/sync_promo_ui.h" | 133 #include "chrome/browser/ui/sync/sync_promo_ui.h" |
136 #endif | 134 #endif |
137 | 135 |
138 #if defined(OS_WIN) | 136 #if defined(OS_WIN) |
139 #include "chrome/browser/ui/webui/conflicts_ui.h" | 137 #include "chrome/browser/ui/webui/conflicts_ui.h" |
140 #include "chrome/browser/ui/webui/set_as_default_browser_ui.h" | 138 #include "chrome/browser/ui/webui/set_as_default_browser_ui.h" |
141 #endif | 139 #endif |
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
452 | 450 |
453 #if (defined(OS_LINUX) && defined(TOOLKIT_VIEWS)) || defined(USE_AURA) | 451 #if (defined(OS_LINUX) && defined(TOOLKIT_VIEWS)) || defined(USE_AURA) |
454 if (url.host() == chrome::kChromeUITabModalConfirmDialogHost) { | 452 if (url.host() == chrome::kChromeUITabModalConfirmDialogHost) { |
455 return &NewWebUI<ConstrainedWebDialogUI>; | 453 return &NewWebUI<ConstrainedWebDialogUI>; |
456 } | 454 } |
457 #endif | 455 #endif |
458 | 456 |
459 #if defined(USE_AURA) | 457 #if defined(USE_AURA) |
460 if (url.host() == chrome::kChromeUIGestureConfigHost) | 458 if (url.host() == chrome::kChromeUIGestureConfigHost) |
461 return &NewWebUI<GestureConfigUI>; | 459 return &NewWebUI<GestureConfigUI>; |
462 if (url.host() == keyboard::kKeyboardWebUIHost) | |
463 return &NewWebUI<keyboard::KeyboardUIController>; | |
464 #endif | 460 #endif |
465 | 461 |
466 #if !defined(OS_CHROMEOS) && !defined(OS_ANDROID) && !defined(OS_IOS) | 462 #if !defined(OS_CHROMEOS) && !defined(OS_ANDROID) && !defined(OS_IOS) |
467 if (url.host() == chrome::kChromeUIUserManagerHost && | 463 if (url.host() == chrome::kChromeUIUserManagerHost && |
468 switches::IsNewProfileManagement()) { | 464 switches::IsNewProfileManagement()) { |
469 return &NewWebUI<UserManagerUI>; | 465 return &NewWebUI<UserManagerUI>; |
470 } | 466 } |
471 #endif | 467 #endif |
472 | 468 |
473 if (url.host() == chrome::kChromeUIChromeURLsHost || | 469 if (url.host() == chrome::kChromeUIChromeURLsHost || |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
673 #endif | 669 #endif |
674 | 670 |
675 // Android doesn't use the plugins pages. | 671 // Android doesn't use the plugins pages. |
676 if (page_url.host() == chrome::kChromeUIPluginsHost) | 672 if (page_url.host() == chrome::kChromeUIPluginsHost) |
677 return PluginsUI::GetFaviconResourceBytes(scale_factor); | 673 return PluginsUI::GetFaviconResourceBytes(scale_factor); |
678 | 674 |
679 #endif | 675 #endif |
680 | 676 |
681 return NULL; | 677 return NULL; |
682 } | 678 } |
OLD | NEW |