summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/frame/browser_view_layout_manager.h
diff options
context:
space:
mode:
authoroshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-16 09:10:20 +0000
committeroshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-16 09:10:20 +0000
commit12728a26da3b9242a30b977f00a75ad3194f07a1 (patch)
tree469cd460db60362e4f0e80efcabc3f0cad853f75 /chrome/browser/views/frame/browser_view_layout_manager.h
parent89f0e7493eb6d5a1a8001e975d0b1c45c47e9fc7 (diff)
downloadchromium_src-12728a26da3b9242a30b977f00a75ad3194f07a1.zip
chromium_src-12728a26da3b9242a30b977f00a75ad3194f07a1.tar.gz
chromium_src-12728a26da3b9242a30b977f00a75ad3194f07a1.tar.bz2
Refactoring to reduce chromeos dependency in chrome.
* renamed BrowserLayoutManager to more explicit, BrowserViewLayoutManager. * Added factory method to create chromeos specific tab/tabstrip and layoutmanagers. * Introduced ChromeosBrowserView and chromeos specific tab/tabstrip and layoutmanager, and moved chromeos specifi code into them. BUG=none TEST=none Review URL: http://codereview.chromium.org/543095 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36452 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/frame/browser_view_layout_manager.h')
-rw-r--r--chrome/browser/views/frame/browser_view_layout_manager.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/chrome/browser/views/frame/browser_view_layout_manager.h b/chrome/browser/views/frame/browser_view_layout_manager.h
new file mode 100644
index 0000000..65ecfc6
--- /dev/null
+++ b/chrome/browser/views/frame/browser_view_layout_manager.h
@@ -0,0 +1,22 @@
+// Copyright (c) 2010 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_VIEWS_FRAME_BROWSER_VIEW_LAYOUT_MANAGER_H_
+#define CHROME_BROWSER_VIEWS_FRAME_BROWSER_VIEW_LAYOUT_MANAGER_H_
+
+#include "base/gfx/size.h"
+#include "views/layout_manager.h"
+
+// An extended LayoutManager to layout components in
+// BrowserView.
+class BrowserViewLayoutManager : public views::LayoutManager {
+ public:
+ // Returns the minimum size of the browser view.
+ virtual gfx::Size GetMinimumSize() = 0;
+
+ // Returns the bounding box for the find bar.
+ virtual gfx::Rect GetFindBarBoundingBox() const = 0;
+};
+
+#endif // CHROME_BROWSER_VIEWS_FRAME_BROWSER_VIEW_LAYOUT_MANAGER_H_