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

Unified Diff: chrome/browser/ui/views/apps/chrome_native_app_window_views.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, 7 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
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 984cac1bf5ae87350ec1f0a1fb6452bfdaf1939b..591895c12483d1bd0feacc976a9410883310828b 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
@@ -15,8 +15,8 @@
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/views/extensions/extension_keybinding_registry_views.h"
#include "components/favicon/content/content_favicon_driver.h"
-#include "components/ui/zoom/page_zoom.h"
-#include "components/ui/zoom/zoom_controller.h"
+#include "components/zoom/page_zoom.h"
+#include "components/zoom/zoom_controller.h"
#include "ui/views/controls/webview/webview.h"
#include "ui/views/widget/widget.h"
@@ -181,7 +181,7 @@ void ChromeNativeAppWindowViews::InitializeDefaultWindow(
// of the accelerators will cause a crash. Note CHECK here because DCHECK
// will not be noticed, as this could only be relevant on real hardware.
CHECK(!is_kiosk_app_mode ||
- ui_zoom::ZoomController::FromWebContents(web_view()->GetWebContents()));
+ zoom::ZoomController::FromWebContents(web_view()->GetWebContents()));
for (std::map<ui::Accelerator, int>::const_iterator iter =
accelerator_table.begin();
@@ -311,16 +311,15 @@ bool ChromeNativeAppWindowViews::AcceleratorPressed(
Close();
return true;
case IDC_ZOOM_MINUS:
- ui_zoom::PageZoom::Zoom(web_view()->GetWebContents(),
- content::PAGE_ZOOM_OUT);
+ zoom::PageZoom::Zoom(web_view()->GetWebContents(),
+ content::PAGE_ZOOM_OUT);
return true;
case IDC_ZOOM_NORMAL:
- ui_zoom::PageZoom::Zoom(web_view()->GetWebContents(),
- content::PAGE_ZOOM_RESET);
+ zoom::PageZoom::Zoom(web_view()->GetWebContents(),
+ content::PAGE_ZOOM_RESET);
return true;
case IDC_ZOOM_PLUS:
- ui_zoom::PageZoom::Zoom(web_view()->GetWebContents(),
- content::PAGE_ZOOM_IN);
+ 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/toolbar/app_menu_model.cc ('k') | chrome/browser/ui/views/location_bar/location_bar_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698