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

Side by Side Diff: content/browser/webui/web_ui_factory.cc

Issue 6693032: Remove WebUI menu (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: " Created 9 years, 9 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
« no previous file with comments | « chrome/common/chrome_switches.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "content/browser/webui/web_ui_factory.h" 5 #include "content/browser/webui/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 22 matching lines...) Expand all
33 #include "chrome/browser/ui/webui/textfields_ui.h" 33 #include "chrome/browser/ui/webui/textfields_ui.h"
34 #include "chrome/common/chrome_switches.h" 34 #include "chrome/common/chrome_switches.h"
35 #include "chrome/common/extensions/extension_constants.h" 35 #include "chrome/common/extensions/extension_constants.h"
36 #include "chrome/common/url_constants.h" 36 #include "chrome/common/url_constants.h"
37 #include "content/browser/tab_contents/tab_contents.h" 37 #include "content/browser/tab_contents/tab_contents.h"
38 #include "googleurl/src/gurl.h" 38 #include "googleurl/src/gurl.h"
39 39
40 #if defined(OS_CHROMEOS) 40 #if defined(OS_CHROMEOS)
41 #include "chrome/browser/chromeos/webui/imageburner_ui.h" 41 #include "chrome/browser/chromeos/webui/imageburner_ui.h"
42 #include "chrome/browser/chromeos/webui/keyboard_overlay_ui.h" 42 #include "chrome/browser/chromeos/webui/keyboard_overlay_ui.h"
43 #include "chrome/browser/chromeos/webui/menu_ui.h"
44 #include "chrome/browser/chromeos/webui/mobile_setup_ui.h" 43 #include "chrome/browser/chromeos/webui/mobile_setup_ui.h"
45 #include "chrome/browser/chromeos/webui/network_menu_ui.h"
46 #include "chrome/browser/chromeos/webui/register_page_ui.h" 44 #include "chrome/browser/chromeos/webui/register_page_ui.h"
47 #include "chrome/browser/chromeos/webui/system_info_ui.h" 45 #include "chrome/browser/chromeos/webui/system_info_ui.h"
48 #include "chrome/browser/chromeos/webui/wrench_menu_ui.h"
49 #include "chrome/browser/ui/webui/filebrowse_ui.h" 46 #include "chrome/browser/ui/webui/filebrowse_ui.h"
50 #include "chrome/browser/ui/webui/mediaplayer_ui.h" 47 #include "chrome/browser/ui/webui/mediaplayer_ui.h"
51 #endif 48 #endif
52 49
53 #if defined(TOUCH_UI) 50 #if defined(TOUCH_UI)
54 #include "chrome/browser/ui/webui/keyboard_ui.h" 51 #include "chrome/browser/ui/webui/keyboard_ui.h"
55 #endif 52 #endif
56 53
57 #if defined(TOUCH_UI) && defined(OS_CHROMEOS) 54 #if defined(TOUCH_UI) && defined(OS_CHROMEOS)
58 #include "chrome/browser/chromeos/webui/login/login_container_ui.h" 55 #include "chrome/browser/chromeos/webui/login/login_container_ui.h"
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 if (url.host() == chrome::kChromeUIMobileSetupHost) 190 if (url.host() == chrome::kChromeUIMobileSetupHost)
194 return &NewWebUI<MobileSetupUI>; 191 return &NewWebUI<MobileSetupUI>;
195 if (url.host() == chrome::kChromeUIRegisterPageHost) 192 if (url.host() == chrome::kChromeUIRegisterPageHost)
196 return &NewWebUI<RegisterPageUI>; 193 return &NewWebUI<RegisterPageUI>;
197 if (url.host() == chrome::kChromeUISettingsHost) 194 if (url.host() == chrome::kChromeUISettingsHost)
198 return &NewWebUI<OptionsUI>; 195 return &NewWebUI<OptionsUI>;
199 if (url.host() == chrome::kChromeUISlideshowHost) 196 if (url.host() == chrome::kChromeUISlideshowHost)
200 return &NewWebUI<SlideshowUI>; 197 return &NewWebUI<SlideshowUI>;
201 if (url.host() == chrome::kChromeUISystemInfoHost) 198 if (url.host() == chrome::kChromeUISystemInfoHost)
202 return &NewWebUI<SystemInfoUI>; 199 return &NewWebUI<SystemInfoUI>;
203 if (url.host() == chrome::kChromeUIMenu)
204 return &NewWebUI<chromeos::MenuUI>;
205 if (url.host() == chrome::kChromeUIWrenchMenu)
206 return &NewWebUI<chromeos::WrenchMenuUI>;
207 if (url.host() == chrome::kChromeUINetworkMenu)
208 return &NewWebUI<chromeos::NetworkMenuUI>;
209 #else 200 #else
210 if (url.host() == chrome::kChromeUISettingsHost) 201 if (url.host() == chrome::kChromeUISettingsHost)
211 return &NewWebUI<OptionsUI>; 202 return &NewWebUI<OptionsUI>;
212 if (url.host() == chrome::kChromeUIPrintHost) { 203 if (url.host() == chrome::kChromeUIPrintHost) {
213 if (CommandLine::ForCurrentProcess()->HasSwitch( 204 if (CommandLine::ForCurrentProcess()->HasSwitch(
214 switches::kEnablePrintPreview)) { 205 switches::kEnablePrintPreview)) {
215 return &NewWebUI<PrintPreviewUI>; 206 return &NewWebUI<PrintPreviewUI>;
216 } 207 }
217 } 208 }
218 #endif // defined(OS_CHROMEOS) 209 #endif // defined(OS_CHROMEOS)
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 if (page_url.host() == chrome::kChromeUIPluginsHost) 332 if (page_url.host() == chrome::kChromeUIPluginsHost)
342 return PluginsUI::GetFaviconResourceBytes(); 333 return PluginsUI::GetFaviconResourceBytes();
343 334
344 #if defined(ENABLE_REMOTING) 335 #if defined(ENABLE_REMOTING)
345 if (page_url.host() == chrome::kChromeUIRemotingHost) 336 if (page_url.host() == chrome::kChromeUIRemotingHost)
346 return RemotingUI::GetFaviconResourceBytes(); 337 return RemotingUI::GetFaviconResourceBytes();
347 #endif 338 #endif
348 339
349 return NULL; 340 return NULL;
350 } 341 }
OLDNEW
« no previous file with comments | « chrome/common/chrome_switches.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698