diff options
author | joshia@google.com <joshia@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-29 20:38:24 +0000 |
---|---|---|
committer | joshia@google.com <joshia@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-29 20:38:24 +0000 |
commit | 326d3b7eb07359b5a88619f84286e912d4c6e531 (patch) | |
tree | f77644aae9ae1d6f21b464ce4a8b3dd9aa45e431 /chrome_frame/external_tab.h | |
parent | e0af339c91f198008fb80921a6f63bbea93e312d (diff) | |
download | chromium_src-326d3b7eb07359b5a88619f84286e912d4c6e531.zip chromium_src-326d3b7eb07359b5a88619f84286e912d4c6e531.tar.gz chromium_src-326d3b7eb07359b5a88619f84286e912d4c6e531.tar.bz2 |
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
Diffstat (limited to 'chrome_frame/external_tab.h')
-rw-r--r-- | chrome_frame/external_tab.h | 8 |
1 files changed, 8 insertions, 0 deletions
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<ExternalTabProxy>, 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); |