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 COMPONENTS_UI_ZOOM_ZOOM_OBSERVER_H_ | 5 #ifndef COMPONENTS_ZOOM_ZOOM_OBSERVER_H_ |
6 #define COMPONENTS_UI_ZOOM_ZOOM_OBSERVER_H_ | 6 #define COMPONENTS_ZOOM_ZOOM_OBSERVER_H_ |
7 | 7 |
8 #include "components/ui/zoom/zoom_controller.h" | 8 #include "components/zoom/zoom_controller.h" |
9 | 9 |
10 namespace ui_zoom { | 10 namespace zoom { |
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 zoom percentage has changed. | 15 // Notification that the zoom percentage has changed. |
16 virtual void OnZoomChanged(const ZoomController::ZoomChangedEventData& data) { | 16 virtual void OnZoomChanged(const ZoomController::ZoomChangedEventData& data) { |
17 } | 17 } |
18 | 18 |
19 protected: | 19 protected: |
20 virtual ~ZoomObserver() {} | 20 virtual ~ZoomObserver() {} |
21 }; | 21 }; |
22 | 22 |
23 } // namespace ui_zoom | 23 } // namespace zoom |
24 | 24 |
25 #endif // COMPONENTS_UI_ZOOM_ZOOM_OBSERVER_H_ | 25 #endif // COMPONENTS_ZOOM_ZOOM_OBSERVER_H_ |
OLD | NEW |