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

Side by Side Diff: chrome_frame/infobars/content.h

Issue 4766003: Preview CL for adding an Infobar facility to Google Chrome Frame.... (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_INFOBARS_CONTENT_H_
6 #define CHROME_FRAME_INFOBARS_CONTENT_H_
7
8 #include <windows.h>
9
10 class InfobarContent {
tommi (sloooow) - chröme 2010/11/24 16:08:24 add a few comments that explain the purpose of the
grt (UTC plus 2) 2010/11/25 18:00:13 Consider a name change for this and other interfac
erikwright (departed) 2010/12/01 20:05:52 Thanks. I looked at the Google C++ guide. It doesn
11 public:
12 class ContentFrame {
13 public:
14 virtual ~ContentFrame() {}
15 // Returns the window in which the infobar content will be displayed.
16 virtual HWND GetFrameWindow() = 0;
17 // Initiates closing of the infobar.
18 virtual void CloseInfobar() = 0;
19 };
20
21 virtual ~InfobarContent() {}
22
23 // Prepares the content to display in the provided frame.
24 //
25 // The frame pointer must remain valid until a future call to Reset returns.
26 virtual bool InstallInFrame(ContentFrame* frame) = 0;
27
28 // Informs the content that it is no longer being displayed and that it, and
29 // its resources, will no longer be accessed by the ContentFrame. The
30 // InfobarContent may release itself or its resources during or after this
31 // call.
32 virtual void Reset() = 0;
33
34 // Provides the content with the dimensions available to it for display.
35 virtual void SetDimensions(const RECT& dimensions) = 0;
36
37 // Finds the desired value for one dimension given a fixed value for the other
38 // dimension. The fixed dimension parameter is non-zero whereas the requested
39 // dimension parameter will be zero.
40 virtual size_t GetDesiredSize(size_t width, size_t height) = 0;
41 };
grt (UTC plus 2) 2010/11/25 18:00:13 I see classes and namespaces terminated with comme
erikwright (departed) 2010/12/01 20:05:52 Done.
42
43 #endif // CHROME_FRAME_INFOBARS_CONTENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698