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

Unified Diff: chrome/browser/ui/views/location_bar/zoom_view.h

Issue 10736028: Refactor browser window zoom handling and enable zoom icon on all platforms. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 4 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_view.h
diff --git a/chrome/browser/ui/views/location_bar/zoom_view.h b/chrome/browser/ui/views/location_bar/zoom_view.h
index 90490bb2e2f7b5fd0b953eccf04ac016e4a9b879..d117bf88fba20e2bc903398644f58f5c0dddd51e 100644
--- a/chrome/browser/ui/views/location_bar/zoom_view.h
+++ b/chrome/browser/ui/views/location_bar/zoom_view.h
@@ -8,7 +8,6 @@
#include "base/basictypes.h"
#include "chrome/browser/ui/toolbar/toolbar_model.h"
#include "chrome/browser/ui/views/location_bar/location_bar_view.h"
-#include "chrome/browser/ui/zoom/zoom_controller.h"
#include "ui/views/controls/image_view.h"
namespace views {
@@ -16,6 +15,8 @@ class KeyEvent;
class MouseEvent;
}
+class ZoomController;
+
// View for the zoom icon in the Omnibox.
class ZoomView : public views::ImageView {
public:
@@ -28,12 +29,9 @@ class ZoomView : public views::ImageView {
LocationBarView::Delegate* location_bar_delegate);
virtual ~ZoomView();
- void SetZoomIconState(ZoomController::ZoomIconState zoom_icon_state);
- void SetZoomIconTooltipPercent(int zoom_percent);
-
// Updates the image and its tooltip appropriately, hiding or showing the icon
// as needed.
- void Update();
+ void Update(ZoomController* zoom_controller);
private:
// views::ImageView:
@@ -50,12 +48,6 @@ class ZoomView : public views::ImageView {
// The delegate used to get the currently visible TabContents.
LocationBarView::Delegate* location_bar_delegate_;
- // The current icon state.
- ZoomController::ZoomIconState zoom_icon_state_;
-
- // The current zoom percentage.
- int zoom_percent_;
-
DISALLOW_COPY_AND_ASSIGN(ZoomView);
};
« no previous file with comments | « chrome/browser/ui/views/location_bar/location_bar_view.cc ('k') | chrome/browser/ui/views/location_bar/zoom_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698