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

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: Removed code from one non-essential function that was causing tests to fail. It will be re-added in… 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 c070bc2480f3852ad1c02cb49cbc76f39677c143..adf7ae7a6c726bd9baf48f17291fb53cfdf8dcc5 100644
--- a/extensions/browser/guest_view/guest_view_base.h
+++ b/extensions/browser/guest_view/guest_view_base.h
@@ -269,8 +269,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::WebContents* owner_web_contents,
@@ -283,12 +286,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