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

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

Issue 301733006: Zoom Extension API (chrome) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add event manager for manual zoom events. 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
(Empty)
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved.
wjmaclean 2014/06/18 19:03:55 Removed (c) here as well.
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_EVENT_MANAGER_H_
6 #define CHROME_BROWSER_UI_ZOOM_ZOOM_EVENT_MANAGER_H_
7
8 #include "base/callback_list.h"
9 #include "base/supports_user_data.h"
10 #include "content/public/browser/host_zoom_map.h"
11
12 namespace content {
13 class BrowserContext;
14 } // namespace content
15
16 class ZoomEventManager : public base::SupportsUserData::Data {
17 public:
18 static ZoomEventManager* GetForBrowserContext(
19 content::BrowserContext* context);
20
21 ZoomEventManager();
22 virtual ~ZoomEventManager();
23
24 void OnZoomLevelChanged(const content::HostZoomMap::ZoomLevelChange& change);
Devlin 2014/06/16 19:04:50 comment.
wjmaclean 2014/06/18 19:03:55 Done.
25 scoped_ptr<content::HostZoomMap::Subscription> AddZoomLevelChangedCallback(
26 const content::HostZoomMap::ZoomLevelChangedCallback& callback);
27
28 private:
29 base::CallbackList<void(const content::HostZoomMap::ZoomLevelChange&)>
30 zoom_level_changed_callbacks_;
31 };
32 #endif // CHROME_BROWSER_UI_ZOOM_ZOOM_EVENT_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698