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

Unified Diff: chrome_frame/ready_mode/internal/ready_prompt_content.h

Issue 6314016: Update the Ready Mode UI in response to feedback from UI leads, Chrome Frame ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 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: chrome_frame/ready_mode/internal/ready_prompt_content.h
===================================================================
--- chrome_frame/ready_mode/internal/ready_prompt_content.h (revision 72310)
+++ chrome_frame/ready_mode/internal/ready_prompt_content.h (working copy)
@@ -9,18 +9,22 @@
#include "base/basictypes.h"
#include "base/scoped_ptr.h"
#include "base/weak_ptr.h"
+#include "base/win/scoped_comptr.h"
#include "chrome_frame/infobars/infobar_content.h"
class ReadyModeState;
class ReadyPromptWindow;
+interface IWebBrowser2;
+
// Encapsulates the Ready Mode prompt inviting users to permanently activate
// Chrome Frame, temporarily disable Ready Mode, or permanently disable Ready
// Mode.
class ReadyPromptContent : public InfobarContent {
public:
- explicit ReadyPromptContent(ReadyModeState* ready_mode_state);
- ~ReadyPromptContent();
+ ReadyPromptContent(ReadyModeState* ready_mode_state,
+ IWebBrowser2* web_browser);
+ virtual ~ReadyPromptContent();
// InfobarContent implementation
virtual bool InstallInFrame(Frame* frame);
@@ -30,6 +34,7 @@
private:
base::WeakPtr<ReadyPromptWindow> window_;
scoped_ptr<ReadyModeState> ready_mode_state_;
+ base::win::ScopedComPtr<IWebBrowser2, NULL> web_browser_;
DISALLOW_COPY_AND_ASSIGN(ReadyPromptContent);
}; // class ReadyPromptContent

Powered by Google App Engine
This is Rietveld 408576698