Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / chrome / browser / ui / views / frame / browser_view_layout_delegate.h
blob5c01a53b5a851477fdb6ef745a5d28fd8758fcc4
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_LAYOUT_DELEGATE_H_
6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_LAYOUT_DELEGATE_H_
8 class ExclusiveAccessBubbleViews;
10 namespace gfx {
11 class Rect;
13 namespace views {
14 class View;
17 // Delegate class to allow BrowserViewLayout to be decoupled from BrowserView
18 // for testing.
19 class BrowserViewLayoutDelegate {
20 public:
21 virtual ~BrowserViewLayoutDelegate() {}
23 virtual views::View* GetContentsWebView() const = 0;
24 virtual bool IsTabStripVisible() const = 0;
25 virtual gfx::Rect GetBoundsForTabStripInBrowserView() const = 0;
26 virtual int GetTopInsetInBrowserView() const = 0;
27 virtual int GetThemeBackgroundXInset() const = 0;
28 virtual bool IsToolbarVisible() const = 0;
29 virtual bool IsBookmarkBarVisible() const = 0;
30 virtual bool DownloadShelfNeedsLayout() const = 0;
31 virtual ExclusiveAccessBubbleViews* GetExclusiveAccessBubble() const = 0;
34 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_LAYOUT_DELEGATE_H_