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

Unified Diff: chrome/browser/extensions/api/tabs/windows_event_router.h

Issue 773303005: MacViews: Change TOOLKIT_VIEWS to !OS_MACOSX in extensions::WindowsEventRouter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: event -> even Created 6 years 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
« no previous file with comments | « no previous file | chrome/browser/extensions/api/tabs/windows_event_router.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/tabs/windows_event_router.h
diff --git a/chrome/browser/extensions/api/tabs/windows_event_router.h b/chrome/browser/extensions/api/tabs/windows_event_router.h
index e7c99fe22687abd4cdfba8b72770627c32a0f856..6cc39abafd576527b89cc1d5e2f22783522eb0f4 100644
--- a/chrome/browser/extensions/api/tabs/windows_event_router.h
+++ b/chrome/browser/extensions/api/tabs/windows_event_router.h
@@ -12,7 +12,8 @@
#include "chrome/browser/extensions/window_controller_list_observer.h"
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
-#if defined(TOOLKIT_VIEWS)
+
+#if !defined(OS_MACOSX)
#include "ui/views/focus/widget_focus_manager.h"
#endif
@@ -26,10 +27,10 @@ namespace extensions {
// The WindowsEventRouter sends chrome.windows.* events to listeners
// inside extension process renderers. The router listens to *all* events,
-// but will only route eventes within a profile to extension processes in the
+// but will only route events within a profile to extension processes in the
// same profile.
class WindowsEventRouter : public WindowControllerListObserver,
-#if defined(TOOLKIT_VIEWS)
+#if !defined(OS_MACOSX)
public views::WidgetFocusChangeListener,
#endif
public content::NotificationObserver {
@@ -41,7 +42,7 @@ class WindowsEventRouter : public WindowControllerListObserver,
void OnWindowControllerAdded(WindowController* window_controller) override;
void OnWindowControllerRemoved(WindowController* window) override;
-#if defined(TOOLKIT_VIEWS)
+#if !defined(OS_MACOSX)
void OnNativeFocusChange(gfx::NativeView focused_before,
gfx::NativeView focused_now) override;
#endif
« no previous file with comments | « no previous file | chrome/browser/extensions/api/tabs/windows_event_router.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698