OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_EVENT_MANAGER_OBSERVER_H_ | 5 #ifndef COMPONENTS_ZOOM_ZOOM_EVENT_MANAGER_OBSERVER_H_ |
6 #define COMPONENTS_UI_ZOOM_ZOOM_EVENT_MANAGER_OBSERVER_H_ | 6 #define COMPONENTS_ZOOM_ZOOM_EVENT_MANAGER_OBSERVER_H_ |
7 | 7 |
8 namespace ui_zoom { | 8 namespace zoom { |
9 | 9 |
10 class ZoomEventManagerObserver { | 10 class ZoomEventManagerObserver { |
11 public: | 11 public: |
12 // TODO(wjmaclean): convert existing ZoomLevelChangedCallbacks to be | 12 // TODO(wjmaclean): convert existing ZoomLevelChangedCallbacks to be |
13 // observers. | 13 // observers. |
14 virtual void OnZoomLevelChanged() {} | 14 virtual void OnZoomLevelChanged() {} |
15 virtual void OnDefaultZoomLevelChanged() {} | 15 virtual void OnDefaultZoomLevelChanged() {} |
16 | 16 |
17 protected: | 17 protected: |
18 virtual ~ZoomEventManagerObserver() {} | 18 virtual ~ZoomEventManagerObserver() {} |
19 }; | 19 }; |
20 | 20 |
21 } // namespace ui_zoom | 21 } // namespace zoom |
22 | 22 |
23 #endif // COMPONENTS_UI_ZOOM_ZOOM_EVENT_MANAGER_OBSERVER_H_ | 23 #endif // COMPONENTS_ZOOM_ZOOM_EVENT_MANAGER_OBSERVER_H_ |
OLD | NEW |