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

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: fix mac Created 8 years, 5 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 2c5062244cbd9339566db1ab8ee383c37ff314e3..0042cc787225e0a6f873180cb0216af8f7f0ff73 100644
--- a/chrome/browser/ui/views/location_bar/zoom_view.h
+++ b/chrome/browser/ui/views/location_bar/zoom_view.h
@@ -21,31 +21,19 @@ class ZoomView : public views::ImageView {
explicit ZoomView(ToolbarModel* toolbar_model);
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:
virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE;
virtual bool GetTooltipText(const gfx::Point& p,
string16* tooltip) const OVERRIDE;
- virtual bool OnMousePressed(const views::MouseEvent& event) OVERRIDE;
Kyle Horimoto 2012/07/24 03:22:28 Why are we getting rid of all these mouse event ha
Dan Beam 2012/08/15 09:04:59 I've added them back now that the code compiles wi
- virtual void OnMouseReleased(const views::MouseEvent& event) OVERRIDE;
- virtual bool OnKeyPressed(const views::KeyEvent& event) OVERRIDE;
// Toolbar model used to test whether location bar input is in progress.
ToolbarModel* toolbar_model_;
- // The current icon state.
- ZoomController::ZoomIconState zoom_icon_state_;
-
- // The current zoom percentage.
- int zoom_percent_;
-
DISALLOW_COPY_AND_ASSIGN(ZoomView);
};

Powered by Google App Engine
This is Rietveld 408576698