diff options
author | oshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-16 09:10:20 +0000 |
---|---|---|
committer | oshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-16 09:10:20 +0000 |
commit | 12728a26da3b9242a30b977f00a75ad3194f07a1 (patch) | |
tree | 469cd460db60362e4f0e80efcabc3f0cad853f75 /chrome/browser/views/frame/browser_view_layout_manager.h | |
parent | 89f0e7493eb6d5a1a8001e975d0b1c45c47e9fc7 (diff) | |
download | chromium_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.h | 22 |
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_ |