| Index: chrome/browser/ui/views/frame/browser_view_layout_delegate.h
|
| diff --git a/chrome/browser/ui/views/frame/browser_view_layout_delegate.h b/chrome/browser/ui/views/frame/browser_view_layout_delegate.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..a65113f85fe29ce58da9ccfd931fc2ef475eedea
|
| --- /dev/null
|
| +++ b/chrome/browser/ui/views/frame/browser_view_layout_delegate.h
|
| @@ -0,0 +1,21 @@
|
| +// Copyright (c) 2012 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_UI_VIEWS_FRAME_BROWSER_VIEW_LAYOUT_DELEGATE_H_
|
| +#define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_LAYOUT_DELEGATE_H_
|
| +
|
| +// Delegate class to allow BrowserViewLayout to be decoupled from BrowserView
|
| +// for testing.
|
| +class BrowserViewLayoutDelegate {
|
| + public:
|
| + virtual ~BrowserViewLayoutDelegate() {}
|
| +
|
| + virtual bool IsTabStripVisible() const = 0;
|
| + virtual gfx::Rect GetBoundsForTabStrip(views::View* tab_strip) const = 0;
|
| + virtual bool IsToolbarVisible() const = 0;
|
| + virtual bool IsBookmarkBarVisible() const = 0;
|
| + virtual bool DownloadShelfNeedsLayout() const = 0;
|
| +};
|
| +
|
| +#endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_LAYOUT_DELEGATE_H_
|
|
|