OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/memory/singleton.h" | 10 #include "base/memory/singleton.h" |
(...skipping 18 matching lines...) Expand all Loading... |
29 #include "chrome/browser/ui/webui/chrome_web_ui_factory.h" | 29 #include "chrome/browser/ui/webui/chrome_web_ui_factory.h" |
30 #include "chrome/common/chrome_constants.h" | 30 #include "chrome/common/chrome_constants.h" |
31 #include "chrome/common/chrome_notification_types.h" | 31 #include "chrome/common/chrome_notification_types.h" |
32 #include "chrome/common/extensions/extension.h" | 32 #include "chrome/common/extensions/extension.h" |
33 #include "chrome/common/extensions/extension_constants.h" | 33 #include "chrome/common/extensions/extension_constants.h" |
34 #include "chrome/common/extensions/extension_messages.h" | 34 #include "chrome/common/extensions/extension_messages.h" |
35 #include "chrome/common/render_messages.h" | 35 #include "chrome/common/render_messages.h" |
36 #include "chrome/common/url_constants.h" | 36 #include "chrome/common/url_constants.h" |
37 #include "chrome/common/chrome_view_types.h" | 37 #include "chrome/common/chrome_view_types.h" |
38 #include "content/browser/browsing_instance.h" | 38 #include "content/browser/browsing_instance.h" |
39 #include "content/browser/content_browser_client.h" | |
40 #include "content/browser/renderer_host/browser_render_process_host.h" | 39 #include "content/browser/renderer_host/browser_render_process_host.h" |
41 #include "content/browser/renderer_host/render_process_host.h" | 40 #include "content/browser/renderer_host/render_process_host.h" |
42 #include "content/browser/renderer_host/render_view_host.h" | 41 #include "content/browser/renderer_host/render_view_host.h" |
43 #include "content/browser/renderer_host/render_widget_host.h" | 42 #include "content/browser/renderer_host/render_widget_host.h" |
44 #include "content/browser/renderer_host/render_widget_host_view.h" | 43 #include "content/browser/renderer_host/render_widget_host_view.h" |
45 #include "content/browser/site_instance.h" | 44 #include "content/browser/site_instance.h" |
46 #include "content/browser/tab_contents/popup_menu_helper_mac.h" | 45 #include "content/browser/tab_contents/popup_menu_helper_mac.h" |
47 #include "content/browser/tab_contents/tab_contents.h" | 46 #include "content/browser/tab_contents/tab_contents.h" |
48 #include "content/browser/tab_contents/tab_contents_view.h" | 47 #include "content/browser/tab_contents/tab_contents_view.h" |
49 #include "content/common/notification_service.h" | 48 #include "content/common/notification_service.h" |
50 #include "content/common/view_messages.h" | 49 #include "content/common/view_messages.h" |
| 50 #include "content/public/browser/content_browser_client.h" |
51 #include "content/public/browser/native_web_keyboard_event.h" | 51 #include "content/public/browser/native_web_keyboard_event.h" |
52 #include "content/public/common/bindings_policy.h" | 52 #include "content/public/common/bindings_policy.h" |
53 #include "grit/browser_resources.h" | 53 #include "grit/browser_resources.h" |
54 #include "grit/chromium_strings.h" | 54 #include "grit/chromium_strings.h" |
55 #include "grit/generated_resources.h" | 55 #include "grit/generated_resources.h" |
56 #include "ui/base/keycodes/keyboard_codes.h" | 56 #include "ui/base/keycodes/keyboard_codes.h" |
57 #include "ui/base/l10n/l10n_util.h" | 57 #include "ui/base/l10n/l10n_util.h" |
58 #include "ui/base/resource/resource_bundle.h" | 58 #include "ui/base/resource/resource_bundle.h" |
59 #include "webkit/glue/context_menu.h" | 59 #include "webkit/glue/context_menu.h" |
60 | 60 |
(...skipping 752 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
813 void ExtensionHost::RenderViewCreated(RenderViewHost* render_view_host) { | 813 void ExtensionHost::RenderViewCreated(RenderViewHost* render_view_host) { |
814 if (view_.get()) | 814 if (view_.get()) |
815 view_->RenderViewCreated(); | 815 view_->RenderViewCreated(); |
816 | 816 |
817 if (extension_host_type_ == chrome::VIEW_TYPE_EXTENSION_POPUP || | 817 if (extension_host_type_ == chrome::VIEW_TYPE_EXTENSION_POPUP || |
818 extension_host_type_ == chrome::VIEW_TYPE_EXTENSION_INFOBAR) { | 818 extension_host_type_ == chrome::VIEW_TYPE_EXTENSION_INFOBAR) { |
819 render_view_host->EnablePreferredSizeMode( | 819 render_view_host->EnablePreferredSizeMode( |
820 kPreferredSizeWidth | kPreferredSizeHeightThisIsSlow); | 820 kPreferredSizeWidth | kPreferredSizeHeightThisIsSlow); |
821 } | 821 } |
822 } | 822 } |
OLD | NEW |