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

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

Issue 925333002: Demo UI made with a help of WUG toolkit (DO NOT SEND TO CQ). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « chrome/browser/ui/BUILD.gn ('k') | chrome/browser/ui/webui/demo_ui/DEPS » ('j') | 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) 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"
11 #include "base/location.h" 11 #include "base/location.h"
12 #include "base/message_loop/message_loop_proxy.h" 12 #include "base/message_loop/message_loop_proxy.h"
13 #include "base/prefs/pref_service.h" 13 #include "base/prefs/pref_service.h"
14 #include "chrome/browser/about_flags.h" 14 #include "chrome/browser/about_flags.h"
15 #include "chrome/browser/bookmarks/enhanced_bookmarks_features.h" 15 #include "chrome/browser/bookmarks/enhanced_bookmarks_features.h"
16 #include "chrome/browser/dom_distiller/dom_distiller_service_factory.h" 16 #include "chrome/browser/dom_distiller/dom_distiller_service_factory.h"
17 #include "chrome/browser/favicon/favicon_service.h" 17 #include "chrome/browser/favicon/favicon_service.h"
18 #include "chrome/browser/profiles/profile.h" 18 #include "chrome/browser/profiles/profile.h"
19 #include "chrome/browser/profiles/profile_manager.h" 19 #include "chrome/browser/profiles/profile_manager.h"
20 #include "chrome/browser/ui/webui/about_ui.h" 20 #include "chrome/browser/ui/webui/about_ui.h"
21 #include "chrome/browser/ui/webui/app_launcher_page_ui.h" 21 #include "chrome/browser/ui/webui/app_launcher_page_ui.h"
22 #include "chrome/browser/ui/webui/bookmarks_ui.h" 22 #include "chrome/browser/ui/webui/bookmarks_ui.h"
23 #include "chrome/browser/ui/webui/components_ui.h" 23 #include "chrome/browser/ui/webui/components_ui.h"
24 #include "chrome/browser/ui/webui/constrained_web_dialog_ui.h" 24 #include "chrome/browser/ui/webui/constrained_web_dialog_ui.h"
25 #include "chrome/browser/ui/webui/copresence_ui.h" 25 #include "chrome/browser/ui/webui/copresence_ui.h"
26 #include "chrome/browser/ui/webui/crashes_ui.h" 26 #include "chrome/browser/ui/webui/crashes_ui.h"
27 #include "chrome/browser/ui/webui/demo_ui/demo_ui.h"
27 #include "chrome/browser/ui/webui/device_log_ui.h" 28 #include "chrome/browser/ui/webui/device_log_ui.h"
28 #include "chrome/browser/ui/webui/domain_reliability_internals_ui.h" 29 #include "chrome/browser/ui/webui/domain_reliability_internals_ui.h"
29 #include "chrome/browser/ui/webui/downloads_ui.h" 30 #include "chrome/browser/ui/webui/downloads_ui.h"
30 #include "chrome/browser/ui/webui/flags_ui.h" 31 #include "chrome/browser/ui/webui/flags_ui.h"
31 #include "chrome/browser/ui/webui/flash_ui.h" 32 #include "chrome/browser/ui/webui/flash_ui.h"
32 #include "chrome/browser/ui/webui/gcm_internals_ui.h" 33 #include "chrome/browser/ui/webui/gcm_internals_ui.h"
33 #include "chrome/browser/ui/webui/help/help_ui.h" 34 #include "chrome/browser/ui/webui/help/help_ui.h"
34 #include "chrome/browser/ui/webui/history_ui.h" 35 #include "chrome/browser/ui/webui/history_ui.h"
35 #include "chrome/browser/ui/webui/identity_internals_ui.h" 36 #include "chrome/browser/ui/webui/identity_internals_ui.h"
36 #include "chrome/browser/ui/webui/instant_ui.h" 37 #include "chrome/browser/ui/webui/instant_ui.h"
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 if (url.host() == chrome::kChromeUISyncInternalsHost) 333 if (url.host() == chrome::kChromeUISyncInternalsHost)
333 return &NewWebUI<SyncInternalsUI>; 334 return &NewWebUI<SyncInternalsUI>;
334 if (url.host() == chrome::kChromeUISyncResourcesHost) 335 if (url.host() == chrome::kChromeUISyncResourcesHost)
335 return &NewWebUI<WebDialogUI>; 336 return &NewWebUI<WebDialogUI>;
336 if (url.host() == chrome::kChromeUITranslateInternalsHost) 337 if (url.host() == chrome::kChromeUITranslateInternalsHost)
337 return &NewWebUI<TranslateInternalsUI>; 338 return &NewWebUI<TranslateInternalsUI>;
338 if (url.host() == chrome::kChromeUIUserActionsHost) 339 if (url.host() == chrome::kChromeUIUserActionsHost)
339 return &NewWebUI<UserActionsUI>; 340 return &NewWebUI<UserActionsUI>;
340 if (url.host() == chrome::kChromeUIVersionHost) 341 if (url.host() == chrome::kChromeUIVersionHost)
341 return &NewWebUI<VersionUI>; 342 return &NewWebUI<VersionUI>;
343 if (url.host() == chrome::kChromeUIDemoHost)
344 return &NewWebUI<DemoUI>;
342 345
343 /**************************************************************************** 346 /****************************************************************************
344 * OS Specific #defines 347 * OS Specific #defines
345 ***************************************************************************/ 348 ***************************************************************************/
346 #if !defined(OS_ANDROID) 349 #if !defined(OS_ANDROID)
347 // AppLauncherPage is not needed on Android. 350 // AppLauncherPage is not needed on Android.
348 if (url.host() == chrome::kChromeUIAppLauncherPageHost && 351 if (url.host() == chrome::kChromeUIAppLauncherPageHost &&
349 profile && extensions::ExtensionSystem::Get(profile)-> 352 profile && extensions::ExtensionSystem::Get(profile)->
350 extension_service()) { 353 extension_service()) {
351 return &NewWebUI<AppLauncherPageUI>; 354 return &NewWebUI<AppLauncherPageUI>;
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after
725 #endif 728 #endif
726 729
727 // Android doesn't use the plugins pages. 730 // Android doesn't use the plugins pages.
728 if (page_url.host() == chrome::kChromeUIPluginsHost) 731 if (page_url.host() == chrome::kChromeUIPluginsHost)
729 return PluginsUI::GetFaviconResourceBytes(scale_factor); 732 return PluginsUI::GetFaviconResourceBytes(scale_factor);
730 733
731 #endif 734 #endif
732 735
733 return NULL; 736 return NULL;
734 } 737 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/BUILD.gn ('k') | chrome/browser/ui/webui/demo_ui/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698