Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(228)

Side by Side Diff: chrome/browser/ui/zoom/zoom_observer.h

Issue 10959054: Switch ZoomTabHelper to use WebContentsUserData. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/zoom/zoom_controller.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 CHROME_BROWSER_UI_ZOOM_ZOOM_OBSERVER_H_
6 #define CHROME_BROWSER_UI_ZOOM_ZOOM_OBSERVER_H_ 6 #define CHROME_BROWSER_UI_ZOOM_ZOOM_OBSERVER_H_
7 7
8 class TabContents; 8 namespace content {
9 class WebContents;
10 }
9 11
10 // 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.
11 class ZoomObserver { 13 class ZoomObserver {
12 public: 14 public:
13 // Notification that the zoom percentage has changed. 15 // Notification that the zoom percentage has changed.
14 virtual void OnZoomChanged(TabContents* source, bool can_show_bubble) = 0; 16 virtual void OnZoomChanged(content::WebContents* source,
17 bool can_show_bubble) = 0;
15 18
16 protected: 19 protected:
17 virtual ~ZoomObserver() {} 20 virtual ~ZoomObserver() {}
18 }; 21 };
19 22
20 #endif // CHROME_BROWSER_UI_ZOOM_ZOOM_OBSERVER_H_ 23 #endif // CHROME_BROWSER_UI_ZOOM_ZOOM_OBSERVER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/zoom/zoom_controller.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698