Chromium Code Reviews| Index: chrome/browser/ui/zoom/zoom_tab_helper_delegate.h |
| diff --git a/chrome/browser/ui/zoom/zoom_tab_helper_delegate.h b/chrome/browser/ui/zoom/zoom_tab_helper_delegate.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..bde7c4934e07091706587012daf36b56748adbe2 |
| --- /dev/null |
| +++ b/chrome/browser/ui/zoom/zoom_tab_helper_delegate.h |
| @@ -0,0 +1,27 @@ |
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CHROME_BROWSER_UI_ZOOM_ZOOM_TAB_HELPER_DELEGATE_H_ |
| +#define CHROME_BROWSER_UI_ZOOM_ZOOM_TAB_HELPER_DELEGATE_H_ |
| +#pragma once |
| + |
| +#include "chrome/browser/ui/zoom/zoom_tab_helper.h" |
| + |
| +class TabContentsWrapper; |
| + |
| +// Interface for objects that wish to be notified of changes in ZoomTabHelper. |
| +class ZoomTabHelperDelegate { |
|
Ben Goodger (Google)
2012/05/29 18:04:41
ZoomObserver
Kyle Horimoto
2012/05/31 23:13:52
Done.
|
| + public: |
| + // Notification that the Omnibox zoom icon should change. |
| + virtual void ZoomIconStateChanged(TabContentsWrapper *source, |
|
Ben Goodger (Google)
2012/05/29 18:04:41
OnZoomIcon..
Kyle Horimoto
2012/05/31 23:13:52
Done.
|
| + ZoomTabHelper::ZoomIconState state, |
| + int zoomPercent) = 0; |
| + |
| + // Notification that the zoom percentage has changed. |
| + 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.
|
| + protected: |
|
tfarina
2012/05/26 02:15:35
nit: add a blank line above.
Kyle Horimoto
2012/05/31 23:13:52
Done.
|
| + 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.
|
| +}; |
| + |
| +#endif // CHROME_BROWSER_UI_ZOOM_ZOOM_TAB_HELPER_DELEGATE_H_ |