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

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

Issue 10965048: [BrowserTag] Send dib info with NavigateGuest message, (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync @tott, correct rebase, bring back two lost comments from previous rounds Created 8 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_embedder.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_embedder.h
diff --git a/content/browser/browser_plugin/browser_plugin_embedder.h b/content/browser/browser_plugin/browser_plugin_embedder.h
index dd4a2f36d617a182c9216df85b2748d6a6a996aa..44e86c10a84cbe462fbd0615b96742f91cfd981e 100644
--- a/content/browser/browser_plugin/browser_plugin_embedder.h
+++ b/content/browser/browser_plugin/browser_plugin_embedder.h
@@ -26,9 +26,10 @@
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
#include "content/public/browser/web_contents_observer.h"
+#include "ui/surface/transport_dib.h"
-class TransportDIB;
class WebContentsImpl;
+struct BrowserPluginHostMsg_ResizeGuest_Params;
namespace WebKit {
class WebInputEvent;
@@ -62,10 +63,16 @@ class CONTENT_EXPORT BrowserPluginEmbedder : public WebContentsObserver,
RenderViewHost* render_view_host);
// Navigates in a guest (new or existing).
- void NavigateGuest(RenderViewHost* render_view_host,
- int instance_id,
- const std::string& src,
- const gfx::Size& size);
+ void NavigateGuest(
+ RenderViewHost* render_view_host,
+ int instance_id,
+ const std::string& src,
+ const BrowserPluginHostMsg_ResizeGuest_Params& resize_params);
+
+ void ResizeGuest(RenderViewHost* render_view_host,
+ int instance_id,
+ const BrowserPluginHostMsg_ResizeGuest_Params& params);
+
void Go(int instance_id, int relative_index);
void Stop(int instance_id);
void Reload(int instance_id);
@@ -83,15 +90,6 @@ class CONTENT_EXPORT BrowserPluginEmbedder : public WebContentsObserver,
// Routes update rect ack message to the appropriate guest.
void UpdateRectACK(int instance_id, int message_id, const gfx::Size& size);
void SetFocus(int instance_id, bool focused);
- void ResizeGuest(int instance_id,
- TransportDIB* damage_buffer,
-#if defined(OS_WIN)
- int damage_buffer_size,
-#endif
- int width,
- int height,
- bool resize_pending,
- float scale_factor);
// Handles input events sent from the BrowserPlugin (embedder's renderer
// process) by passing them to appropriate guest's input handler.
void HandleInputEvent(int instance_id,
@@ -121,6 +119,11 @@ class CONTENT_EXPORT BrowserPluginEmbedder : public WebContentsObserver,
void DestroyGuestByInstanceID(int instance_id);
void DestroyGuests();
+ // Returns the transport DIB associated with the dib in resize |params|.
+ TransportDIB* GetDamageBuffer(
+ RenderViewHost* render_view_host,
+ const BrowserPluginHostMsg_ResizeGuest_Params& params);
+
// Called when visiblity of web_contents changes, so the embedder will
// show/hide its guest.
void WebContentsVisibilityChanged(bool visible);
« no previous file with comments | « no previous file | content/browser/browser_plugin/browser_plugin_embedder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698