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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_FRAME_READY_MODE_INTERNAL_READY_PROMPT_CONTENT_H_
6 #define CHROME_FRAME_READY_MODE_INTERNAL_READY_PROMPT_CONTENT_H_
7 #pragma once
8
9 #include "base/basictypes.h"
10 #include "base/scoped_ptr.h"
11 #include "base/weak_ptr.h"
12 #include "chrome_frame/infobars/infobar_content.h"
13
14 class ReadyModeState;
15 class ReadyPromptWindow;
16
17 // Encapsulates the Ready Mode prompt inviting users to permanently activate
18 // Chrome Frame, temporarily disable Ready Mode, or permanently disable Ready
19 // Mode.
20 class ReadyPromptContent : public InfobarContent {
21 public:
22 explicit ReadyPromptContent(ReadyModeState* ready_mode_state);
23 ~ReadyPromptContent();
24
25 // InfobarContent implementation
26 virtual bool InstallInFrame(Frame* frame);
27 virtual void SetDimensions(const RECT& dimensions);
28 virtual size_t GetDesiredSize(size_t width, size_t height);
29
30 private:
31 base::WeakPtr<ReadyPromptWindow> window_;
32 scoped_ptr<ReadyModeState> ready_mode_state_;
33
34 DISALLOW_COPY_AND_ASSIGN(ReadyPromptContent);
35 }; // class ReadyPromptContent
36
37 #endif // CHROME_FRAME_READY_MODE_INTERNAL_READY_PROMPT_CONTENT_H_
OLDNEW
« 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