Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(28)

Side by Side Diff: chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc

Issue 123713002: [chromeos] Add an about:power UI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 #include "chrome/browser/ui/webui/chromeos/charger_replacement_ui.h" 103 #include "chrome/browser/ui/webui/chromeos/charger_replacement_ui.h"
104 #include "chrome/browser/ui/webui/chromeos/choose_mobile_network_ui.h" 104 #include "chrome/browser/ui/webui/chromeos/choose_mobile_network_ui.h"
105 #include "chrome/browser/ui/webui/chromeos/cryptohome_ui.h" 105 #include "chrome/browser/ui/webui/chromeos/cryptohome_ui.h"
106 #include "chrome/browser/ui/webui/chromeos/drive_internals_ui.h" 106 #include "chrome/browser/ui/webui/chromeos/drive_internals_ui.h"
107 #include "chrome/browser/ui/webui/chromeos/first_run/first_run_ui.h" 107 #include "chrome/browser/ui/webui/chromeos/first_run/first_run_ui.h"
108 #include "chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.h" 108 #include "chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.h"
109 #include "chrome/browser/ui/webui/chromeos/keyboard_overlay_ui.h" 109 #include "chrome/browser/ui/webui/chromeos/keyboard_overlay_ui.h"
110 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h" 110 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h"
111 #include "chrome/browser/ui/webui/chromeos/mobile_setup_ui.h" 111 #include "chrome/browser/ui/webui/chromeos/mobile_setup_ui.h"
112 #include "chrome/browser/ui/webui/chromeos/network_ui.h" 112 #include "chrome/browser/ui/webui/chromeos/network_ui.h"
113 #include "chrome/browser/ui/webui/chromeos/power_ui.h"
113 #include "chrome/browser/ui/webui/chromeos/proxy_settings_ui.h" 114 #include "chrome/browser/ui/webui/chromeos/proxy_settings_ui.h"
114 #include "chrome/browser/ui/webui/chromeos/salsa_ui.h" 115 #include "chrome/browser/ui/webui/chromeos/salsa_ui.h"
115 #include "chrome/browser/ui/webui/chromeos/sim_unlock_ui.h" 116 #include "chrome/browser/ui/webui/chromeos/sim_unlock_ui.h"
116 #include "chrome/browser/ui/webui/chromeos/slow_trace_ui.h" 117 #include "chrome/browser/ui/webui/chromeos/slow_trace_ui.h"
117 #include "chrome/browser/ui/webui/chromeos/slow_ui.h" 118 #include "chrome/browser/ui/webui/chromeos/slow_ui.h"
118 #endif 119 #endif
119 120
120 #if defined(USE_AURA) 121 #if defined(USE_AURA)
121 #include "chrome/browser/ui/webui/gesture_config_ui.h" 122 #include "chrome/browser/ui/webui/gesture_config_ui.h"
122 #include "ui/keyboard/keyboard_constants.h" 123 #include "ui/keyboard/keyboard_constants.h"
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 if (url.host() == chrome::kChromeUISalsaHost) 406 if (url.host() == chrome::kChromeUISalsaHost)
406 return &NewWebUI<SalsaUI>; 407 return &NewWebUI<SalsaUI>;
407 if (url.host() == chrome::kChromeUISimUnlockHost) 408 if (url.host() == chrome::kChromeUISimUnlockHost)
408 return &NewWebUI<chromeos::SimUnlockUI>; 409 return &NewWebUI<chromeos::SimUnlockUI>;
409 if (url.host() == chrome::kChromeUISlowHost) 410 if (url.host() == chrome::kChromeUISlowHost)
410 return &NewWebUI<chromeos::SlowUI>; 411 return &NewWebUI<chromeos::SlowUI>;
411 if (url.host() == chrome::kChromeUISlowTraceHost) 412 if (url.host() == chrome::kChromeUISlowTraceHost)
412 return &NewWebUI<chromeos::SlowTraceController>; 413 return &NewWebUI<chromeos::SlowTraceController>;
413 if (url.host() == chrome::kChromeUINetworkHost) 414 if (url.host() == chrome::kChromeUINetworkHost)
414 return &NewWebUI<chromeos::NetworkUI>; 415 return &NewWebUI<chromeos::NetworkUI>;
416 if (url.host() == chrome::kChromeUIPowerHost)
417 return &NewWebUI<chromeos::PowerUI>;
415 #endif // defined(OS_CHROMEOS) 418 #endif // defined(OS_CHROMEOS)
416 #if !defined(OS_ANDROID) && !defined(OS_IOS) 419 #if !defined(OS_ANDROID) && !defined(OS_IOS)
417 if (url.host() == chrome::kChromeUIChromeSigninHost) 420 if (url.host() == chrome::kChromeUIChromeSigninHost)
418 return &NewWebUI<InlineLoginUI>; 421 return &NewWebUI<InlineLoginUI>;
419 #endif 422 #endif
420 423
421 /**************************************************************************** 424 /****************************************************************************
422 * Other #defines and special logics. 425 * Other #defines and special logics.
423 ***************************************************************************/ 426 ***************************************************************************/
424 #if defined(ENABLE_CONFIGURATION_POLICY) 427 #if defined(ENABLE_CONFIGURATION_POLICY)
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
659 if (page_url.host() == chrome::kChromeUIPluginsHost) 662 if (page_url.host() == chrome::kChromeUIPluginsHost)
660 return PluginsUI::GetFaviconResourceBytes(scale_factor); 663 return PluginsUI::GetFaviconResourceBytes(scale_factor);
661 664
662 // Android doesn't use the components pages. 665 // Android doesn't use the components pages.
663 if (page_url.host() == chrome::kChromeUIComponentsHost) 666 if (page_url.host() == chrome::kChromeUIComponentsHost)
664 return ComponentsUI::GetFaviconResourceBytes(scale_factor); 667 return ComponentsUI::GetFaviconResourceBytes(scale_factor);
665 #endif 668 #endif
666 669
667 return NULL; 670 return NULL;
668 } 671 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698