summaryrefslogtreecommitdiffstats
path: root/ceee/ie/plugin/bho/infobar_window.h
diff options
context:
space:
mode:
authormad@google.com <mad@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-17 17:50:11 +0000
committermad@google.com <mad@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-17 17:50:11 +0000
commita66464ec0d01381ed75f8514076c75c8d30d9ddd (patch)
tree35160e2cd62c73ee9441e8cbbed53726472e24f2 /ceee/ie/plugin/bho/infobar_window.h
parentf65e1af922ff4178abcc0566be137c23793bd9c3 (diff)
downloadchromium_src-a66464ec0d01381ed75f8514076c75c8d30d9ddd.zip
chromium_src-a66464ec0d01381ed75f8514076c75c8d30d9ddd.tar.gz
chromium_src-a66464ec0d01381ed75f8514076c75c8d30d9ddd.tar.bz2
Committing for Vadim:
http://codereview.chromium.org/4991002/ New unittests for infobar. BUG=None TEST=None git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66459 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ceee/ie/plugin/bho/infobar_window.h')
-rw-r--r--ceee/ie/plugin/bho/infobar_window.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/ceee/ie/plugin/bho/infobar_window.h b/ceee/ie/plugin/bho/infobar_window.h
index 6b373b06..9d8aa5c 100644
--- a/ceee/ie/plugin/bho/infobar_window.h
+++ b/ceee/ie/plugin/bho/infobar_window.h
@@ -55,13 +55,13 @@ class InfobarWindow : public InfobarBrowserWindow::Delegate,
// max_height if the content is too high; no limit if max_height is set to
// 0).
// slide indicates whether to show sliding effect.
- HRESULT Show(int max_height, bool slide);
+ virtual HRESULT Show(int max_height, bool slide);
// Hides the infobar.
- HRESULT Hide();
+ virtual HRESULT Hide();
// Navigates the HTML view of the infobar.
- HRESULT Navigate(const std::wstring& url);
+ virtual HRESULT Navigate(const std::wstring& url);
// Reserves space for the infobar when IE window recalculates its size.
void ReserveSpace(RECT* rect);
@@ -71,7 +71,11 @@ class InfobarWindow : public InfobarBrowserWindow::Delegate,
void UpdatePosition();
// Destroys the browser window.
- void Reset();
+ virtual void Reset();
+
+ virtual HWND InternalCreate(HWND parent_window, DWORD style) {
+ return Create(parent_window, NULL, NULL, style);
+ }
private:
BEGIN_MSG_MAP(InfobarWindow)
@@ -103,6 +107,9 @@ class InfobarWindow : public InfobarBrowserWindow::Delegate,
// Indicates whether the infobar is sliding.
bool sliding_infobar_;
+ // Timer id when sliding the infobar.
+ UINT_PTR timer_id_;
+
// The Chrome Frame host handling a Chrome Frame instance for us.
CComPtr<IInfobarBrowserWindow> chrome_frame_host_;