OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/keyboard_codes.h" | 9 #include "app/keyboard_codes.h" |
10 #include "app/l10n_util.h" | 10 #include "app/l10n_util.h" |
(...skipping 25 matching lines...) Expand all Loading... |
36 #include "chrome/browser/tab_contents/tab_contents.h" | 36 #include "chrome/browser/tab_contents/tab_contents.h" |
37 #include "chrome/browser/tab_contents/tab_contents_view.h" | 37 #include "chrome/browser/tab_contents/tab_contents_view.h" |
38 #include "chrome/browser/themes/browser_theme_provider.h" | 38 #include "chrome/browser/themes/browser_theme_provider.h" |
39 #include "chrome/browser/ui/app_modal_dialogs/message_box_handler.h" | 39 #include "chrome/browser/ui/app_modal_dialogs/message_box_handler.h" |
40 #include "chrome/browser/ui/browser.h" | 40 #include "chrome/browser/ui/browser.h" |
41 #include "chrome/common/bindings_policy.h" | 41 #include "chrome/common/bindings_policy.h" |
42 #include "chrome/common/extensions/extension.h" | 42 #include "chrome/common/extensions/extension.h" |
43 #include "chrome/common/extensions/extension_constants.h" | 43 #include "chrome/common/extensions/extension_constants.h" |
44 #include "chrome/common/native_web_keyboard_event.h" | 44 #include "chrome/common/native_web_keyboard_event.h" |
45 #include "chrome/common/notification_service.h" | 45 #include "chrome/common/notification_service.h" |
46 #include "chrome/common/pref_names.h" | |
47 #include "chrome/common/render_messages.h" | 46 #include "chrome/common/render_messages.h" |
48 #include "chrome/common/render_messages_params.h" | 47 #include "chrome/common/render_messages_params.h" |
49 #include "chrome/common/url_constants.h" | 48 #include "chrome/common/url_constants.h" |
50 #include "chrome/common/view_types.h" | 49 #include "chrome/common/view_types.h" |
51 #include "grit/browser_resources.h" | 50 #include "grit/browser_resources.h" |
52 #include "grit/generated_resources.h" | 51 #include "grit/generated_resources.h" |
53 #include "webkit/glue/context_menu.h" | 52 #include "webkit/glue/context_menu.h" |
54 | 53 |
55 #if defined(TOOLKIT_VIEWS) | 54 #if defined(TOOLKIT_VIEWS) |
56 #include "views/widget/widget.h" | 55 #include "views/widget/widget.h" |
(...skipping 737 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
794 // Extensions hosted in ExternalTabContainer objects may not have | 793 // Extensions hosted in ExternalTabContainer objects may not have |
795 // an associated browser. | 794 // an associated browser. |
796 Browser* browser = GetBrowser(); | 795 Browser* browser = GetBrowser(); |
797 if (browser) | 796 if (browser) |
798 window_id = ExtensionTabUtil::GetWindowId(browser); | 797 window_id = ExtensionTabUtil::GetWindowId(browser); |
799 } else if (extension_host_type_ != ViewType::EXTENSION_BACKGROUND_PAGE) { | 798 } else if (extension_host_type_ != ViewType::EXTENSION_BACKGROUND_PAGE) { |
800 NOTREACHED(); | 799 NOTREACHED(); |
801 } | 800 } |
802 return window_id; | 801 return window_id; |
803 } | 802 } |
OLD | NEW |