summaryrefslogtreecommitdiffstats
path: root/chrome/views/client_view.h
diff options
context:
space:
mode:
authorbeng@google.com <beng@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-04 18:39:13 +0000
committerbeng@google.com <beng@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-04 18:39:13 +0000
commit0d6ac82ec35133d4be884c54a1e48a371570272f (patch)
tree77c54ba70f3c35a59add3b19556acd12632897b5 /chrome/views/client_view.h
parent3fa4bad7827a6c725e3e8868d63ddee0d4b67b2d (diff)
downloadchromium_src-0d6ac82ec35133d4be884c54a1e48a371570272f.zip
chromium_src-0d6ac82ec35133d4be884c54a1e48a371570272f.tar.gz
chromium_src-0d6ac82ec35133d4be884c54a1e48a371570272f.tar.bz2
Bring up the new frame (opaque version for XP only, for now).
I've hidden this frame behind a command line switch (--magic_browzR) so as not to destabilize the main browser UI any further. Note that running with this switch is likely buggy, incomplete, crashy, etc. In order to make this work without disrupting a lot of existing code, I've had to make another BrowserView class (temporary) - BrowserView2. This also has to be a BrowserWindow implementor since that's the interface Browser uses to communicate with the UI. BrowserView2 and OpaqueNonClientView are the major new files in this CL, but BrowserView2 is pretty similar to BrowserView. OpaqueNonClientView is the view that renders the titlebar/borders/etc. It's layout/painting routines are a bit simpler than XPFrame's! B=1031854 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@329 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/views/client_view.h')
-rw-r--r--chrome/views/client_view.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/chrome/views/client_view.h b/chrome/views/client_view.h
index f83887b..c6f8fe3 100644
--- a/chrome/views/client_view.h
+++ b/chrome/views/client_view.h
@@ -49,9 +49,8 @@ class ClientView : public View {
public:
// Constructs a ClientView object for the specified window with the specified
// contents. Since this object is created during the process of creating
- // |window|, |contents_view| must be valid so we can determine the initial
- // size of |window|. We call GetPreferredSize on |contents_view|,
- // which should return something non-zero.
+ // |window|, |contents_view| must be valid if you want the initial size of
+ // the window to be based on |contents_view|'s preferred size.
ClientView(Window* window, View* contents_view);
virtual ~ClientView() {}
@@ -86,7 +85,11 @@ class ClientView : public View {
// Accessors for private data members.
Window* window() const { return window_; }
+ void set_window(Window* window) { window_ = window; }
View* contents_view() const { return contents_view_; }
+ void set_contents_view(View* contents_view) {
+ contents_view_ = contents_view;
+ }
private:
// The Window that hosts this ClientView.