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

Unified Diff: chrome/browser/ui/views/sidebar/sidebar_tab_controller.h

Issue 6250141: Sidebar mini tabs UI (views version).... Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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/sidebar/sidebar_tab_controller.h
===================================================================
--- chrome/browser/ui/views/sidebar/sidebar_tab_controller.h (revision 0)
+++ chrome/browser/ui/views/sidebar/sidebar_tab_controller.h (revision 0)
@@ -0,0 +1,29 @@
+// 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_UI_VIEWS_SIDEBAR_SIDEBAR_TAB_CONTROLLER_H_
+#define CHROME_BROWSER_UI_VIEWS_SIDEBAR_SIDEBAR_TAB_CONTROLLER_H_
+#pragma once
+
+class SidebarBaseTab;
+
+// Controller interface for sidebar tabs, abstracts tab's outside world's
+// interactions.
+class SidebarTabController {
+ public:
+ // Selects the tab.
+ virtual void SelectTab(SidebarBaseTab* tab) = 0;
+
+ // Returns true if the specified tab is selected.
+ virtual bool IsTabSelected(const SidebarBaseTab* tab) = 0;
+
+ // Returns true if sidebar is expanded.
+ virtual bool IsSidebarExpanded() = 0;
+
+ protected:
+ virtual ~SidebarTabController() {}
+};
+
+#endif // CHROME_BROWSER_UI_VIEWS_SIDEBAR_SIDEBAR_TAB_CONTROLLER_H_
+
Property changes on: chrome\browser\ui\views\sidebar\sidebar_tab_controller.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « chrome/browser/ui/views/sidebar/sidebar_tab.cc ('k') | chrome/browser/ui/views/sidebar/sidebar_tab_renderer_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698