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

Unified Diff: extensions/browser/guest_view/guest_view_base.h

Issue 856563002: Added the infrastructure for surfaceProxy.onResize() and SurfaceView.onResize() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments. Added a bit more infrastructure than in the previous patch. Created 5 years, 11 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
Index: extensions/browser/guest_view/guest_view_base.h
diff --git a/extensions/browser/guest_view/guest_view_base.h b/extensions/browser/guest_view/guest_view_base.h
index b6984f824dfa2c72551c6b6905f716ede8d8e707..cc5d97df6439b1f33bd4065829e73ab25aea0223 100644
--- a/extensions/browser/guest_view/guest_view_base.h
+++ b/extensions/browser/guest_view/guest_view_base.h
@@ -272,8 +272,11 @@ class GuestViewBase : public content::BrowserPluginGuestDelegate,
void OnZoomChanged(
const ui_zoom::ZoomController::ZoomChangedEventData& data) override;
- // Dispatches an event |event_name| to the embedder with the |event| fields.
- void DispatchEventToEmbedder(Event* event);
+ // Dispatches an event to the guest proxy.
+ void DispatchEventToGuestProxy(Event* event);
+
+ // Dispatches an event to the view.
+ void DispatchEventToView(Event* event);
protected:
GuestViewBase(content::BrowserContext* browser_context,
@@ -287,12 +290,18 @@ class GuestViewBase : public content::BrowserPluginGuestDelegate,
class OpenerLifetimeObserver;
+ void DispatchEvent(Event* event, int instance_id);
+
void SendQueuedEvents();
void CompleteInit(scoped_ptr<base::DictionaryValue> create_params,
const WebContentsCreatedCallback& callback,
content::WebContents* guest_web_contents);
+ // Dispatches the onResize event to the embedder.
+ void DispatchOnResizeEvent(const gfx::Size& old_size,
+ const gfx::Size& new_size);
+
void SetUpAutoSize(const base::DictionaryValue& params);
void StartTrackingEmbedderZoomLevel();

Powered by Google App Engine
This is Rietveld 408576698