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

Unified Diff: chrome/browser/ui/views/location_bar/zoom_bubble_view.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/location_bar/zoom_bubble_view.cc
diff --git a/chrome/browser/ui/views/location_bar/zoom_bubble_view.cc b/chrome/browser/ui/views/location_bar/zoom_bubble_view.cc
index 9cb3a0d836b231aaa3e9eaa8770734aec4310cde..921124ffa4612b9cf94b352e638df5741d5beff0 100644
--- a/chrome/browser/ui/views/location_bar/zoom_bubble_view.cc
+++ b/chrome/browser/ui/views/location_bar/zoom_bubble_view.cc
@@ -17,8 +17,8 @@
#include "chrome/browser/ui/views/location_bar/zoom_view.h"
#include "chrome/common/extensions/api/extension_action/action_info.h"
#include "chrome/grit/generated_resources.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 "content/public/browser/notification_source.h"
#include "extensions/browser/extension_zoom_request_client.h"
#include "extensions/common/manifest_handlers/icons_handler.h"
@@ -51,9 +51,9 @@ void ZoomBubbleView::ShowBubble(content::WebContents* web_contents,
browser_view->GetLocationBarView()->zoom_view() : NULL;
// Find the extension that initiated the zoom change, if any.
- ui_zoom::ZoomController* zoom_controller =
- ui_zoom::ZoomController::FromWebContents(web_contents);
- const ui_zoom::ZoomRequestClient* client = zoom_controller->last_client();
+ zoom::ZoomController* zoom_controller =
+ zoom::ZoomController::FromWebContents(web_contents);
+ const zoom::ZoomRequestClient* client = zoom_controller->last_client();
// If the bubble is already showing in this window and the zoom change was not
// initiated by an extension, then the bubble can be reused and only the label
@@ -174,8 +174,8 @@ void ZoomBubbleView::Init() {
}
// Add zoom label with the new zoom percent.
- ui_zoom::ZoomController* zoom_controller =
- ui_zoom::ZoomController::FromWebContents(web_contents_);
+ zoom::ZoomController* zoom_controller =
+ zoom::ZoomController::FromWebContents(web_contents_);
int zoom_percent = zoom_controller->GetZoomPercent();
label_ = new views::Label(l10n_util::GetStringFUTF16(
IDS_TOOLTIP_ZOOM, base::FormatPercent(zoom_percent)));
@@ -223,7 +223,7 @@ void ZoomBubbleView::ButtonPressed(views::Button* sender,
extension_info_.id.c_str())),
ui::PAGE_TRANSITION_FROM_API);
} else {
- ui_zoom::PageZoom::Zoom(web_contents_, content::PAGE_ZOOM_RESET);
+ zoom::PageZoom::Zoom(web_contents_, content::PAGE_ZOOM_RESET);
}
}
@@ -243,8 +243,8 @@ void ZoomBubbleView::OnExtensionIconImageChanged(
}
void ZoomBubbleView::Refresh() {
- ui_zoom::ZoomController* zoom_controller =
- ui_zoom::ZoomController::FromWebContents(web_contents_);
+ zoom::ZoomController* zoom_controller =
+ zoom::ZoomController::FromWebContents(web_contents_);
int zoom_percent = zoom_controller->GetZoomPercent();
label_->SetText(l10n_util::GetStringFUTF16(
IDS_TOOLTIP_ZOOM, base::FormatPercent(zoom_percent)));
« no previous file with comments | « chrome/browser/ui/views/location_bar/location_bar_view.cc ('k') | chrome/browser/ui/views/location_bar/zoom_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698