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

Side by Side Diff: chrome/browser/extensions/extension_browser_event_router.cc

Issue 10544023: Moving the tabs_module API into a separate directory in api/ (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Correcting the order of includes. Created 8 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
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/extension_browser_event_router.h" 5 #include "chrome/browser/extensions/extension_browser_event_router.h"
6 6
7 #include "base/json/json_writer.h" 7 #include "base/json/json_writer.h"
8 #include "base/values.h" 8 #include "base/values.h"
9 #include "chrome/browser/extensions/api/extension_action/extension_page_actions_ api_constants.h" 9 #include "chrome/browser/extensions/api/extension_action/extension_page_actions_ api_constants.h"
10 #include "chrome/browser/extensions/api/tabs/tabs_constants.h"
10 #include "chrome/browser/extensions/extension_event_names.h" 11 #include "chrome/browser/extensions/extension_event_names.h"
11 #include "chrome/browser/extensions/extension_event_router.h" 12 #include "chrome/browser/extensions/extension_event_router.h"
12 #include "chrome/browser/extensions/extension_service.h" 13 #include "chrome/browser/extensions/extension_service.h"
13 #include "chrome/browser/extensions/extension_tab_util.h" 14 #include "chrome/browser/extensions/extension_tab_util.h"
14 #include "chrome/browser/extensions/extension_tabs_module_constants.h"
15 #include "chrome/browser/extensions/extension_window_controller.h" 15 #include "chrome/browser/extensions/extension_window_controller.h"
16 #include "chrome/browser/profiles/profile.h" 16 #include "chrome/browser/profiles/profile.h"
17 #include "chrome/browser/ui/browser.h" 17 #include "chrome/browser/ui/browser.h"
18 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" 18 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
19 #include "chrome/browser/ui/tabs/tab_strip_model.h" 19 #include "chrome/browser/ui/tabs/tab_strip_model.h"
20 #include "chrome/common/chrome_notification_types.h" 20 #include "chrome/common/chrome_notification_types.h"
21 #include "chrome/common/extensions/extension.h" 21 #include "chrome/common/extensions/extension.h"
22 #include "chrome/common/extensions/extension_constants.h" 22 #include "chrome/common/extensions/extension_constants.h"
23 #include "content/public/browser/navigation_controller.h" 23 #include "content/public/browser/navigation_controller.h"
24 #include "content/public/browser/notification_service.h" 24 #include "content/public/browser/notification_service.h"
25 #include "content/public/browser/web_contents.h" 25 #include "content/public/browser/web_contents.h"
26 26
27 #if defined(TOOLKIT_GTK) 27 #if defined(TOOLKIT_GTK)
28 #include "ui/base/x/active_window_watcher_x.h" 28 #include "ui/base/x/active_window_watcher_x.h"
29 #endif 29 #endif
30 30
31 namespace events = extension_event_names; 31 namespace events = extension_event_names;
32 namespace tab_keys = extension_tabs_module_constants; 32 namespace tab_keys = extensions::tabs_constants;
33 namespace page_action_keys = extension_page_actions_api_constants; 33 namespace page_action_keys = extension_page_actions_api_constants;
34 34
35 using content::NavigationController; 35 using content::NavigationController;
36 using content::WebContents; 36 using content::WebContents;
37 37
38 ExtensionBrowserEventRouter::TabEntry::TabEntry() 38 ExtensionBrowserEventRouter::TabEntry::TabEntry()
39 : complete_waiting_on_load_(false), 39 : complete_waiting_on_load_(false),
40 url_() { 40 url_() {
41 } 41 }
42 42
(...skipping 650 matching lines...) Expand 10 before | Expand all | Expand 10 after
693 } 693 }
694 694
695 if (event_name) { 695 if (event_name) {
696 DispatchEventWithTab(profile, 696 DispatchEventWithTab(profile,
697 extension_id, 697 extension_id,
698 event_name, 698 event_name,
699 tab_contents->web_contents(), 699 tab_contents->web_contents(),
700 true); 700 true);
701 } 701 }
702 } 702 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_browser_event_router.h ('k') | chrome/browser/extensions/extension_event_router.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698