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

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: 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
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 blink::WebScreenInfo& screen_info,
183 const ViewMsg_Resize_Params* initial_size);
piman 2014/10/29 18:42:57 I have a preference towards always passing a ViewM
mkosiba (inactive) 2014/10/31 14:35:06 The reason I was trying to pass this by pointer is
182 184
183 // Used by content_layouttest_support to hook into the creation of 185 // Used by content_layouttest_support to hook into the creation of
184 // RenderViewImpls. 186 // RenderViewImpls.
185 static void InstallCreateHook( 187 static void InstallCreateHook(
186 RenderViewImpl* (*create_render_view_impl)(RenderViewImplParams*)); 188 RenderViewImpl* (*create_render_view_impl)(RenderViewImplParams*));
187 189
188 // Returns the RenderViewImpl containing the given WebView. 190 // Returns the RenderViewImpl containing the given WebView.
189 static RenderViewImpl* FromWebView(blink::WebView* webview); 191 static RenderViewImpl* FromWebView(blink::WebView* webview);
190 192
191 // Returns the RenderViewImpl for the given routing ID. 193 // 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 1107 // use the Observer interface to filter IPC messages and receive frame change
1106 // notifications. 1108 // notifications.
1107 // --------------------------------------------------------------------------- 1109 // ---------------------------------------------------------------------------
1108 1110
1109 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); 1111 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl);
1110 }; 1112 };
1111 1113
1112 } // namespace content 1114 } // namespace content
1113 1115
1114 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ 1116 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698