From 326d3b7eb07359b5a88619f84286e912d4c6e531 Mon Sep 17 00:00:00 2001 From: "joshia@google.com" Date: Tue, 29 Mar 2011 20:38:24 +0000 Subject: Chrome frame support for resizing popup windows Add necesssary plumbing for window.resizeTo to work within Chrome Frame. BUG=76649 TEST=create a popup window using window.open and resize it using window.resizeTo. Sample test page is here: http://testopenpopup.comuf.com/popUp.html Review URL: http://codereview.chromium.org/6748010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79737 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome_frame/external_tab.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'chrome_frame/external_tab.h') diff --git a/chrome_frame/external_tab.h b/chrome_frame/external_tab.h index 699b3a2..027f17f 100644 --- a/chrome_frame/external_tab.h +++ b/chrome_frame/external_tab.h @@ -33,6 +33,11 @@ struct NavigationInfo; struct MiniContextMenuParams; } +namespace gfx { +class Rect; +} + + // This is the delegate/callback interface that has to be implemented // by the customers of ExternalTabProxy class. class UIDelegate { @@ -43,6 +48,8 @@ class UIDelegate { virtual void OnExtensionInstalled(const FilePath& path, void* user_data, AutomationMsg_ExtensionResponseValues response) = 0; virtual void OnLoad(const GURL& url) = 0; + virtual void OnMoveWindow(const gfx::Rect& pos) = 0; + virtual void OnMessageFromChromeFrame( const std::string& message, const std::string& origin, const std::string& target) = 0; @@ -163,6 +170,7 @@ class ExternalTabProxy : public CWindowImpl, virtual void OnNavigationFailed(int error_code, const GURL& gurl); virtual void OnDidNavigate(const NavigationInfo& navigation_info); virtual void OnTabLoaded(const GURL& url); + virtual void OnMoveWindow(const gfx::Rect& pos); virtual void OnOpenURL(const GURL& url_to_open, const GURL& referrer, int open_disposition); -- cgit v1.1