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/memory/singleton.h" | 9 #include "base/memory/singleton.h" |
10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
(...skipping 26 matching lines...) Expand all Loading... |
37 #include "content/browser/content_browser_client.h" | 37 #include "content/browser/content_browser_client.h" |
38 #include "content/browser/renderer_host/browser_render_process_host.h" | 38 #include "content/browser/renderer_host/browser_render_process_host.h" |
39 #include "content/browser/renderer_host/render_process_host.h" | 39 #include "content/browser/renderer_host/render_process_host.h" |
40 #include "content/browser/renderer_host/render_view_host.h" | 40 #include "content/browser/renderer_host/render_view_host.h" |
41 #include "content/browser/renderer_host/render_widget_host.h" | 41 #include "content/browser/renderer_host/render_widget_host.h" |
42 #include "content/browser/renderer_host/render_widget_host_view.h" | 42 #include "content/browser/renderer_host/render_widget_host_view.h" |
43 #include "content/browser/site_instance.h" | 43 #include "content/browser/site_instance.h" |
44 #include "content/browser/tab_contents/popup_menu_helper_mac.h" | 44 #include "content/browser/tab_contents/popup_menu_helper_mac.h" |
45 #include "content/browser/tab_contents/tab_contents.h" | 45 #include "content/browser/tab_contents/tab_contents.h" |
46 #include "content/browser/tab_contents/tab_contents_view.h" | 46 #include "content/browser/tab_contents/tab_contents_view.h" |
47 #include "content/common/content_client.h" | |
48 #include "content/common/notification_service.h" | 47 #include "content/common/notification_service.h" |
49 #include "content/common/view_messages.h" | 48 #include "content/common/view_messages.h" |
50 #include "content/public/browser/native_web_keyboard_event.h" | 49 #include "content/public/browser/native_web_keyboard_event.h" |
51 #include "content/public/common/bindings_policy.h" | 50 #include "content/public/common/bindings_policy.h" |
52 #include "grit/browser_resources.h" | 51 #include "grit/browser_resources.h" |
53 #include "grit/chromium_strings.h" | 52 #include "grit/chromium_strings.h" |
54 #include "grit/generated_resources.h" | 53 #include "grit/generated_resources.h" |
55 #include "ui/base/keycodes/keyboard_codes.h" | 54 #include "ui/base/keycodes/keyboard_codes.h" |
56 #include "ui/base/l10n/l10n_util.h" | 55 #include "ui/base/l10n/l10n_util.h" |
57 #include "ui/base/resource/resource_bundle.h" | 56 #include "ui/base/resource/resource_bundle.h" |
(...skipping 754 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
812 void ExtensionHost::RenderViewCreated(RenderViewHost* render_view_host) { | 811 void ExtensionHost::RenderViewCreated(RenderViewHost* render_view_host) { |
813 if (view_.get()) | 812 if (view_.get()) |
814 view_->RenderViewCreated(); | 813 view_->RenderViewCreated(); |
815 | 814 |
816 if (extension_host_type_ == chrome::VIEW_TYPE_EXTENSION_POPUP || | 815 if (extension_host_type_ == chrome::VIEW_TYPE_EXTENSION_POPUP || |
817 extension_host_type_ == chrome::VIEW_TYPE_EXTENSION_INFOBAR) { | 816 extension_host_type_ == chrome::VIEW_TYPE_EXTENSION_INFOBAR) { |
818 render_view_host->EnablePreferredSizeMode( | 817 render_view_host->EnablePreferredSizeMode( |
819 kPreferredSizeWidth | kPreferredSizeHeightThisIsSlow); | 818 kPreferredSizeWidth | kPreferredSizeHeightThisIsSlow); |
820 } | 819 } |
821 } | 820 } |
OLD | NEW |