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

Side by Side Diff: chrome/browser/extensions/api/tabs/tabs_windows_api.cc

Issue 301733006: Zoom Extension API (chrome) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix javascript test function signature. Created 6 years, 5 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 #include "chrome/browser/extensions/api/tabs/tabs_windows_api.h" 5 #include "chrome/browser/extensions/api/tabs/tabs_windows_api.h"
6 6
7 #include "base/lazy_instance.h" 7 #include "base/lazy_instance.h"
8 #include "chrome/browser/extensions/api/tabs/tabs_event_router.h" 8 #include "chrome/browser/extensions/api/tabs/tabs_event_router.h"
9 #include "chrome/browser/extensions/api/tabs/windows_event_router.h" 9 #include "chrome/browser/extensions/api/tabs/windows_event_router.h"
10 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
(...skipping 16 matching lines...) Expand all
27 api::tabs::OnSelectionChanged::kEventName); 27 api::tabs::OnSelectionChanged::kEventName);
28 event_router->RegisterObserver(this, api::tabs::OnActiveChanged::kEventName); 28 event_router->RegisterObserver(this, api::tabs::OnActiveChanged::kEventName);
29 event_router->RegisterObserver(this, api::tabs::OnActivated::kEventName); 29 event_router->RegisterObserver(this, api::tabs::OnActivated::kEventName);
30 event_router->RegisterObserver(this, 30 event_router->RegisterObserver(this,
31 api::tabs::OnHighlightChanged::kEventName); 31 api::tabs::OnHighlightChanged::kEventName);
32 event_router->RegisterObserver(this, api::tabs::OnHighlighted::kEventName); 32 event_router->RegisterObserver(this, api::tabs::OnHighlighted::kEventName);
33 event_router->RegisterObserver(this, api::tabs::OnDetached::kEventName); 33 event_router->RegisterObserver(this, api::tabs::OnDetached::kEventName);
34 event_router->RegisterObserver(this, api::tabs::OnAttached::kEventName); 34 event_router->RegisterObserver(this, api::tabs::OnAttached::kEventName);
35 event_router->RegisterObserver(this, api::tabs::OnRemoved::kEventName); 35 event_router->RegisterObserver(this, api::tabs::OnRemoved::kEventName);
36 event_router->RegisterObserver(this, api::tabs::OnReplaced::kEventName); 36 event_router->RegisterObserver(this, api::tabs::OnReplaced::kEventName);
37 event_router->RegisterObserver(this, api::tabs::OnZoomChange::kEventName);
37 38
38 // Windows API Events. 39 // Windows API Events.
39 event_router->RegisterObserver(this, api::windows::OnCreated::kEventName); 40 event_router->RegisterObserver(this, api::windows::OnCreated::kEventName);
40 event_router->RegisterObserver(this, api::windows::OnRemoved::kEventName); 41 event_router->RegisterObserver(this, api::windows::OnRemoved::kEventName);
41 event_router->RegisterObserver(this, 42 event_router->RegisterObserver(this,
42 api::windows::OnFocusChanged::kEventName); 43 api::windows::OnFocusChanged::kEventName);
43 } 44 }
44 45
45 TabsWindowsAPI::~TabsWindowsAPI() { 46 TabsWindowsAPI::~TabsWindowsAPI() {
46 } 47 }
(...skipping 30 matching lines...) Expand all
77 } 78 }
78 79
79 void TabsWindowsAPI::OnListenerAdded(const EventListenerInfo& details) { 80 void TabsWindowsAPI::OnListenerAdded(const EventListenerInfo& details) {
80 // Initialize the event routers. 81 // Initialize the event routers.
81 tabs_event_router(); 82 tabs_event_router();
82 windows_event_router(); 83 windows_event_router();
83 EventRouter::Get(browser_context_)->UnregisterObserver(this); 84 EventRouter::Get(browser_context_)->UnregisterObserver(this);
84 } 85 }
85 86
86 } // namespace extensions 87 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698