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

Unified Diff: chrome/browser/ui/views/apps/chrome_native_app_window_views.cc

Issue 847703003: Refactor to move chrome_page_zoom functions to components/ui/zoom. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Mac compile. Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/panels/panel_host.cc ('k') | chrome/browser/ui/views/location_bar/zoom_bubble_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/apps/chrome_native_app_window_views.cc
diff --git a/chrome/browser/ui/views/apps/chrome_native_app_window_views.cc b/chrome/browser/ui/views/apps/chrome_native_app_window_views.cc
index 4973d857c8f6a8b71001def97aa73a52e54cd7de..9ac09b0eea59623ada608c079108defb728d9509 100644
--- a/chrome/browser/ui/views/apps/chrome_native_app_window_views.cc
+++ b/chrome/browser/ui/views/apps/chrome_native_app_window_views.cc
@@ -8,7 +8,6 @@
#include "base/command_line.h"
#include "chrome/app/chrome_command_ids.h"
#include "chrome/browser/app_mode/app_mode_utils.h"
-#include "chrome/browser/chrome_page_zoom.h"
#include "chrome/browser/favicon/favicon_tab_helper.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/host_desktop.h"
@@ -18,6 +17,7 @@
#include "chrome/browser/ui/views/frame/taskbar_decorator.h"
#include "chrome/browser/web_applications/web_app.h"
#include "chrome/common/chrome_switches.h"
+#include "components/ui/zoom/page_zoom.h"
#include "components/ui/zoom/zoom_controller.h"
#include "extensions/common/extension.h"
#include "ui/aura/window.h"
@@ -584,16 +584,16 @@ bool ChromeNativeAppWindowViews::AcceleratorPressed(
Close();
return true;
case IDC_ZOOM_MINUS:
- chrome_page_zoom::Zoom(web_view()->GetWebContents(),
- content::PAGE_ZOOM_OUT);
+ ui_zoom::PageZoom::Zoom(web_view()->GetWebContents(),
+ content::PAGE_ZOOM_OUT);
return true;
case IDC_ZOOM_NORMAL:
- chrome_page_zoom::Zoom(web_view()->GetWebContents(),
- content::PAGE_ZOOM_RESET);
+ ui_zoom::PageZoom::Zoom(web_view()->GetWebContents(),
+ content::PAGE_ZOOM_RESET);
return true;
case IDC_ZOOM_PLUS:
- chrome_page_zoom::Zoom(web_view()->GetWebContents(),
- content::PAGE_ZOOM_IN);
+ ui_zoom::PageZoom::Zoom(web_view()->GetWebContents(),
+ content::PAGE_ZOOM_IN);
return true;
default:
NOTREACHED() << "Unknown accelerator sent to app window.";
« no previous file with comments | « chrome/browser/ui/panels/panel_host.cc ('k') | chrome/browser/ui/views/location_bar/zoom_bubble_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698