| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_UI_ZOOM_ZOOM_OBSERVER_H_ | 5 #ifndef CHROME_BROWSER_UI_ZOOM_ZOOM_OBSERVER_H_ |
| 6 #define CHROME_BROWSER_UI_ZOOM_ZOOM_OBSERVER_H_ | 6 #define CHROME_BROWSER_UI_ZOOM_ZOOM_OBSERVER_H_ |
| 7 | 7 |
| 8 #include "chrome/browser/ui/zoom/zoom_controller.h" | 8 #include "chrome/browser/ui/zoom/zoom_controller.h" |
| 9 | 9 |
| 10 class TabContents; | 10 class TabContents; |
| 11 | 11 |
| 12 // Interface for objects that wish to be notified of changes in ZoomController. | 12 // Interface for objects that wish to be notified of changes in ZoomController. |
| 13 class ZoomObserver { | 13 class ZoomObserver { |
| 14 public: | 14 public: |
| 15 // Notification that the Omnibox zoom icon should change. | |
| 16 virtual void OnZoomIconChanged(TabContents* source, | |
| 17 ZoomController::ZoomIconState state) = 0; | |
| 18 | |
| 19 // Notification that the zoom percentage has changed. | 15 // Notification that the zoom percentage has changed. |
| 20 virtual void OnZoomChanged(TabContents* source, | 16 virtual void OnZoomChanged(TabContents* source, bool can_show_bubble) = 0; |
| 21 int zoom_percent, | |
| 22 bool can_show_bubble) = 0; | |
| 23 | 17 |
| 24 protected: | 18 protected: |
| 25 virtual ~ZoomObserver() {} | 19 virtual ~ZoomObserver() {} |
| 26 }; | 20 }; |
| 27 | 21 |
| 28 #endif // CHROME_BROWSER_UI_ZOOM_ZOOM_OBSERVER_H_ | 22 #endif // CHROME_BROWSER_UI_ZOOM_ZOOM_OBSERVER_H_ |
| OLD | NEW |