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 COMPONENTS_UI_ZOOM_ZOOM_OBSERVER_H_ |
6 #define CHROME_BROWSER_UI_ZOOM_ZOOM_OBSERVER_H_ | 6 #define COMPONENTS_UI_ZOOM_ZOOM_OBSERVER_H_ |
7 | 7 |
8 #include "chrome/browser/ui/zoom/zoom_controller.h" | 8 #include "components/ui/zoom/zoom_controller.h" |
9 | 9 |
10 namespace content { | 10 namespace components { |
11 class WebContents; | |
12 } | |
13 | 11 |
14 // 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. |
15 class ZoomObserver { | 13 class ZoomObserver { |
16 public: | 14 public: |
17 // Notification that the zoom percentage has changed. | 15 // Notification that the zoom percentage has changed. |
18 virtual void OnZoomChanged(const ZoomController::ZoomChangedEventData& data) { | 16 virtual void OnZoomChanged(const ZoomController::ZoomChangedEventData& data) { |
19 } | 17 } |
20 | 18 |
21 protected: | 19 protected: |
22 virtual ~ZoomObserver() {} | 20 virtual ~ZoomObserver() {} |
23 }; | 21 }; |
24 | 22 |
25 #endif // CHROME_BROWSER_UI_ZOOM_ZOOM_OBSERVER_H_ | 23 } // namespace extensions |
James Cook
2014/12/04 17:17:16
ditto
wjmaclean
2014/12/04 18:27:17
Done.
| |
24 | |
25 #endif // COMPONENTS_UI_ZOOM_ZOOM_OBSERVER_H_ | |
OLD | NEW |