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

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

Issue 342116: Attempt 2 at:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 1 month 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) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2009 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_host.h" 5 #include "chrome/browser/extensions/extension_host.h"
6 6
7 #include <list> 7 #include <list>
8 8
9 #include "app/resource_bundle.h" 9 #include "app/resource_bundle.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
11 #include "base/singleton.h" 11 #include "base/singleton.h"
12 #include "base/string_util.h" 12 #include "base/string_util.h"
13 #include "chrome/browser/browser.h" 13 #include "chrome/browser/browser.h"
14 #include "chrome/browser/browser_list.h" 14 #include "chrome/browser/browser_list.h"
15 #include "chrome/browser/browser_theme_provider.h" 15 #include "chrome/browser/browser_theme_provider.h"
16 #include "chrome/browser/browsing_instance.h" 16 #include "chrome/browser/browsing_instance.h"
17 #include "chrome/browser/debugger/devtools_manager.h" 17 #include "chrome/browser/debugger/devtools_manager.h"
18 #include "chrome/browser/dom_ui/dom_ui_factory.h" 18 #include "chrome/browser/dom_ui/dom_ui_factory.h"
19 #include "chrome/browser/extensions/extension_message_service.h" 19 #include "chrome/browser/extensions/extension_message_service.h"
20 #include "chrome/browser/extensions/extension_tabs_module.h" 20 #include "chrome/browser/extensions/extension_tabs_module.h"
21 #include "chrome/browser/extensions/extension_popup_api.h" 21 #include "chrome/browser/extensions/extension_popup_api.h"
22 #include "chrome/browser/profile.h" 22 #include "chrome/browser/profile.h"
23 #include "chrome/browser/renderer_host/render_view_host.h" 23 #include "chrome/browser/renderer_host/render_view_host.h"
24 #include "chrome/browser/renderer_host/render_process_host.h" 24 #include "chrome/browser/renderer_host/render_process_host.h"
25 #include "chrome/browser/renderer_host/render_widget_host.h" 25 #include "chrome/browser/renderer_host/render_widget_host.h"
26 #include "chrome/browser/renderer_host/render_widget_host_view.h" 26 #include "chrome/browser/renderer_host/render_widget_host_view.h"
27 #include "chrome/browser/renderer_host/site_instance.h" 27 #include "chrome/browser/renderer_host/site_instance.h"
28 #if defined(TOOLKIT_VIEWS)
29 #include "chrome/browser/views/extensions/extension_popup.h"
30 #endif
31 #include "chrome/common/bindings_policy.h" 28 #include "chrome/common/bindings_policy.h"
32 #include "chrome/common/extensions/extension.h" 29 #include "chrome/common/extensions/extension.h"
33 #include "chrome/common/notification_service.h" 30 #include "chrome/common/notification_service.h"
34 #include "chrome/common/pref_names.h" 31 #include "chrome/common/pref_names.h"
35 #include "chrome/common/pref_service.h" 32 #include "chrome/common/pref_service.h"
36 #include "chrome/common/view_types.h" 33 #include "chrome/common/view_types.h"
37 #include "chrome/common/render_messages.h" 34 #include "chrome/common/render_messages.h"
38 #include "chrome/common/url_constants.h" 35 #include "chrome/common/url_constants.h"
39 #include "grit/browser_resources.h" 36 #include "grit/browser_resources.h"
37 #include "webkit/glue/context_menu.h"
38
39 #if defined(TOOLKIT_VIEWS)
40 #include "chrome/browser/views/extensions/extension_popup.h"
40 #include "views/widget/widget.h" 41 #include "views/widget/widget.h"
41 #include "webkit/glue/context_menu.h" 42 #endif
42 43
43 using WebKit::WebDragOperation; 44 using WebKit::WebDragOperation;
44 using WebKit::WebDragOperationsMask; 45 using WebKit::WebDragOperationsMask;
45 46
46 // static 47 // static
47 bool ExtensionHost::enable_dom_automation_ = false; 48 bool ExtensionHost::enable_dom_automation_ = false;
48 49
49 static const char* kToolstripTextColorSubstitution = "$TEXT_COLOR$"; 50 static const char* kToolstripTextColorSubstitution = "$TEXT_COLOR$";
50 51
51 // Helper class that rate-limits the creation of renderer processes for 52 // Helper class that rate-limits the creation of renderer processes for
(...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after
576 window_id = ExtensionTabUtil::GetWindowId( 577 window_id = ExtensionTabUtil::GetWindowId(
577 const_cast<ExtensionHost* >(this)->GetBrowser()); 578 const_cast<ExtensionHost* >(this)->GetBrowser());
578 } else if (extension_host_type_ == ViewType::EXTENSION_BACKGROUND_PAGE) { 579 } else if (extension_host_type_ == ViewType::EXTENSION_BACKGROUND_PAGE) {
579 // Background page is not attached to any browser window, so pass -1. 580 // Background page is not attached to any browser window, so pass -1.
580 window_id = -1; 581 window_id = -1;
581 } else { 582 } else {
582 NOTREACHED(); 583 NOTREACHED();
583 } 584 }
584 return window_id; 585 return window_id;
585 } 586 }
OLDNEW
« no previous file with comments | « chrome/browser/dock_info_win.cc ('k') | chrome/browser/views/autocomplete/autocomplete_popup_contents_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698