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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "chrome/browser/ui/zoom/zoom_controller.h" | 9 #include "chrome/browser/ui/zoom/zoom_controller.h" |
10 | 10 |
11 class TabContents; | 11 class TabContents; |
12 | 12 |
13 // Interface for objects that wish to be notified of changes in ZoomController. | 13 // Interface for objects that wish to be notified of changes in ZoomController. |
14 class ZoomObserver { | 14 class ZoomObserver { |
15 public: | 15 public: |
16 // Notification that the Omnibox zoom icon should change. | |
17 virtual void OnZoomIconChanged(TabContents* source, | |
18 ZoomController::ZoomIconState state) = 0; | |
19 | |
20 // Notification that the zoom percentage has changed. | 16 // Notification that the zoom percentage has changed. |
21 virtual void OnZoomChanged(TabContents* source, | 17 virtual void OnZoomChanged(TabContents* source, bool can_show_bubble) = 0; |
22 int zoom_percent, | |
23 bool can_show_bubble) = 0; | |
24 | 18 |
25 protected: | 19 protected: |
26 virtual ~ZoomObserver() {} | 20 virtual ~ZoomObserver() {} |
27 }; | 21 }; |
28 | 22 |
29 #endif // CHROME_BROWSER_UI_ZOOM_ZOOM_OBSERVER_H_ | 23 #endif // CHROME_BROWSER_UI_ZOOM_ZOOM_OBSERVER_H_ |
OLD | NEW |