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

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: Created 8 years, 10 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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 CONTENT_EXPORT static RenderViewImpl* Create( 174 CONTENT_EXPORT static RenderViewImpl* Create(
175 gfx::NativeViewId parent_hwnd, 175 gfx::NativeViewId parent_hwnd,
176 int32 opener_id, 176 int32 opener_id,
177 const content::RendererPreferences& renderer_prefs, 177 const content::RendererPreferences& renderer_prefs,
178 const WebPreferences& webkit_prefs, 178 const WebPreferences& webkit_prefs,
179 SharedRenderViewCounter* counter, 179 SharedRenderViewCounter* counter,
180 int32 routing_id, 180 int32 routing_id,
181 int32 surface_id, 181 int32 surface_id,
182 int64 session_storage_namespace_id, 182 int64 session_storage_namespace_id,
183 const string16& frame_name, 183 const string16& frame_name,
184 int32 next_page_id); 184 int32 next_page_id,
185 const WebKit::WebScreenInfo& screen_info);
185 186
186 // Returns the RenderViewImpl containing the given WebView. 187 // Returns the RenderViewImpl containing the given WebView.
187 CONTENT_EXPORT static RenderViewImpl* FromWebView(WebKit::WebView* webview); 188 CONTENT_EXPORT static RenderViewImpl* FromWebView(WebKit::WebView* webview);
188 189
189 // May return NULL when the view is closing. 190 // May return NULL when the view is closing.
190 CONTENT_EXPORT WebKit::WebView* webview() const; 191 CONTENT_EXPORT WebKit::WebView* webview() const;
191 192
192 // Called by a GraphicsContext associated with this view when swapbuffers 193 // Called by a GraphicsContext associated with this view when swapbuffers
193 // is posted, completes or is aborted. 194 // is posted, completes or is aborted.
194 void OnViewContextSwapBuffersPosted(); 195 void OnViewContextSwapBuffersPosted();
(...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after
701 702
702 RenderViewImpl(gfx::NativeViewId parent_hwnd, 703 RenderViewImpl(gfx::NativeViewId parent_hwnd,
703 int32 opener_id, 704 int32 opener_id,
704 const content::RendererPreferences& renderer_prefs, 705 const content::RendererPreferences& renderer_prefs,
705 const WebPreferences& webkit_prefs, 706 const WebPreferences& webkit_prefs,
706 SharedRenderViewCounter* counter, 707 SharedRenderViewCounter* counter,
707 int32 routing_id, 708 int32 routing_id,
708 int32 surface_id, 709 int32 surface_id,
709 int64 session_storage_namespace_id, 710 int64 session_storage_namespace_id,
710 const string16& frame_name, 711 const string16& frame_name,
711 int32 next_page_id); 712 int32 next_page_id,
713 const WebKit::WebScreenInfo& screen_info);
712 714
713 // Do not delete directly. This class is reference counted. 715 // Do not delete directly. This class is reference counted.
714 virtual ~RenderViewImpl(); 716 virtual ~RenderViewImpl();
715 717
716 void UpdateURL(WebKit::WebFrame* frame); 718 void UpdateURL(WebKit::WebFrame* frame);
717 void UpdateTitle(WebKit::WebFrame* frame, const string16& title, 719 void UpdateTitle(WebKit::WebFrame* frame, const string16& title,
718 WebKit::WebTextDirection title_direction); 720 WebKit::WebTextDirection title_direction);
719 void UpdateSessionHistory(WebKit::WebFrame* frame); 721 void UpdateSessionHistory(WebKit::WebFrame* frame);
720 722
721 // Update current main frame's encoding and send it to browser window. 723 // Update current main frame's encoding and send it to browser window.
(...skipping 538 matching lines...) Expand 10 before | Expand all | Expand 10 after
1260 // bunch of stuff, you should probably create a helper class and put your 1262 // bunch of stuff, you should probably create a helper class and put your
1261 // data and methods on that to avoid bloating RenderView more. You can 1263 // data and methods on that to avoid bloating RenderView more. You can
1262 // use the Observer interface to filter IPC messages and receive frame change 1264 // use the Observer interface to filter IPC messages and receive frame change
1263 // notifications. 1265 // notifications.
1264 // --------------------------------------------------------------------------- 1266 // ---------------------------------------------------------------------------
1265 1267
1266 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); 1268 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl);
1267 }; 1269 };
1268 1270
1269 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ 1271 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698