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

Unified Diff: chrome/browser/ui/browser_commands.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
« no previous file with comments | « chrome/browser/ui/browser_browsertest.cc ('k') | chrome/browser/ui/browser_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser_commands.cc
diff --git a/chrome/browser/ui/browser_commands.cc b/chrome/browser/ui/browser_commands.cc
index c0d4f5eee017c4dfb3b139fbcccadb7db163f934..0f62f2fafc74d358b03ee59bf65e8a4b607c29ab 100644
--- a/chrome/browser/ui/browser_commands.cc
+++ b/chrome/browser/ui/browser_commands.cc
@@ -64,10 +64,10 @@
#include "components/sessions/core/tab_restore_service.h"
#include "components/signin/core/browser/signin_header_helper.h"
#include "components/translate/core/browser/language_state.h"
-#include "components/ui/zoom/page_zoom.h"
-#include "components/ui/zoom/zoom_controller.h"
#include "components/version_info/version_info.h"
#include "components/web_modal/web_contents_modal_dialog_manager.h"
+#include "components/zoom/page_zoom.h"
+#include "components/zoom/zoom_controller.h"
#include "content/public/browser/devtools_agent_host.h"
#include "content/public/browser/navigation_controller.h"
#include "content/public/browser/navigation_entry.h"
@@ -580,19 +580,19 @@ void CloseTab(Browser* browser) {
bool CanZoomIn(content::WebContents* contents) {
return contents && !contents->IsCrashed() &&
- ui_zoom::ZoomController::FromWebContents(contents)->GetZoomPercent() !=
+ zoom::ZoomController::FromWebContents(contents)->GetZoomPercent() !=
contents->GetMaximumZoomPercent();
}
bool CanZoomOut(content::WebContents* contents) {
return contents && !contents->IsCrashed() &&
- ui_zoom::ZoomController::FromWebContents(contents)->GetZoomPercent() !=
+ zoom::ZoomController::FromWebContents(contents)->GetZoomPercent() !=
contents->GetMinimumZoomPercent();
}
bool CanResetZoom(content::WebContents* contents) {
- ui_zoom::ZoomController* zoom_controller =
- ui_zoom::ZoomController::FromWebContents(contents);
+ zoom::ZoomController* zoom_controller =
+ zoom::ZoomController::FromWebContents(contents);
return !zoom_controller->IsAtDefaultZoom() ||
!zoom_controller->PageScaleFactorIsOne();
}
@@ -989,8 +989,8 @@ void FindInPage(Browser* browser, bool find_next, bool forward_direction) {
}
void Zoom(Browser* browser, content::PageZoom zoom) {
- ui_zoom::PageZoom::Zoom(browser->tab_strip_model()->GetActiveWebContents(),
- zoom);
+ zoom::PageZoom::Zoom(browser->tab_strip_model()->GetActiveWebContents(),
+ zoom);
}
void FocusToolbar(Browser* browser) {
« no previous file with comments | « chrome/browser/ui/browser_browsertest.cc ('k') | chrome/browser/ui/browser_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698