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

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

Issue 301733006: Zoom Extension API (chrome) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update to match changes in content/ CL. Created 6 years, 6 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
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 #include "chrome/browser/ui/zoom/zoom_controller.h"
9
8 namespace content { 10 namespace content {
9 class WebContents; 11 class WebContents;
10 } 12 }
11 13
12 // Interface for objects that wish to be notified of changes in ZoomController. 14 // Interface for objects that wish to be notified of changes in ZoomController.
13 class ZoomObserver { 15 class ZoomObserver {
14 public: 16 public:
15 // Notification that the zoom percentage has changed. 17 // Notification that the zoom percentage has changed.
16 virtual void OnZoomChanged(content::WebContents* source, 18 virtual void OnZoomChanged(content::WebContents* source,
17 bool can_show_bubble) = 0; 19 bool can_show_bubble) {}
20
21 // Notification that a zoom change has been initiated for |web_contents|.
22 virtual void OnZoomChangeInitiated(content::WebContents* web_contents,
23 double old_zoom_level,
24 double new_zoom_level,
25 ZoomMode zoom_mode) {}
18 26
19 protected: 27 protected:
20 virtual ~ZoomObserver() {} 28 virtual ~ZoomObserver() {}
21 }; 29 };
22 30
23 #endif // CHROME_BROWSER_UI_ZOOM_ZOOM_OBSERVER_H_ 31 #endif // CHROME_BROWSER_UI_ZOOM_ZOOM_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698