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

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

Issue 1205753002: Create chrome://device-emulator and add the ability to get a battery percentage and send an updated… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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
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 <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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 #include "chrome/browser/signin/easy_unlock_service.h" 107 #include "chrome/browser/signin/easy_unlock_service.h"
108 #include "chrome/browser/signin/easy_unlock_service_factory.h" 108 #include "chrome/browser/signin/easy_unlock_service_factory.h"
109 #include "chrome/browser/ui/webui/copresence_ui.h" 109 #include "chrome/browser/ui/webui/copresence_ui.h"
110 #include "chrome/browser/ui/webui/devtools_ui.h" 110 #include "chrome/browser/ui/webui/devtools_ui.h"
111 #include "chrome/browser/ui/webui/inspect_ui.h" 111 #include "chrome/browser/ui/webui/inspect_ui.h"
112 #include "components/proximity_auth/webui/proximity_auth_ui.h" 112 #include "components/proximity_auth/webui/proximity_auth_ui.h"
113 #include "components/proximity_auth/webui/url_constants.h" 113 #include "components/proximity_auth/webui/url_constants.h"
114 #endif 114 #endif
115 115
116 #if defined(OS_CHROMEOS) 116 #if defined(OS_CHROMEOS)
117 #include "base/sys_info.h"
117 #include "chrome/browser/ui/webui/chromeos/bluetooth_pairing_ui.h" 118 #include "chrome/browser/ui/webui/chromeos/bluetooth_pairing_ui.h"
118 #include "chrome/browser/ui/webui/chromeos/certificate_manager_dialog_ui.h" 119 #include "chrome/browser/ui/webui/chromeos/certificate_manager_dialog_ui.h"
119 #include "chrome/browser/ui/webui/chromeos/choose_mobile_network_ui.h" 120 #include "chrome/browser/ui/webui/chromeos/choose_mobile_network_ui.h"
120 #include "chrome/browser/ui/webui/chromeos/cryptohome_ui.h" 121 #include "chrome/browser/ui/webui/chromeos/cryptohome_ui.h"
121 #include "chrome/browser/ui/webui/chromeos/drive_internals_ui.h" 122 #include "chrome/browser/ui/webui/chromeos/drive_internals_ui.h"
123 #include "chrome/browser/ui/webui/chromeos/emulator/device_emulator_ui.h"
122 #include "chrome/browser/ui/webui/chromeos/first_run/first_run_ui.h" 124 #include "chrome/browser/ui/webui/chromeos/first_run/first_run_ui.h"
123 #include "chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.h" 125 #include "chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.h"
124 #include "chrome/browser/ui/webui/chromeos/keyboard_overlay_ui.h" 126 #include "chrome/browser/ui/webui/chromeos/keyboard_overlay_ui.h"
125 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h" 127 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h"
126 #include "chrome/browser/ui/webui/chromeos/mobile_setup_ui.h" 128 #include "chrome/browser/ui/webui/chromeos/mobile_setup_ui.h"
127 #include "chrome/browser/ui/webui/chromeos/network_ui.h" 129 #include "chrome/browser/ui/webui/chromeos/network_ui.h"
128 #include "chrome/browser/ui/webui/chromeos/nfc_debug_ui.h" 130 #include "chrome/browser/ui/webui/chromeos/nfc_debug_ui.h"
129 #include "chrome/browser/ui/webui/chromeos/power_ui.h" 131 #include "chrome/browser/ui/webui/chromeos/power_ui.h"
130 #include "chrome/browser/ui/webui/chromeos/provided_file_systems_ui.h" 132 #include "chrome/browser/ui/webui/chromeos/provided_file_systems_ui.h"
131 #include "chrome/browser/ui/webui/chromeos/proxy_settings_ui.h" 133 #include "chrome/browser/ui/webui/chromeos/proxy_settings_ui.h"
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
430 #endif 432 #endif
431 #if defined(OS_CHROMEOS) 433 #if defined(OS_CHROMEOS)
432 if (url.host() == chrome::kChromeUIBluetoothPairingHost) 434 if (url.host() == chrome::kChromeUIBluetoothPairingHost)
433 return &NewWebUI<chromeos::BluetoothPairingUI>; 435 return &NewWebUI<chromeos::BluetoothPairingUI>;
434 if (url.host() == chrome::kChromeUICertificateManagerHost) 436 if (url.host() == chrome::kChromeUICertificateManagerHost)
435 return &NewWebUI<chromeos::CertificateManagerDialogUI>; 437 return &NewWebUI<chromeos::CertificateManagerDialogUI>;
436 if (url.host() == chrome::kChromeUIChooseMobileNetworkHost) 438 if (url.host() == chrome::kChromeUIChooseMobileNetworkHost)
437 return &NewWebUI<chromeos::ChooseMobileNetworkUI>; 439 return &NewWebUI<chromeos::ChooseMobileNetworkUI>;
438 if (url.host() == chrome::kChromeUICryptohomeHost) 440 if (url.host() == chrome::kChromeUICryptohomeHost)
439 return &NewWebUI<chromeos::CryptohomeUI>; 441 return &NewWebUI<chromeos::CryptohomeUI>;
442 if (!base::SysInfo::IsRunningOnChromeOS()) {
443 if (url.host() == chrome::kChromeUIDeviceEmulatorHost)
444 return &NewWebUI<DeviceEmulatorUI>;
445 }
440 if (url.host() == chrome::kChromeUIDriveInternalsHost) 446 if (url.host() == chrome::kChromeUIDriveInternalsHost)
441 return &NewWebUI<chromeos::DriveInternalsUI>; 447 return &NewWebUI<chromeos::DriveInternalsUI>;
442 if (url.host() == chrome::kChromeUIImageBurnerHost) 448 if (url.host() == chrome::kChromeUIImageBurnerHost)
443 return &NewWebUI<ImageBurnUI>; 449 return &NewWebUI<ImageBurnUI>;
444 if (url.host() == chrome::kChromeUIFirstRunHost) 450 if (url.host() == chrome::kChromeUIFirstRunHost)
445 return &NewWebUI<chromeos::FirstRunUI>; 451 return &NewWebUI<chromeos::FirstRunUI>;
446 if (url.host() == chrome::kChromeUIKeyboardOverlayHost) 452 if (url.host() == chrome::kChromeUIKeyboardOverlayHost)
447 return &NewWebUI<KeyboardOverlayUI>; 453 return &NewWebUI<KeyboardOverlayUI>;
448 if (url.host() == chrome::kChromeUIMobileSetupHost) 454 if (url.host() == chrome::kChromeUIMobileSetupHost)
449 return &NewWebUI<MobileSetupUI>; 455 return &NewWebUI<MobileSetupUI>;
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after
757 #endif 763 #endif
758 764
759 // Android doesn't use the plugins pages. 765 // Android doesn't use the plugins pages.
760 if (page_url.host() == chrome::kChromeUIPluginsHost) 766 if (page_url.host() == chrome::kChromeUIPluginsHost)
761 return PluginsUI::GetFaviconResourceBytes(scale_factor); 767 return PluginsUI::GetFaviconResourceBytes(scale_factor);
762 768
763 #endif 769 #endif
764 770
765 return NULL; 771 return NULL;
766 } 772 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698