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

Unified Diff: content/browser/browser_plugin/browser_plugin_guest.h

Issue 529203002: BrowserPlugin: Remove dependency upon ViewHostMsg_UpdateRect (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed unnecessary browsertest (there's a webview resize test) and IPC Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/browser/browser_plugin/browser_plugin_guest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/browser_plugin/browser_plugin_guest.h
diff --git a/content/browser/browser_plugin/browser_plugin_guest.h b/content/browser/browser_plugin/browser_plugin_guest.h
index d9e2f6d4ee2f1ab13b1166b9a8bd2bd32d45179d..06cffd19db9a76c7f57870829ee9582f1676544f 100644
--- a/content/browser/browser_plugin/browser_plugin_guest.h
+++ b/content/browser/browser_plugin/browser_plugin_guest.h
@@ -50,11 +50,15 @@ struct ViewHostMsg_UpdateRect_Params;
namespace blink {
class WebInputEvent;
-}
+} // namespace blink
+
+namespace cc {
+class CompositorFrame;
+} // namespace cc
namespace gfx {
class Range;
-}
+} // namespace gfx
namespace content {
@@ -193,6 +197,11 @@ class CONTENT_EXPORT BrowserPluginGuest : public WebContentsObserver {
void PointerLockPermissionResponse(bool allow);
+ void SwapCompositorFrame(uint32 output_surface_id,
+ int host_process_id,
+ int host_routing_id,
+ scoped_ptr<cc::CompositorFrame> frame);
+
private:
class EmbedderWebContentsObserver;
@@ -317,7 +326,6 @@ class CONTENT_EXPORT BrowserPluginGuest : public WebContentsObserver {
void OnUpdateFrameName(int frame_id,
bool is_top_level,
const std::string& name);
- void OnUpdateRect(const ViewHostMsg_UpdateRect_Params& params);
// Forwards all messages from the |pending_messages_| queue to the embedder.
void SendQueuedMessages();
@@ -351,7 +359,7 @@ class CONTENT_EXPORT BrowserPluginGuest : public WebContentsObserver {
// maintains a JavaScript reference to its opener.
bool has_render_view_;
- // Last seen size of guest contents (by OnUpdateRect).
+ // Last seen size of guest contents (by SwapCompositorFrame).
gfx::Size last_seen_view_size_;
// Last seen size of BrowserPlugin (by OnResizeGuest).
gfx::Size last_seen_browser_plugin_size_;
« no previous file with comments | « no previous file | content/browser/browser_plugin/browser_plugin_guest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698