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

Unified Diff: chrome/browser/extensions/extension_browser_event_router.h

Issue 10777004: Support chrome.windows extension API events for browserless Panels. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix non-mac compiles Created 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/extension_browser_event_router.h
diff --git a/chrome/browser/extensions/extension_browser_event_router.h b/chrome/browser/extensions/extension_browser_event_router.h
index 9dd8b971fce9ddd3b3d0442e672556a4bb375b96..4c7226572451310d1dcc73989ad732ef838b0dca 100644
--- a/chrome/browser/extensions/extension_browser_event_router.h
+++ b/chrome/browser/extensions/extension_browser_event_router.h
@@ -15,11 +15,6 @@
#include "chrome/browser/ui/browser_list_observer.h"
#include "chrome/browser/ui/tabs/tab_strip_model_observer.h"
#include "content/public/browser/notification_registrar.h"
-#if defined(TOOLKIT_VIEWS)
-#include "ui/views/focus/widget_focus_manager.h"
-#elif defined(TOOLKIT_GTK)
-#include "ui/base/x/active_window_watcher_x_observer.h"
-#endif
namespace content {
class WebContents;
@@ -31,11 +26,6 @@ class WebContents;
// events from windows/tabs within a profile to extension processes in the same
// profile.
class ExtensionBrowserEventRouter : public TabStripModelObserver,
-#if defined(TOOLKIT_VIEWS)
- public views::WidgetFocusChangeListener,
-#elif defined(TOOLKIT_GTK)
- public ui::ActiveWindowWatcherXObserver,
-#endif
public chrome::BrowserListObserver,
public content::NotificationObserver {
public:
@@ -50,17 +40,6 @@ class ExtensionBrowserEventRouter : public TabStripModelObserver,
virtual void OnBrowserRemoved(Browser* browser) OVERRIDE;
virtual void OnBrowserSetLastActive(Browser* browser) OVERRIDE;
-#if defined(TOOLKIT_VIEWS)
- virtual void OnNativeFocusChange(gfx::NativeView focused_before,
- gfx::NativeView focused_now) OVERRIDE;
-#elif defined(TOOLKIT_GTK)
- virtual void ActiveWindowChanged(GdkWindow* active_window) OVERRIDE;
-#endif
-
- // Called from Observe() on BROWSER_WINDOW_READY (not a part of
- // chrome::BrowserListObserver).
- void OnBrowserWindowReady(Browser* browser);
-
// TabStripModelObserver
virtual void TabInsertedAt(TabContents* contents, int index,
bool active) OVERRIDE;
@@ -227,15 +206,6 @@ class ExtensionBrowserEventRouter : public TabStripModelObserver,
// The main profile that owns this event router.
Profile* profile_;
- // The profile the currently focused window belongs to; either the main or
- // incognito profile or NULL (none of the above). We remember this in order
- // to correctly handle focus changes between non-OTR and OTR windows.
- Profile* focused_profile_;
-
- // The currently focused window. We keep this so as to avoid sending multiple
- // windows.onFocusChanged events with the same windowId.
- int focused_window_id_;
-
DISALLOW_COPY_AND_ASSIGN(ExtensionBrowserEventRouter);
};

Powered by Google App Engine
This is Rietveld 408576698