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

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 naming 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 #include "chrome/browser/ui/webui/mediaplayer_ui.h" 51 #include "chrome/browser/ui/webui/mediaplayer_ui.h"
51 #endif 52 #endif
52 53
53 #if defined(TOUCH_UI) 54 #if defined(TOUCH_UI)
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 if (url.host() == chrome::kChromeUIActiveDownloadsHost) 180 if (url.host() == chrome::kChromeUIActiveDownloadsHost)
180 return &NewWebUI<ActiveDownloadsUI>; 181 return &NewWebUI<ActiveDownloadsUI>;
181 if (url.host() == chrome::kChromeUIImageBurnerHost) 182 if (url.host() == chrome::kChromeUIImageBurnerHost)
182 return &NewWebUI<ImageBurnUI>; 183 return &NewWebUI<ImageBurnUI>;
183 if (url.host() == chrome::kChromeUIKeyboardOverlayHost) 184 if (url.host() == chrome::kChromeUIKeyboardOverlayHost)
184 return &NewWebUI<KeyboardOverlayUI>; 185 return &NewWebUI<KeyboardOverlayUI>;
185 if (url.host() == chrome::kChromeUIMediaplayerHost) 186 if (url.host() == chrome::kChromeUIMediaplayerHost)
186 return &NewWebUI<MediaplayerUI>; 187 return &NewWebUI<MediaplayerUI>;
187 if (url.host() == chrome::kChromeUIMobileSetupHost) 188 if (url.host() == chrome::kChromeUIMobileSetupHost)
188 return &NewWebUI<MobileSetupUI>; 189 return &NewWebUI<MobileSetupUI>;
190 if (url.host() == chrome::kChromeUIOobeHost)
191 return &NewWebUI<chromeos::OobeUI>;
189 if (url.host() == chrome::kChromeUIProxySettingsHost) 192 if (url.host() == chrome::kChromeUIProxySettingsHost)
190 return &NewWebUI<chromeos::ProxySettingsUI>; 193 return &NewWebUI<chromeos::ProxySettingsUI>;
191 if (url.host() == chrome::kChromeUIRegisterPageHost) 194 if (url.host() == chrome::kChromeUIRegisterPageHost)
192 return &NewWebUI<RegisterPageUI>; 195 return &NewWebUI<RegisterPageUI>;
193 if (url.host() == chrome::kChromeUISettingsHost) 196 if (url.host() == chrome::kChromeUISettingsHost)
194 return &NewWebUI<OptionsUI>; 197 return &NewWebUI<OptionsUI>;
195 if (url.host() == chrome::kChromeUISimUnlockHost) 198 if (url.host() == chrome::kChromeUISimUnlockHost)
196 return &NewWebUI<chromeos::SimUnlockUI>; 199 return &NewWebUI<chromeos::SimUnlockUI>;
197 if (url.host() == chrome::kChromeUISystemInfoHost) 200 if (url.host() == chrome::kChromeUISystemInfoHost)
198 return &NewWebUI<SystemInfoUI>; 201 return &NewWebUI<SystemInfoUI>;
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
351 return FlagsUI::GetFaviconResourceBytes(); 354 return FlagsUI::GetFaviconResourceBytes();
352 355
353 if (page_url.host() == chrome::kChromeUISettingsHost) 356 if (page_url.host() == chrome::kChromeUISettingsHost)
354 return OptionsUI::GetFaviconResourceBytes(); 357 return OptionsUI::GetFaviconResourceBytes();
355 358
356 if (page_url.host() == chrome::kChromeUIPluginsHost) 359 if (page_url.host() == chrome::kChromeUIPluginsHost)
357 return PluginsUI::GetFaviconResourceBytes(); 360 return PluginsUI::GetFaviconResourceBytes();
358 361
359 return NULL; 362 return NULL;
360 } 363 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698