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

Unified Diff: ceee/ie/plugin/bho/infobar_window.h

Issue 4991002: New unittests for infobar. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 10 years, 1 month 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: ceee/ie/plugin/bho/infobar_window.h
===================================================================
--- ceee/ie/plugin/bho/infobar_window.h (revision 66307)
+++ ceee/ie/plugin/bho/infobar_window.h (working copy)
@@ -55,13 +55,13 @@
// 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,8 +71,12 @@
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)
MSG_WM_TIMER(OnTimer);
@@ -103,6 +107,9 @@
// 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_;

Powered by Google App Engine
This is Rietveld 408576698