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

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

Issue 7076014: [cros] Initial implementation for OOBE WebUI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 9 years, 7 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_factory.h" 5 #include "chrome/browser/ui/webui/chrome_web_ui_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/extensions/extension_service.h" 9 #include "chrome/browser/extensions/extension_service.h"
10 #include "chrome/browser/extensions/extension_web_ui.h" 10 #include "chrome/browser/extensions/extension_web_ui.h"
(...skipping 23 matching lines...) Expand all
34 #include "chrome/common/url_constants.h" 34 #include "chrome/common/url_constants.h"
35 #include "content/browser/tab_contents/tab_contents.h" 35 #include "content/browser/tab_contents/tab_contents.h"
36 #include "content/browser/webui/web_ui.h" 36 #include "content/browser/webui/web_ui.h"
37 #include "googleurl/src/gurl.h" 37 #include "googleurl/src/gurl.h"
38 38
39 #if defined(OS_CHROMEOS) 39 #if defined(OS_CHROMEOS)
40 #include "chrome/browser/ui/webui/chromeos/choose_mobile_network_ui.h" 40 #include "chrome/browser/ui/webui/chromeos/choose_mobile_network_ui.h"
41 #include "chrome/browser/ui/webui/chromeos/enterprise_enrollment_ui.h" 41 #include "chrome/browser/ui/webui/chromeos/enterprise_enrollment_ui.h"
42 #include "chrome/browser/ui/webui/chromeos/imageburner_ui.h" 42 #include "chrome/browser/ui/webui/chromeos/imageburner_ui.h"
43 #include "chrome/browser/ui/webui/chromeos/keyboard_overlay_ui.h" 43 #include "chrome/browser/ui/webui/chromeos/keyboard_overlay_ui.h"
44 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h"
44 #include "chrome/browser/ui/webui/chromeos/mobile_setup_ui.h" 45 #include "chrome/browser/ui/webui/chromeos/mobile_setup_ui.h"
45 #include "chrome/browser/ui/webui/chromeos/proxy_settings_ui.h" 46 #include "chrome/browser/ui/webui/chromeos/proxy_settings_ui.h"
46 #include "chrome/browser/ui/webui/chromeos/register_page_ui.h" 47 #include "chrome/browser/ui/webui/chromeos/register_page_ui.h"
47 #include "chrome/browser/ui/webui/chromeos/sim_unlock_ui.h" 48 #include "chrome/browser/ui/webui/chromeos/sim_unlock_ui.h"
48 #include "chrome/browser/ui/webui/chromeos/system_info_ui.h" 49 #include "chrome/browser/ui/webui/chromeos/system_info_ui.h"
49 #include "chrome/browser/ui/webui/active_downloads_ui.h" 50 #include "chrome/browser/ui/webui/active_downloads_ui.h"
50 #endif 51 #endif
51 52
52 #if defined(TOUCH_UI) 53 #if defined(TOUCH_UI)
53 #include "chrome/browser/ui/webui/keyboard_ui.h" 54 #include "chrome/browser/ui/webui/keyboard_ui.h"
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 return &NewWebUI<ConstrainedHtmlUI>; 177 return &NewWebUI<ConstrainedHtmlUI>;
177 } 178 }
178 if (url.host() == chrome::kChromeUIActiveDownloadsHost) 179 if (url.host() == chrome::kChromeUIActiveDownloadsHost)
179 return &NewWebUI<ActiveDownloadsUI>; 180 return &NewWebUI<ActiveDownloadsUI>;
180 if (url.host() == chrome::kChromeUIImageBurnerHost) 181 if (url.host() == chrome::kChromeUIImageBurnerHost)
181 return &NewWebUI<ImageBurnUI>; 182 return &NewWebUI<ImageBurnUI>;
182 if (url.host() == chrome::kChromeUIKeyboardOverlayHost) 183 if (url.host() == chrome::kChromeUIKeyboardOverlayHost)
183 return &NewWebUI<KeyboardOverlayUI>; 184 return &NewWebUI<KeyboardOverlayUI>;
184 if (url.host() == chrome::kChromeUIMobileSetupHost) 185 if (url.host() == chrome::kChromeUIMobileSetupHost)
185 return &NewWebUI<MobileSetupUI>; 186 return &NewWebUI<MobileSetupUI>;
187 if (url.host() == chrome::kChromeUIOobeHost)
188 return &NewWebUI<chromeos::OobeUI>;
186 if (url.host() == chrome::kChromeUIProxySettingsHost) 189 if (url.host() == chrome::kChromeUIProxySettingsHost)
187 return &NewWebUI<chromeos::ProxySettingsUI>; 190 return &NewWebUI<chromeos::ProxySettingsUI>;
188 if (url.host() == chrome::kChromeUIRegisterPageHost) 191 if (url.host() == chrome::kChromeUIRegisterPageHost)
189 return &NewWebUI<RegisterPageUI>; 192 return &NewWebUI<RegisterPageUI>;
190 if (url.host() == chrome::kChromeUISettingsHost) 193 if (url.host() == chrome::kChromeUISettingsHost)
191 return &NewWebUI<OptionsUI>; 194 return &NewWebUI<OptionsUI>;
192 if (url.host() == chrome::kChromeUISimUnlockHost) 195 if (url.host() == chrome::kChromeUISimUnlockHost)
193 return &NewWebUI<chromeos::SimUnlockUI>; 196 return &NewWebUI<chromeos::SimUnlockUI>;
194 if (url.host() == chrome::kChromeUISystemInfoHost) 197 if (url.host() == chrome::kChromeUISystemInfoHost)
195 return &NewWebUI<SystemInfoUI>; 198 return &NewWebUI<SystemInfoUI>;
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 return FlagsUI::GetFaviconResourceBytes(); 351 return FlagsUI::GetFaviconResourceBytes();
349 352
350 if (page_url.host() == chrome::kChromeUISettingsHost) 353 if (page_url.host() == chrome::kChromeUISettingsHost)
351 return OptionsUI::GetFaviconResourceBytes(); 354 return OptionsUI::GetFaviconResourceBytes();
352 355
353 if (page_url.host() == chrome::kChromeUIPluginsHost) 356 if (page_url.host() == chrome::kChromeUIPluginsHost)
354 return PluginsUI::GetFaviconResourceBytes(); 357 return PluginsUI::GetFaviconResourceBytes();
355 358
356 return NULL; 359 return NULL;
357 } 360 }
OLDNEW
« no previous file with comments | « chrome/browser/resources/shared_resources.grd ('k') | chrome/browser/ui/webui/chromeos/login/oobe_ui.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698