Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3578)

Unified Diff: chrome/browser/ui/views/frame/browser_view_layout_delegate.h

Issue 14589016: Unit test for BrowserViewLayout that does not depend on BrowserView (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: BrowserViewLayout owns its delegate Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_
« no previous file with comments | « chrome/browser/ui/views/frame/browser_view_layout.cc ('k') | chrome/browser/ui/views/frame/browser_view_layout_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698