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

Unified Diff: chrome/browser/ui/views/location_bar/zoom_bubble_view.cc

Issue 769593003: Move ZoomObserver, ZoomController and ZoomEventManager to components/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Mac build fix #4. Created 6 years 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 fd6b6ae60c3610ce61b5e46b7f56b0e313f30f52..cd8eac6bead52b5ea52669c41376e4a35684c036 100644
--- a/chrome/browser/ui/views/location_bar/zoom_bubble_view.cc
+++ b/chrome/browser/ui/views/location_bar/zoom_bubble_view.cc
@@ -15,10 +15,10 @@
#include "chrome/browser/ui/views/frame/browser_view.h"
#include "chrome/browser/ui/views/location_bar/location_bar_view.h"
#include "chrome/browser/ui/views/location_bar/zoom_view.h"
-#include "chrome/browser/ui/zoom/zoom_controller.h"
#include "chrome/common/extensions/api/extension_action/action_info.h"
#include "chrome/grit/generated_resources.h"
#include "content/public/browser/notification_source.h"
+#include "extensions/browser/ui/zoom/zoom_controller.h"
#include "extensions/common/manifest_handlers/icons_handler.h"
#include "grit/theme_resources.h"
#include "ui/base/l10n/l10n_util.h"
@@ -59,8 +59,8 @@ void ZoomBubbleView::ShowBubble(content::WebContents* web_contents,
browser_view->GetLocationBarView()->zoom_view() : NULL;
// Find the extension that initiated the zoom change, if any.
- ZoomController* zoom_controller =
- ZoomController::FromWebContents(web_contents);
+ extensions::ZoomController* zoom_controller =
+ extensions::ZoomController::FromWebContents(web_contents);
const extensions::Extension* extension = zoom_controller->last_extension();
// If the bubble is already showing in this window and the zoom change was not
@@ -166,8 +166,8 @@ void ZoomBubbleView::AdjustForFullscreen(const gfx::Rect& screen_bounds) {
}
void ZoomBubbleView::Refresh() {
- ZoomController* zoom_controller =
- ZoomController::FromWebContents(web_contents_);
+ extensions::ZoomController* zoom_controller =
+ extensions::ZoomController::FromWebContents(web_contents_);
int zoom_percent = zoom_controller->GetZoomPercent();
label_->SetText(
l10n_util::GetStringFUTF16Int(IDS_TOOLTIP_ZOOM, zoom_percent));
@@ -313,8 +313,8 @@ void ZoomBubbleView::Init() {
}
// Add zoom label with the new zoom percent.
- ZoomController* zoom_controller =
- ZoomController::FromWebContents(web_contents_);
+ extensions::ZoomController* zoom_controller =
+ extensions::ZoomController::FromWebContents(web_contents_);
int zoom_percent = zoom_controller->GetZoomPercent();
label_ = new views::Label(
l10n_util::GetStringFUTF16Int(IDS_TOOLTIP_ZOOM, zoom_percent));

Powered by Google App Engine
This is Rietveld 408576698