| Index: chrome/browser/ui/zoom/zoom_controller.h
|
| diff --git a/chrome/browser/ui/zoom/zoom_controller.h b/chrome/browser/ui/zoom/zoom_controller.h
|
| index 218d3d7db95284ef189965bbfee550a3b35c2e8c..e6a21132829ec78fab6ac3c25ddc67cb9a5cfbd3 100644
|
| --- a/chrome/browser/ui/zoom/zoom_controller.h
|
| +++ b/chrome/browser/ui/zoom/zoom_controller.h
|
| @@ -20,18 +20,14 @@ class ZoomObserver;
|
| class ZoomController : public content::NotificationObserver,
|
| public content::WebContentsObserver {
|
| public:
|
| - enum ZoomIconState {
|
| - NONE = 0,
|
| - ZOOM_PLUS_ICON,
|
| - ZOOM_MINUS_ICON,
|
| - };
|
| -
|
| explicit ZoomController(TabContents* tab_contents);
|
| virtual ~ZoomController();
|
|
|
| - ZoomIconState zoom_icon_state() const { return zoom_icon_state_; }
|
| int zoom_percent() const { return zoom_percent_; }
|
|
|
| + // Convenience method to quickly check if the tab's at default zoom.
|
| + bool IsAtDefaultZoom() const;
|
| +
|
| void set_observer(ZoomObserver* observer) { observer_ = observer; }
|
|
|
| private:
|
| @@ -49,13 +45,10 @@ class ZoomController : public content::NotificationObserver,
|
| // notifies the observer if changes have occurred. |can_show_bubble| will be
|
| // true only if the active window changes the zoom on the current page (i.e.,
|
| // inactive window zoom changes, creating a new tab/window, or shifting
|
| - // between tabs/windows, although they may involve a change in the zoom, will
|
| - // not trigger the bubble to be shown).
|
| + // between tabs/windows, although they may involve a change in the zoom,
|
| + // should not trigger showing a bubble).
|
| void UpdateState(bool can_show_bubble);
|
|
|
| - // The current zoom icon state.
|
| - ZoomIconState zoom_icon_state_;
|
| -
|
| // The current zoom percentage.
|
| int zoom_percent_;
|
|
|
|
|