diff options
author | oshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-22 23:41:24 +0000 |
---|---|---|
committer | oshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-22 23:41:24 +0000 |
commit | ae25f9f425e0e652e0d72edf6fb5d080d5760f3b (patch) | |
tree | 702d964850ddbf39389014d65d2d39dda8dcbb43 /chrome/browser/chromeos/panels/panel_scroller_container.h | |
parent | 61eeb15a8909da1141c10316d8cf8c6841ed29d1 (diff) | |
download | chromium_src-ae25f9f425e0e652e0d72edf6fb5d080d5760f3b.zip chromium_src-ae25f9f425e0e652e0d72edf6fb5d080d5760f3b.tar.gz chromium_src-ae25f9f425e0e652e0d72edf6fb5d080d5760f3b.tar.bz2 |
* Moved panel controller to chromeos directory
* Include BrowserExtender to regular build to remove CHROMEOS ifdefs in BrowserView
* moved browser_extender.h to chrome/browser/views/frame, and BrowserExtender methods
to chrome/browser/views/frame/browser_extender.cc.
* Added StandardExtender (standard_extender.cc), which is empty now. I'm going to add MainMenu support to win,
which will be added vua StandardExtender with a command line flag.
* factory method "Create" is now defined in standard_extender.cc and chromeos/chromeos_browser_extenders.cc.
toolkit_views=1 uses chromeos_browser_extenders.cc and other build uses standard_extender
BUG=None
TEST=None
Review URL: http://codereview.chromium.org/317001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29836 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chromeos/panels/panel_scroller_container.h')
-rw-r--r-- | chrome/browser/chromeos/panels/panel_scroller_container.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/chrome/browser/chromeos/panels/panel_scroller_container.h b/chrome/browser/chromeos/panels/panel_scroller_container.h new file mode 100644 index 0000000..5007e95 --- /dev/null +++ b/chrome/browser/chromeos/panels/panel_scroller_container.h @@ -0,0 +1,37 @@ +// Copyright (c) 2009 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_BROWSER_CHROMEOS_PANELS_PANEL_SCROLLER_CONTAINER_H_ +#define CHROME_BROWSER_CHROMEOS_PANELS_PANEL_SCROLLER_CONTAINER_H_ + +#include "base/basictypes.h" +#include "views/view.h" + +class PanelScroller; + +// This class wraps the contents of a panel in the panel scroller. It currently +// doesn't do anything useful, but it just a placeholder. +class PanelScrollerContainer : public views::View { + public: + PanelScrollerContainer(PanelScroller* scroller, views::View* contents); + virtual ~PanelScrollerContainer(); + + int HeaderSize() const; + + // view::View overrides. + virtual gfx::Size GetPreferredSize(); + virtual void Layout(); + virtual void Paint(gfx::Canvas* canvas); + + private: + // Non-owning pointer to our parent scroller object. + PanelScroller* scroller_; + + views::View* contents_; + + DISALLOW_COPY_AND_ASSIGN(PanelScrollerContainer); +}; + +#endif // CHROME_BROWSER_CHROMEOS_PANELS_PANEL_SCROLLER_CONTAINER_H_ + |