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

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

Issue 9302022: WebWidgetClient::screenInfo() no longer does a synchronous IPC. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Refreshed patch to merge with tip of tree Created 8 years, 9 months 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 | Annotate | Revision Log
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 #pragma once 7 #pragma once
8 8
9 #include <deque> 9 #include <deque>
10 #include <map> 10 #include <map>
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 CONTENT_EXPORT static RenderViewImpl* Create( 177 CONTENT_EXPORT static RenderViewImpl* Create(
178 gfx::NativeViewId parent_hwnd, 178 gfx::NativeViewId parent_hwnd,
179 int32 opener_id, 179 int32 opener_id,
180 const content::RendererPreferences& renderer_prefs, 180 const content::RendererPreferences& renderer_prefs,
181 const WebPreferences& webkit_prefs, 181 const WebPreferences& webkit_prefs,
182 SharedRenderViewCounter* counter, 182 SharedRenderViewCounter* counter,
183 int32 routing_id, 183 int32 routing_id,
184 int32 surface_id, 184 int32 surface_id,
185 int64 session_storage_namespace_id, 185 int64 session_storage_namespace_id,
186 const string16& frame_name, 186 const string16& frame_name,
187 int32 next_page_id); 187 int32 next_page_id,
188 const WebKit::WebScreenInfo& screen_info);
188 189
189 // Returns the RenderViewImpl containing the given WebView. 190 // Returns the RenderViewImpl containing the given WebView.
190 CONTENT_EXPORT static RenderViewImpl* FromWebView(WebKit::WebView* webview); 191 CONTENT_EXPORT static RenderViewImpl* FromWebView(WebKit::WebView* webview);
191 192
192 // May return NULL when the view is closing. 193 // May return NULL when the view is closing.
193 CONTENT_EXPORT WebKit::WebView* webview() const; 194 CONTENT_EXPORT WebKit::WebView* webview() const;
194 195
195 // WebGraphicsContext3DSwapBuffersClient implementation. 196 // WebGraphicsContext3DSwapBuffersClient implementation.
196 197
197 // Called by a GraphicsContext associated with this view when swapbuffers 198 // Called by a GraphicsContext associated with this view when swapbuffers
(...skipping 510 matching lines...) Expand 10 before | Expand all | Expand 10 after
708 709
709 RenderViewImpl(gfx::NativeViewId parent_hwnd, 710 RenderViewImpl(gfx::NativeViewId parent_hwnd,
710 int32 opener_id, 711 int32 opener_id,
711 const content::RendererPreferences& renderer_prefs, 712 const content::RendererPreferences& renderer_prefs,
712 const WebPreferences& webkit_prefs, 713 const WebPreferences& webkit_prefs,
713 SharedRenderViewCounter* counter, 714 SharedRenderViewCounter* counter,
714 int32 routing_id, 715 int32 routing_id,
715 int32 surface_id, 716 int32 surface_id,
716 int64 session_storage_namespace_id, 717 int64 session_storage_namespace_id,
717 const string16& frame_name, 718 const string16& frame_name,
718 int32 next_page_id); 719 int32 next_page_id,
720 const WebKit::WebScreenInfo& screen_info);
719 721
720 // Do not delete directly. This class is reference counted. 722 // Do not delete directly. This class is reference counted.
721 virtual ~RenderViewImpl(); 723 virtual ~RenderViewImpl();
722 724
723 void UpdateURL(WebKit::WebFrame* frame); 725 void UpdateURL(WebKit::WebFrame* frame);
724 void UpdateTitle(WebKit::WebFrame* frame, const string16& title, 726 void UpdateTitle(WebKit::WebFrame* frame, const string16& title,
725 WebKit::WebTextDirection title_direction); 727 WebKit::WebTextDirection title_direction);
726 void UpdateSessionHistory(WebKit::WebFrame* frame); 728 void UpdateSessionHistory(WebKit::WebFrame* frame);
727 729
728 // Update current main frame's encoding and send it to browser window. 730 // Update current main frame's encoding and send it to browser window.
(...skipping 554 matching lines...) Expand 10 before | Expand all | Expand 10 after
1283 // bunch of stuff, you should probably create a helper class and put your 1285 // bunch of stuff, you should probably create a helper class and put your
1284 // data and methods on that to avoid bloating RenderView more. You can 1286 // data and methods on that to avoid bloating RenderView more. You can
1285 // use the Observer interface to filter IPC messages and receive frame change 1287 // use the Observer interface to filter IPC messages and receive frame change
1286 // notifications. 1288 // notifications.
1287 // --------------------------------------------------------------------------- 1289 // ---------------------------------------------------------------------------
1288 1290
1289 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); 1291 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl);
1290 }; 1292 };
1291 1293
1292 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ 1294 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698