summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui
diff options
context:
space:
mode:
authortfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-26 01:52:08 +0000
committertfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-26 01:52:08 +0000
commitcc40648ba7ced82ecf923475ddcaca4e690408b8 (patch)
treed794fb7749739851254775e62888ee1addd10920 /chrome/browser/ui
parent8f8ff994a1f9085ec49c40756db85d5da37ae807 (diff)
downloadchromium_src-cc40648ba7ced82ecf923475ddcaca4e690408b8.zip
chromium_src-cc40648ba7ced82ecf923475ddcaca4e690408b8.tar.gz
chromium_src-cc40648ba7ced82ecf923475ddcaca4e690408b8.tar.bz2
views: Forward declare "class View;" in layout_manager.h
And move the include of views/view.h from the header to the source file. BUG=None TEST=trybots Review URL: http://codereview.chromium.org/6332013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72587 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui')
-rw-r--r--chrome/browser/ui/views/frame/browser_view_layout.cc5
-rw-r--r--chrome/browser/ui/views/frame/browser_view_layout.h10
2 files changed, 13 insertions, 2 deletions
diff --git a/chrome/browser/ui/views/frame/browser_view_layout.cc b/chrome/browser/ui/views/frame/browser_view_layout.cc
index 6dc8cd0..60cb81f 100644
--- a/chrome/browser/ui/views/frame/browser_view_layout.cc
+++ b/chrome/browser/ui/views/frame/browser_view_layout.cc
@@ -18,6 +18,8 @@
#include "chrome/browser/ui/views/tabs/tab_strip.h"
#include "chrome/browser/ui/views/toolbar_view.h"
#include "gfx/scrollbar_size.h"
+#include "gfx/point.h"
+#include "gfx/size.h"
#include "views/controls/single_split_view.h"
#include "views/window/window.h"
@@ -53,6 +55,9 @@ BrowserViewLayout::BrowserViewLayout()
find_bar_y_(0) {
}
+BrowserViewLayout::~BrowserViewLayout() {
+}
+
gfx::Size BrowserViewLayout::GetMinimumSize() {
// TODO(noname): In theory the tabstrip width should probably be
// (OTR + tabstrip + caption buttons) width.
diff --git a/chrome/browser/ui/views/frame/browser_view_layout.h b/chrome/browser/ui/views/frame/browser_view_layout.h
index 2fdec85..4554b62 100644
--- a/chrome/browser/ui/views/frame/browser_view_layout.h
+++ b/chrome/browser/ui/views/frame/browser_view_layout.h
@@ -6,6 +6,8 @@
#define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_LAYOUT_H_
#pragma once
+#include "base/basictypes.h"
+#include "gfx/rect.h"
#include "views/layout/layout_manager.h"
class BaseTabStrip;
@@ -17,6 +19,11 @@ class DownloadShelfView;
class TabContentsContainer;
class ToolbarView;
+namespace gfx {
+class Point;
+class Size;
+}
+
namespace views {
class SingleSplitView;
}
@@ -25,7 +32,7 @@ class SingleSplitView;
class BrowserViewLayout : public views::LayoutManager {
public:
BrowserViewLayout();
- virtual ~BrowserViewLayout() {}
+ virtual ~BrowserViewLayout();
// Returns the minimum size of the browser view.
virtual gfx::Size GetMinimumSize();
@@ -123,4 +130,3 @@ class BrowserViewLayout : public views::LayoutManager {
};
#endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_LAYOUT_H_
-