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

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

Issue 107103004: Implement the spring charger replacement UI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Point iFrame to production site. Created 7 years 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 #include "chrome/browser/ui/webui/sync_file_system_internals/sync_file_system_in ternals_ui.h" 92 #include "chrome/browser/ui/webui/sync_file_system_internals/sync_file_system_in ternals_ui.h"
93 #include "chrome/browser/ui/webui/uber/uber_ui.h" 93 #include "chrome/browser/ui/webui/uber/uber_ui.h"
94 #endif 94 #endif
95 95
96 #if defined(OS_ANDROID) || defined(OS_IOS) 96 #if defined(OS_ANDROID) || defined(OS_IOS)
97 #include "chrome/browser/ui/webui/net_export_ui.h" 97 #include "chrome/browser/ui/webui/net_export_ui.h"
98 #endif 98 #endif
99 99
100 #if defined(OS_CHROMEOS) 100 #if defined(OS_CHROMEOS)
101 #include "chrome/browser/ui/webui/chromeos/bluetooth_pairing_ui.h" 101 #include "chrome/browser/ui/webui/chromeos/bluetooth_pairing_ui.h"
102 #include "chrome/browser/ui/webui/chromeos/charger_replacement_ui.h"
102 #include "chrome/browser/ui/webui/chromeos/choose_mobile_network_ui.h" 103 #include "chrome/browser/ui/webui/chromeos/choose_mobile_network_ui.h"
103 #include "chrome/browser/ui/webui/chromeos/cryptohome_ui.h" 104 #include "chrome/browser/ui/webui/chromeos/cryptohome_ui.h"
104 #include "chrome/browser/ui/webui/chromeos/drive_internals_ui.h" 105 #include "chrome/browser/ui/webui/chromeos/drive_internals_ui.h"
105 #include "chrome/browser/ui/webui/chromeos/first_run/first_run_ui.h" 106 #include "chrome/browser/ui/webui/chromeos/first_run/first_run_ui.h"
106 #include "chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.h" 107 #include "chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.h"
107 #include "chrome/browser/ui/webui/chromeos/keyboard_overlay_ui.h" 108 #include "chrome/browser/ui/webui/chromeos/keyboard_overlay_ui.h"
108 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h" 109 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h"
109 #include "chrome/browser/ui/webui/chromeos/mobile_setup_ui.h" 110 #include "chrome/browser/ui/webui/chromeos/mobile_setup_ui.h"
110 #include "chrome/browser/ui/webui/chromeos/network_ui.h" 111 #include "chrome/browser/ui/webui/chromeos/network_ui.h"
111 #include "chrome/browser/ui/webui/chromeos/proxy_settings_ui.h" 112 #include "chrome/browser/ui/webui/chromeos/proxy_settings_ui.h"
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 if (url.host() == chrome::kChromeUIMetroFlowHost) 381 if (url.host() == chrome::kChromeUIMetroFlowHost)
381 return &NewWebUI<SetAsDefaultBrowserUI>; 382 return &NewWebUI<SetAsDefaultBrowserUI>;
382 #endif 383 #endif
383 #if (defined(USE_NSS) || defined(USE_OPENSSL)) && defined(USE_AURA) 384 #if (defined(USE_NSS) || defined(USE_OPENSSL)) && defined(USE_AURA)
384 if (url.host() == chrome::kChromeUICertificateViewerHost) 385 if (url.host() == chrome::kChromeUICertificateViewerHost)
385 return &NewWebUI<CertificateViewerUI>; 386 return &NewWebUI<CertificateViewerUI>;
386 #endif 387 #endif
387 #if defined(OS_CHROMEOS) 388 #if defined(OS_CHROMEOS)
388 if (url.host() == chrome::kChromeUIBluetoothPairingHost) 389 if (url.host() == chrome::kChromeUIBluetoothPairingHost)
389 return &NewWebUI<chromeos::BluetoothPairingUI>; 390 return &NewWebUI<chromeos::BluetoothPairingUI>;
391 if (url.host() == chrome::kChromeUIChargerReplacementHost)
392 return &NewWebUI<chromeos::ChargerReplacementUI>;
390 if (url.host() == chrome::kChromeUIChooseMobileNetworkHost) 393 if (url.host() == chrome::kChromeUIChooseMobileNetworkHost)
391 return &NewWebUI<chromeos::ChooseMobileNetworkUI>; 394 return &NewWebUI<chromeos::ChooseMobileNetworkUI>;
392 if (url.host() == chrome::kChromeUICryptohomeHost) 395 if (url.host() == chrome::kChromeUICryptohomeHost)
393 return &NewWebUI<chromeos::CryptohomeUI>; 396 return &NewWebUI<chromeos::CryptohomeUI>;
394 if (url.host() == chrome::kChromeUIDriveInternalsHost) 397 if (url.host() == chrome::kChromeUIDriveInternalsHost)
395 return &NewWebUI<chromeos::DriveInternalsUI>; 398 return &NewWebUI<chromeos::DriveInternalsUI>;
396 if (url.host() == chrome::kChromeUIFirstRunHost) 399 if (url.host() == chrome::kChromeUIFirstRunHost)
397 return &NewWebUI<chromeos::FirstRunUI>; 400 return &NewWebUI<chromeos::FirstRunUI>;
398 if (url.host() == chrome::kChromeUIImageBurnerHost) 401 if (url.host() == chrome::kChromeUIImageBurnerHost)
399 return &NewWebUI<ImageBurnUI>; 402 return &NewWebUI<ImageBurnUI>;
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
664 if (page_url.host() == chrome::kChromeUIPluginsHost) 667 if (page_url.host() == chrome::kChromeUIPluginsHost)
665 return PluginsUI::GetFaviconResourceBytes(scale_factor); 668 return PluginsUI::GetFaviconResourceBytes(scale_factor);
666 669
667 // Android doesn't use the components pages. 670 // Android doesn't use the components pages.
668 if (page_url.host() == chrome::kChromeUIComponentsHost) 671 if (page_url.host() == chrome::kChromeUIComponentsHost)
669 return ComponentsUI::GetFaviconResourceBytes(scale_factor); 672 return ComponentsUI::GetFaviconResourceBytes(scale_factor);
670 #endif 673 #endif
671 674
672 return NULL; 675 return NULL;
673 } 676 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/ash/system_tray_delegate_win.cc ('k') | chrome/browser/ui/webui/chromeos/charger_replacement_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698