| 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/l10n_util.h" | 9 #include "app/l10n_util.h" |
| 10 #include "app/resource_bundle.h" | |
| 11 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
| 12 #include "base/singleton.h" | 11 #include "base/singleton.h" |
| 13 #include "base/metrics/histogram.h" | 12 #include "base/metrics/histogram.h" |
| 14 #include "base/string_util.h" | 13 #include "base/string_util.h" |
| 15 #include "chrome/browser/browser_list.h" | 14 #include "chrome/browser/browser_list.h" |
| 16 #include "chrome/browser/browser_shutdown.h" | 15 #include "chrome/browser/browser_shutdown.h" |
| 17 #include "chrome/browser/browser_window.h" | 16 #include "chrome/browser/browser_window.h" |
| 18 #include "chrome/browser/browsing_instance.h" | 17 #include "chrome/browser/browsing_instance.h" |
| 19 #include "chrome/browser/debugger/devtools_manager.h" | 18 #include "chrome/browser/debugger/devtools_manager.h" |
| 20 #include "chrome/browser/dom_ui/dom_ui_factory.h" | 19 #include "chrome/browser/dom_ui/dom_ui_factory.h" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 41 #include "chrome/common/extensions/extension_constants.h" | 40 #include "chrome/common/extensions/extension_constants.h" |
| 42 #include "chrome/common/native_web_keyboard_event.h" | 41 #include "chrome/common/native_web_keyboard_event.h" |
| 43 #include "chrome/common/notification_service.h" | 42 #include "chrome/common/notification_service.h" |
| 44 #include "chrome/common/render_messages.h" | 43 #include "chrome/common/render_messages.h" |
| 45 #include "chrome/common/render_messages_params.h" | 44 #include "chrome/common/render_messages_params.h" |
| 46 #include "chrome/common/url_constants.h" | 45 #include "chrome/common/url_constants.h" |
| 47 #include "chrome/common/view_types.h" | 46 #include "chrome/common/view_types.h" |
| 48 #include "grit/browser_resources.h" | 47 #include "grit/browser_resources.h" |
| 49 #include "grit/generated_resources.h" | 48 #include "grit/generated_resources.h" |
| 50 #include "ui/base/keycodes/keyboard_codes.h" | 49 #include "ui/base/keycodes/keyboard_codes.h" |
| 50 #include "ui/base/resource/resource_bundle.h" |
| 51 #include "webkit/glue/context_menu.h" | 51 #include "webkit/glue/context_menu.h" |
| 52 | 52 |
| 53 #if defined(TOOLKIT_VIEWS) | 53 #if defined(TOOLKIT_VIEWS) |
| 54 #include "views/widget/widget.h" | 54 #include "views/widget/widget.h" |
| 55 #endif | 55 #endif |
| 56 | 56 |
| 57 using WebKit::WebDragOperation; | 57 using WebKit::WebDragOperation; |
| 58 using WebKit::WebDragOperationsMask; | 58 using WebKit::WebDragOperationsMask; |
| 59 | 59 |
| 60 // static | 60 // static |
| (...skipping 731 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 792 // Extensions hosted in ExternalTabContainer objects may not have | 792 // Extensions hosted in ExternalTabContainer objects may not have |
| 793 // an associated browser. | 793 // an associated browser. |
| 794 Browser* browser = GetBrowser(); | 794 Browser* browser = GetBrowser(); |
| 795 if (browser) | 795 if (browser) |
| 796 window_id = ExtensionTabUtil::GetWindowId(browser); | 796 window_id = ExtensionTabUtil::GetWindowId(browser); |
| 797 } else if (extension_host_type_ != ViewType::EXTENSION_BACKGROUND_PAGE) { | 797 } else if (extension_host_type_ != ViewType::EXTENSION_BACKGROUND_PAGE) { |
| 798 NOTREACHED(); | 798 NOTREACHED(); |
| 799 } | 799 } |
| 800 return window_id; | 800 return window_id; |
| 801 } | 801 } |
| OLD | NEW |