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

Side by Side Diff: chrome/browser/ui/apps/chrome_app_delegate.cc

Issue 2019423005: Move //components/ui/zoom to top-level under //components (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/apps/chrome_app_delegate.h" 5 #include "chrome/browser/ui/apps/chrome_app_delegate.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 10 matching lines...) Expand all
21 #include "chrome/browser/profiles/profile.h" 21 #include "chrome/browser/profiles/profile.h"
22 #include "chrome/browser/shell_integration.h" 22 #include "chrome/browser/shell_integration.h"
23 #include "chrome/browser/ui/browser.h" 23 #include "chrome/browser/ui/browser.h"
24 #include "chrome/browser/ui/browser_dialogs.h" 24 #include "chrome/browser/ui/browser_dialogs.h"
25 #include "chrome/browser/ui/browser_navigator_params.h" 25 #include "chrome/browser/ui/browser_navigator_params.h"
26 #include "chrome/browser/ui/browser_tabstrip.h" 26 #include "chrome/browser/ui/browser_tabstrip.h"
27 #include "chrome/browser/ui/browser_window.h" 27 #include "chrome/browser/ui/browser_window.h"
28 #include "chrome/browser/ui/scoped_tabbed_browser_displayer.h" 28 #include "chrome/browser/ui/scoped_tabbed_browser_displayer.h"
29 #include "chrome/browser/ui/web_contents_sizer.h" 29 #include "chrome/browser/ui/web_contents_sizer.h"
30 #include "chrome/common/extensions/chrome_extension_messages.h" 30 #include "chrome/common/extensions/chrome_extension_messages.h"
31 #include "components/ui/zoom/zoom_controller.h" 31 #include "components/zoom/zoom_controller.h"
32 #include "content/public/browser/browser_context.h" 32 #include "content/public/browser/browser_context.h"
33 #include "content/public/browser/browser_thread.h" 33 #include "content/public/browser/browser_thread.h"
34 #include "content/public/browser/host_zoom_map.h" 34 #include "content/public/browser/host_zoom_map.h"
35 #include "content/public/browser/notification_service.h" 35 #include "content/public/browser/notification_service.h"
36 #include "content/public/browser/render_view_host.h" 36 #include "content/public/browser/render_view_host.h"
37 #include "content/public/browser/web_contents.h" 37 #include "content/public/browser/web_contents.h"
38 #include "content/public/browser/web_contents_delegate.h" 38 #include "content/public/browser/web_contents_delegate.h"
39 #include "extensions/common/constants.h" 39 #include "extensions/common/constants.h"
40 40
41 #if defined(USE_ASH) 41 #if defined(USE_ASH)
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 printing::PrintPreviewMessageHandler::CreateForWebContents(web_contents); 180 printing::PrintPreviewMessageHandler::CreateForWebContents(web_contents);
181 #else 181 #else
182 printing::PrintViewManagerBasic::CreateForWebContents(web_contents); 182 printing::PrintViewManagerBasic::CreateForWebContents(web_contents);
183 #endif // defined(ENABLE_PRINT_PREVIEW) 183 #endif // defined(ENABLE_PRINT_PREVIEW)
184 #endif // defined(ENABLE_PRINTING) 184 #endif // defined(ENABLE_PRINTING)
185 extensions::ChromeExtensionWebContentsObserver::CreateForWebContents( 185 extensions::ChromeExtensionWebContentsObserver::CreateForWebContents(
186 web_contents); 186 web_contents);
187 187
188 // Kiosk app supports zooming. 188 // Kiosk app supports zooming.
189 if (chrome::IsRunningInForcedAppMode()) 189 if (chrome::IsRunningInForcedAppMode())
190 ui_zoom::ZoomController::CreateForWebContents(web_contents); 190 zoom::ZoomController::CreateForWebContents(web_contents);
191 } 191 }
192 192
193 void ChromeAppDelegate::RenderViewCreated( 193 void ChromeAppDelegate::RenderViewCreated(
194 content::RenderViewHost* render_view_host) { 194 content::RenderViewHost* render_view_host) {
195 if (!chrome::IsRunningInForcedAppMode()) { 195 if (!chrome::IsRunningInForcedAppMode()) {
196 // Due to a bug in the way apps reacted to default zoom changes, some apps 196 // Due to a bug in the way apps reacted to default zoom changes, some apps
197 // can incorrectly have host level zoom settings. These aren't wanted as 197 // can incorrectly have host level zoom settings. These aren't wanted as
198 // apps cannot be zoomed, so are removed. This should be removed if apps 198 // apps cannot be zoomed, so are removed. This should be removed if apps
199 // can be made to zoom again. 199 // can be made to zoom again.
200 // See http://crbug.com/446759 for more details. 200 // See http://crbug.com/446759 for more details.
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 const content::NotificationDetails& details) { 338 const content::NotificationDetails& details) {
339 switch (type) { 339 switch (type) {
340 case chrome::NOTIFICATION_APP_TERMINATING: 340 case chrome::NOTIFICATION_APP_TERMINATING:
341 if (!terminating_callback_.is_null()) 341 if (!terminating_callback_.is_null())
342 terminating_callback_.Run(); 342 terminating_callback_.Run();
343 break; 343 break;
344 default: 344 default:
345 NOTREACHED() << "Received unexpected notification"; 345 NOTREACHED() << "Received unexpected notification";
346 } 346 }
347 } 347 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/app_list/start_page_service.cc ('k') | chrome/browser/ui/autofill/chrome_autofill_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698