OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "content/browser/web_contents/web_contents_impl.h" | 5 #include "content/browser/web_contents/web_contents_impl.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/debug/trace_event.h" | 10 #include "base/debug/trace_event.h" |
(...skipping 22 matching lines...) Expand all Loading... |
33 #include "content/browser/frame_host/navigation_entry_impl.h" | 33 #include "content/browser/frame_host/navigation_entry_impl.h" |
34 #include "content/browser/frame_host/navigator_impl.h" | 34 #include "content/browser/frame_host/navigator_impl.h" |
35 #include "content/browser/frame_host/render_frame_host_impl.h" | 35 #include "content/browser/frame_host/render_frame_host_impl.h" |
36 #include "content/browser/frame_host/render_widget_host_view_child_frame.h" | 36 #include "content/browser/frame_host/render_widget_host_view_child_frame.h" |
37 #include "content/browser/host_zoom_map_impl.h" | 37 #include "content/browser/host_zoom_map_impl.h" |
38 #include "content/browser/loader/resource_dispatcher_host_impl.h" | 38 #include "content/browser/loader/resource_dispatcher_host_impl.h" |
39 #include "content/browser/message_port_message_filter.h" | 39 #include "content/browser/message_port_message_filter.h" |
40 #include "content/browser/message_port_service.h" | 40 #include "content/browser/message_port_service.h" |
41 #include "content/browser/power_save_blocker_impl.h" | 41 #include "content/browser/power_save_blocker_impl.h" |
42 #include "content/browser/renderer_host/render_process_host_impl.h" | 42 #include "content/browser/renderer_host/render_process_host_impl.h" |
| 43 #include "content/browser/renderer_host/render_view_host_delegate_view.h" |
43 #include "content/browser/renderer_host/render_view_host_impl.h" | 44 #include "content/browser/renderer_host/render_view_host_impl.h" |
44 #include "content/browser/renderer_host/render_widget_host_impl.h" | 45 #include "content/browser/renderer_host/render_widget_host_impl.h" |
45 #include "content/browser/renderer_host/render_widget_host_view_base.h" | 46 #include "content/browser/renderer_host/render_widget_host_view_base.h" |
46 #include "content/browser/site_instance_impl.h" | 47 #include "content/browser/site_instance_impl.h" |
47 #include "content/browser/web_contents/web_contents_view_guest.h" | 48 #include "content/browser/web_contents/web_contents_view_guest.h" |
48 #include "content/browser/webui/generic_handler.h" | 49 #include "content/browser/webui/generic_handler.h" |
49 #include "content/browser/webui/web_ui_controller_factory_registry.h" | 50 #include "content/browser/webui/web_ui_controller_factory_registry.h" |
50 #include "content/browser/webui/web_ui_impl.h" | 51 #include "content/browser/webui/web_ui_impl.h" |
51 #include "content/common/browser_plugin/browser_plugin_constants.h" | 52 #include "content/common/browser_plugin/browser_plugin_constants.h" |
52 #include "content/common/browser_plugin/browser_plugin_messages.h" | 53 #include "content/common/browser_plugin/browser_plugin_messages.h" |
53 #include "content/common/frame_messages.h" | 54 #include "content/common/frame_messages.h" |
54 #include "content/common/image_messages.h" | 55 #include "content/common/image_messages.h" |
55 #include "content/common/input_messages.h" | 56 #include "content/common/input_messages.h" |
56 #include "content/common/ssl_status_serialization.h" | 57 #include "content/common/ssl_status_serialization.h" |
57 #include "content/common/view_messages.h" | 58 #include "content/common/view_messages.h" |
58 #include "content/port/browser/render_view_host_delegate_view.h" | |
59 #include "content/public/browser/ax_event_notification_details.h" | 59 #include "content/public/browser/ax_event_notification_details.h" |
60 #include "content/public/browser/browser_context.h" | 60 #include "content/public/browser/browser_context.h" |
61 #include "content/public/browser/content_browser_client.h" | 61 #include "content/public/browser/content_browser_client.h" |
62 #include "content/public/browser/devtools_agent_host.h" | 62 #include "content/public/browser/devtools_agent_host.h" |
63 #include "content/public/browser/download_manager.h" | 63 #include "content/public/browser/download_manager.h" |
64 #include "content/public/browser/download_url_parameters.h" | 64 #include "content/public/browser/download_url_parameters.h" |
65 #include "content/public/browser/invalidate_type.h" | 65 #include "content/public/browser/invalidate_type.h" |
66 #include "content/public/browser/javascript_dialog_manager.h" | 66 #include "content/public/browser/javascript_dialog_manager.h" |
67 #include "content/public/browser/load_from_memory_cache_details.h" | 67 #include "content/public/browser/load_from_memory_cache_details.h" |
68 #include "content/public/browser/load_notification_details.h" | 68 #include "content/public/browser/load_notification_details.h" |
(...skipping 3918 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3987 | 3987 |
3988 void WebContentsImpl::OnPreferredSizeChanged(const gfx::Size& old_size) { | 3988 void WebContentsImpl::OnPreferredSizeChanged(const gfx::Size& old_size) { |
3989 if (!delegate_) | 3989 if (!delegate_) |
3990 return; | 3990 return; |
3991 const gfx::Size new_size = GetPreferredSize(); | 3991 const gfx::Size new_size = GetPreferredSize(); |
3992 if (new_size != old_size) | 3992 if (new_size != old_size) |
3993 delegate_->UpdatePreferredSize(this, new_size); | 3993 delegate_->UpdatePreferredSize(this, new_size); |
3994 } | 3994 } |
3995 | 3995 |
3996 } // namespace content | 3996 } // namespace content |
OLD | NEW |