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

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

Issue 10444040: Tracks changes to zoom icon and zoom percentage. Notifies browser window if the icon should be chan… (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebased Created 8 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
« no previous file with comments | « chrome/browser/ui/zoom/zoom_controller.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_OBSERVER_H_
6 #define CHROME_BROWSER_UI_ZOOM_ZOOM_OBSERVER_H_
7 #pragma once
8
9 #include "chrome/browser/ui/zoom/zoom_controller.h"
10
11 class TabContentsWrapper;
12
13 // Interface for objects that wish to be notified of changes in ZoomController.
14 class ZoomObserver {
15 public:
16 // Notification that the Omnibox zoom icon should change.
17 virtual void OnZoomIconChanged(TabContentsWrapper* source,
18 ZoomController::ZoomIconState state) = 0;
19
20 // Notification that the zoom percentage has changed.
21 virtual void OnZoomChanged(TabContentsWrapper* source,
22 int zoom_percent,
23 bool can_show_bubble) = 0;
24
25 protected:
26 virtual ~ZoomObserver() {}
27 };
28
29 #endif // CHROME_BROWSER_UI_ZOOM_ZOOM_OBSERVER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/zoom/zoom_controller.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698