OLD | NEW |
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 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSER_EVENT_ROUTER_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSER_EVENT_ROUTER_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSER_EVENT_ROUTER_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSER_EVENT_ROUTER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
14 #include "chrome/browser/extensions/extension_tabs_module.h" | 14 #include "chrome/browser/extensions/api/tabs/tabs.h" |
15 #include "chrome/browser/extensions/extension_toolbar_model.h" | 15 #include "chrome/browser/extensions/extension_toolbar_model.h" |
16 #include "chrome/browser/ui/browser_list.h" | 16 #include "chrome/browser/ui/browser_list.h" |
17 #include "chrome/browser/ui/tabs/tab_strip_model_observer.h" | 17 #include "chrome/browser/ui/tabs/tab_strip_model_observer.h" |
18 #include "content/public/browser/notification_registrar.h" | 18 #include "content/public/browser/notification_registrar.h" |
19 #if defined(TOOLKIT_VIEWS) | 19 #if defined(TOOLKIT_VIEWS) |
20 #include "ui/views/focus/widget_focus_manager.h" | 20 #include "ui/views/focus/widget_focus_manager.h" |
21 #elif defined(TOOLKIT_GTK) | 21 #elif defined(TOOLKIT_GTK) |
22 #include "ui/base/x/active_window_watcher_x_observer.h" | 22 #include "ui/base/x/active_window_watcher_x_observer.h" |
23 #endif | 23 #endif |
24 | 24 |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 Profile* focused_profile_; | 229 Profile* focused_profile_; |
230 | 230 |
231 // The currently focused window. We keep this so as to avoid sending multiple | 231 // The currently focused window. We keep this so as to avoid sending multiple |
232 // windows.onFocusChanged events with the same windowId. | 232 // windows.onFocusChanged events with the same windowId. |
233 int focused_window_id_; | 233 int focused_window_id_; |
234 | 234 |
235 DISALLOW_COPY_AND_ASSIGN(ExtensionBrowserEventRouter); | 235 DISALLOW_COPY_AND_ASSIGN(ExtensionBrowserEventRouter); |
236 }; | 236 }; |
237 | 237 |
238 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSER_EVENT_ROUTER_H_ | 238 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSER_EVENT_ROUTER_H_ |
OLD | NEW |