Chromium Code Reviews
|
| OLD | NEW |
|---|---|
| (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 | |
|
grt (UTC plus 2)
2010/12/11 03:12:06
#pragma once
erikwright (departed)
2010/12/14 16:15:17
Done.
| |
| 8 #include "base/basictypes.h" | |
| 9 #include "base/scoped_ptr.h" | |
| 10 #include "base/weak_ptr.h" | |
| 11 #include "chrome_frame/infobars/infobar_content.h" | |
| 12 | |
| 13 class ReadyModeState; | |
| 14 class ReadyPromptWindow; | |
| 15 | |
| 16 // Encapsulates the Ready Mode prompt inviting users to permanently activate | |
| 17 // Chrome Frame, temporarily disable Ready Mode, or permanently disable Ready | |
| 18 // Mode. | |
| 19 class ReadyPromptContent : public InfobarContent { | |
| 20 public: | |
| 21 explicit ReadyPromptContent(ReadyModeState* ready_mode_state); | |
| 22 ~ReadyPromptContent(); | |
| 23 | |
| 24 // InfobarContent implementation | |
| 25 virtual bool InstallInFrame(Frame* frame); | |
| 26 virtual void SetDimensions(const RECT& dimensions); | |
| 27 virtual size_t GetDesiredSize(size_t width, size_t height); | |
| 28 | |
| 29 private: | |
| 30 base::WeakPtr<ReadyPromptWindow> window_; | |
| 31 scoped_ptr<ReadyModeState> ready_mode_state_; | |
| 32 | |
| 33 DISALLOW_COPY_AND_ASSIGN(ReadyPromptContent); | |
| 34 }; // ReadyPromptContent | |
|
grt (UTC plus 2)
2010/12/11 03:12:06
}; // class ReadyPromptContent
erikwright (departed)
2010/12/14 16:15:17
Done.
| |
| 35 | |
| 36 #endif // CHROME_FRAME_READY_MODE_INTERNAL_READY_PROMPT_CONTENT_H_ | |
| OLD | NEW |