Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_UI_ZOOM_ZOOM_TAB_HELPER_DELEGATE_H_ | |
| 6 #define CHROME_BROWSER_UI_ZOOM_ZOOM_TAB_HELPER_DELEGATE_H_ | |
| 7 #pragma once | |
| 8 | |
| 9 #include "chrome/browser/ui/zoom/zoom_tab_helper.h" | |
| 10 | |
| 11 class TabContentsWrapper; | |
| 12 | |
| 13 // Interface for objects that wish to be notified of changes in ZoomTabHelper. | |
| 14 class ZoomTabHelperDelegate { | |
|
Ben Goodger (Google)
2012/05/29 18:04:41
ZoomObserver
Kyle Horimoto
2012/05/31 23:13:52
Done.
| |
| 15 public: | |
| 16 // Notification that the Omnibox zoom icon should change. | |
| 17 virtual void ZoomIconStateChanged(TabContentsWrapper *source, | |
|
Ben Goodger (Google)
2012/05/29 18:04:41
OnZoomIcon..
Kyle Horimoto
2012/05/31 23:13:52
Done.
| |
| 18 ZoomTabHelper::ZoomIconState state, | |
| 19 int zoomPercent) = 0; | |
| 20 | |
| 21 // Notification that the zoom percentage has changed. | |
| 22 virtual void ZoomChanged(TabContentsWrapper *source, int zoomPercent) = 0; | |
|
Ben Goodger (Google)
2012/05/29 18:04:41
OnZoomChanged...
Kyle Horimoto
2012/05/31 23:13:52
Done.
| |
| 23 protected: | |
|
tfarina
2012/05/26 02:15:35
nit: add a blank line above.
Kyle Horimoto
2012/05/31 23:13:52
Done.
| |
| 24 virtual ~ZoomTabHelperDelegate(); | |
|
tfarina
2012/05/26 02:15:35
nit: we implement this virtual dtor inline here, s
Kyle Horimoto
2012/05/31 23:13:52
Done.
| |
| 25 }; | |
| 26 | |
| 27 #endif // CHROME_BROWSER_UI_ZOOM_ZOOM_TAB_HELPER_DELEGATE_H_ | |
| OLD | NEW |