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

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

Issue 22577010: Printing: Add a basic printing mode without print preview and cloud print. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 7 years, 4 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 "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/location.h" 9 #include "base/location.h"
10 #include "base/message_loop/message_loop_proxy.h" 10 #include "base/message_loop/message_loop_proxy.h"
(...skipping 24 matching lines...) Expand all
35 #include "chrome/browser/ui/webui/instant_ui.h" 35 #include "chrome/browser/ui/webui/instant_ui.h"
36 #include "chrome/browser/ui/webui/local_discovery/local_discovery_ui.h" 36 #include "chrome/browser/ui/webui/local_discovery/local_discovery_ui.h"
37 #include "chrome/browser/ui/webui/memory_internals/memory_internals_ui.h" 37 #include "chrome/browser/ui/webui/memory_internals/memory_internals_ui.h"
38 #include "chrome/browser/ui/webui/net_internals/net_internals_ui.h" 38 #include "chrome/browser/ui/webui/net_internals/net_internals_ui.h"
39 #include "chrome/browser/ui/webui/ntp/new_tab_ui.h" 39 #include "chrome/browser/ui/webui/ntp/new_tab_ui.h"
40 #include "chrome/browser/ui/webui/omnibox/omnibox_ui.h" 40 #include "chrome/browser/ui/webui/omnibox/omnibox_ui.h"
41 #include "chrome/browser/ui/webui/options/options_ui.h" 41 #include "chrome/browser/ui/webui/options/options_ui.h"
42 #include "chrome/browser/ui/webui/performance_monitor/performance_monitor_ui.h" 42 #include "chrome/browser/ui/webui/performance_monitor/performance_monitor_ui.h"
43 #include "chrome/browser/ui/webui/plugins_ui.h" 43 #include "chrome/browser/ui/webui/plugins_ui.h"
44 #include "chrome/browser/ui/webui/predictors/predictors_ui.h" 44 #include "chrome/browser/ui/webui/predictors/predictors_ui.h"
45 #include "chrome/browser/ui/webui/print_preview/print_preview_ui.h"
46 #include "chrome/browser/ui/webui/profiler_ui.h" 45 #include "chrome/browser/ui/webui/profiler_ui.h"
47 #include "chrome/browser/ui/webui/quota_internals/quota_internals_ui.h" 46 #include "chrome/browser/ui/webui/quota_internals/quota_internals_ui.h"
48 #include "chrome/browser/ui/webui/signin/profile_signin_confirmation_ui.h" 47 #include "chrome/browser/ui/webui/signin/profile_signin_confirmation_ui.h"
49 #include "chrome/browser/ui/webui/signin/user_manager_ui.h" 48 #include "chrome/browser/ui/webui/signin/user_manager_ui.h"
50 #include "chrome/browser/ui/webui/signin_internals_ui.h" 49 #include "chrome/browser/ui/webui/signin_internals_ui.h"
51 #include "chrome/browser/ui/webui/sync_internals_ui.h" 50 #include "chrome/browser/ui/webui/sync_internals_ui.h"
52 #include "chrome/browser/ui/webui/translate_internals/translate_internals_ui.h" 51 #include "chrome/browser/ui/webui/translate_internals/translate_internals_ui.h"
53 #include "chrome/browser/ui/webui/user_actions/user_actions_ui.h" 52 #include "chrome/browser/ui/webui/user_actions/user_actions_ui.h"
54 #include "chrome/browser/ui/webui/version_ui.h" 53 #include "chrome/browser/ui/webui/version_ui.h"
55 #include "chrome/common/chrome_switches.h" 54 #include "chrome/common/chrome_switches.h"
(...skipping 15 matching lines...) Expand all
71 #endif 70 #endif
72 71
73 #if defined(ENABLE_CONFIGURATION_POLICY) 72 #if defined(ENABLE_CONFIGURATION_POLICY)
74 #include "chrome/browser/ui/webui/policy_ui.h" 73 #include "chrome/browser/ui/webui/policy_ui.h"
75 #endif 74 #endif
76 75
77 #if defined(ENABLE_WEBRTC) 76 #if defined(ENABLE_WEBRTC)
78 #include "chrome/browser/ui/webui/media/webrtc_logs_ui.h" 77 #include "chrome/browser/ui/webui/media/webrtc_logs_ui.h"
79 #endif 78 #endif
80 79
80 #if defined(ENABLE_FULL_PRINTING)
81 #include "chrome/browser/ui/webui/print_preview/print_preview_ui.h"
82 #endif
83
81 #if defined(OS_ANDROID) 84 #if defined(OS_ANDROID)
82 #include "chrome/browser/ui/webui/welcome_ui_android.h" 85 #include "chrome/browser/ui/webui/welcome_ui_android.h"
83 #else 86 #else
84 #include "chrome/browser/ui/webui/suggestions_internals/suggestions_internals_ui .h" 87 #include "chrome/browser/ui/webui/suggestions_internals/suggestions_internals_ui .h"
85 #include "chrome/browser/ui/webui/sync_file_system_internals/sync_file_system_in ternals_ui.h" 88 #include "chrome/browser/ui/webui/sync_file_system_internals/sync_file_system_in ternals_ui.h"
86 #include "chrome/browser/ui/webui/uber/uber_ui.h" 89 #include "chrome/browser/ui/webui/uber/uber_ui.h"
87 #endif 90 #endif
88 91
89 #if defined(OS_ANDROID) || defined(OS_IOS) 92 #if defined(OS_ANDROID) || defined(OS_IOS)
90 #include "chrome/browser/ui/webui/net_export_ui.h" 93 #include "chrome/browser/ui/webui/net_export_ui.h"
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
427 } 430 }
428 431
429 #if defined(ENABLE_EXTENSIONS) 432 #if defined(ENABLE_EXTENSIONS)
430 if (url.host() == chrome::kChromeUIExtensionInfoHost && 433 if (url.host() == chrome::kChromeUIExtensionInfoHost &&
431 extensions::FeatureSwitch::script_badges()->IsEnabled()) { 434 extensions::FeatureSwitch::script_badges()->IsEnabled()) {
432 return &NewWebUI<extensions::ExtensionInfoUI>; 435 return &NewWebUI<extensions::ExtensionInfoUI>;
433 } 436 }
434 if (url.host() == chrome::kChromeUIExtensionsFrameHost) 437 if (url.host() == chrome::kChromeUIExtensionsFrameHost)
435 return &NewWebUI<extensions::ExtensionsUI>; 438 return &NewWebUI<extensions::ExtensionsUI>;
436 #endif 439 #endif
437 #if defined(ENABLE_PRINTING) 440 #if defined(ENABLE_FULL_PRINTING)
438 if (url.host() == chrome::kChromeUIPrintHost && 441 if (url.host() == chrome::kChromeUIPrintHost &&
439 !profile->GetPrefs()->GetBoolean(prefs::kPrintPreviewDisabled)) 442 !profile->GetPrefs()->GetBoolean(prefs::kPrintPreviewDisabled))
440 return &NewWebUI<PrintPreviewUI>; 443 return &NewWebUI<PrintPreviewUI>;
441 #endif 444 #endif
442 445
443 return NULL; 446 return NULL;
444 } 447 }
445 448
446 void RunFaviconCallbackAsync( 449 void RunFaviconCallbackAsync(
447 const FaviconService::FaviconResultsCallback& callback, 450 const FaviconService::FaviconResultsCallback& callback,
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
602 return extensions::ExtensionsUI::GetFaviconResourceBytes(scale_factor); 605 return extensions::ExtensionsUI::GetFaviconResourceBytes(scale_factor);
603 #endif 606 #endif
604 607
605 // Android doesn't use the plugins pages. 608 // Android doesn't use the plugins pages.
606 if (page_url.host() == chrome::kChromeUIPluginsHost) 609 if (page_url.host() == chrome::kChromeUIPluginsHost)
607 return PluginsUI::GetFaviconResourceBytes(scale_factor); 610 return PluginsUI::GetFaviconResourceBytes(scale_factor);
608 #endif 611 #endif
609 612
610 return NULL; 613 return NULL;
611 } 614 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698