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

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

Issue 10831372: Revert 152080 - 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
===================================================================
--- chrome/browser/ui/views/location_bar/zoom_view.h (revision 152086)
+++ chrome/browser/ui/views/location_bar/zoom_view.h (working copy)
@@ -8,6 +8,7 @@
#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 {
@@ -15,8 +16,6 @@
class MouseEvent;
}
-class ZoomController;
-
// View for the zoom icon in the Omnibox.
class ZoomView : public views::ImageView {
public:
@@ -29,9 +28,12 @@
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(ZoomController* zoom_controller);
+ void Update();
private:
// views::ImageView:
@@ -48,6 +50,12 @@
// 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