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

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

Issue 5747002: Implement a ReadyPromptContent that displays a prompt to accept, temporarily ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years 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 0)
+++ chrome_frame/ready_mode/internal/ready_prompt_content.h (revision 0)
@@ -0,0 +1,37 @@
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_FRAME_READY_MODE_INTERNAL_READY_PROMPT_CONTENT_H_
+#define CHROME_FRAME_READY_MODE_INTERNAL_READY_PROMPT_CONTENT_H_
+#pragma once
+
+#include "base/basictypes.h"
+#include "base/scoped_ptr.h"
+#include "base/weak_ptr.h"
+#include "chrome_frame/infobars/infobar_content.h"
+
+class ReadyModeState;
+class ReadyPromptWindow;
+
+// 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();
+
+ // InfobarContent implementation
+ virtual bool InstallInFrame(Frame* frame);
+ virtual void SetDimensions(const RECT& dimensions);
+ virtual size_t GetDesiredSize(size_t width, size_t height);
+
+ private:
+ base::WeakPtr<ReadyPromptWindow> window_;
+ scoped_ptr<ReadyModeState> ready_mode_state_;
+
+ DISALLOW_COPY_AND_ASSIGN(ReadyPromptContent);
+}; // class ReadyPromptContent
+
+#endif // CHROME_FRAME_READY_MODE_INTERNAL_READY_PROMPT_CONTENT_H_
Property changes on: chrome_frame\ready_mode\internal\ready_prompt_content.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « chrome_frame/ready_mode/internal/ready_mode_state.h ('k') | chrome_frame/ready_mode/internal/ready_prompt_content.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698