Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(809)

Side by Side Diff: content/renderer/render_view_impl.h

Issue 659093002: Pass the size to the RenderView on creation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@java_enum
Patch Set: fix autoresize for guestview/extensions Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/renderer/render_view_browsertest.cc ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #ifndef CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ 6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 // root. VS warns when we inherit the WebWidgetClient method implementations 71 // root. VS warns when we inherit the WebWidgetClient method implementations
72 // from RenderWidget. It's safe to ignore that warning. 72 // from RenderWidget. It's safe to ignore that warning.
73 #pragma warning(disable: 4250) 73 #pragma warning(disable: 4250)
74 #endif 74 #endif
75 75
76 class PepperDeviceTest; 76 class PepperDeviceTest;
77 class SkBitmap; 77 class SkBitmap;
78 struct PP_NetAddress_Private; 78 struct PP_NetAddress_Private;
79 struct FrameMsg_Navigate_Params; 79 struct FrameMsg_Navigate_Params;
80 struct ViewMsg_PostMessage_Params; 80 struct ViewMsg_PostMessage_Params;
81 struct ViewMsg_Resize_Params;
81 struct ViewMsg_StopFinding_Params; 82 struct ViewMsg_StopFinding_Params;
82 83
83 namespace base { 84 namespace base {
84 class CommandLine; 85 class CommandLine;
85 } 86 }
86 87
87 namespace blink { 88 namespace blink {
88 class WebApplicationCacheHost; 89 class WebApplicationCacheHost;
89 class WebApplicationCacheHostClient; 90 class WebApplicationCacheHostClient;
90 class WebDOMMessageEvent; 91 class WebDOMMessageEvent;
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 int32 main_frame_routing_id, 172 int32 main_frame_routing_id,
172 int32 surface_id, 173 int32 surface_id,
173 int64 session_storage_namespace_id, 174 int64 session_storage_namespace_id,
174 const base::string16& frame_name, 175 const base::string16& frame_name,
175 bool is_renderer_created, 176 bool is_renderer_created,
176 bool swapped_out, 177 bool swapped_out,
177 int32 proxy_routing_id, 178 int32 proxy_routing_id,
178 bool hidden, 179 bool hidden,
179 bool never_visible, 180 bool never_visible,
180 int32 next_page_id, 181 int32 next_page_id,
181 const blink::WebScreenInfo& screen_info); 182 const ViewMsg_Resize_Params& initial_size,
183 bool enable_auto_resize,
184 const gfx::Size& min_size,
185 const gfx::Size& max_size);
182 186
183 // Used by content_layouttest_support to hook into the creation of 187 // Used by content_layouttest_support to hook into the creation of
184 // RenderViewImpls. 188 // RenderViewImpls.
185 static void InstallCreateHook( 189 static void InstallCreateHook(
186 RenderViewImpl* (*create_render_view_impl)(RenderViewImplParams*)); 190 RenderViewImpl* (*create_render_view_impl)(RenderViewImplParams*));
187 191
188 // Returns the RenderViewImpl containing the given WebView. 192 // Returns the RenderViewImpl containing the given WebView.
189 static RenderViewImpl* FromWebView(blink::WebView* webview); 193 static RenderViewImpl* FromWebView(blink::WebView* webview);
190 194
191 // Returns the RenderViewImpl for the given routing ID. 195 // Returns the RenderViewImpl for the given routing ID.
(...skipping 913 matching lines...) Expand 10 before | Expand all | Expand 10 after
1105 // use the Observer interface to filter IPC messages and receive frame change 1109 // use the Observer interface to filter IPC messages and receive frame change
1106 // notifications. 1110 // notifications.
1107 // --------------------------------------------------------------------------- 1111 // ---------------------------------------------------------------------------
1108 1112
1109 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); 1113 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl);
1110 }; 1114 };
1111 1115
1112 } // namespace content 1116 } // namespace content
1113 1117
1114 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ 1118 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/render_view_browsertest.cc ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698