OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2010 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. |
| 4 |
| 5 #ifndef CHROME_BROWSER_UI_VIEWS_SIDEBAR_SIDEBAR_TAB_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_SIDEBAR_SIDEBAR_TAB_CONTROLLER_H_ |
| 7 #pragma once |
| 8 |
| 9 class SidebarBaseTab; |
| 10 |
| 11 // Controller interface for sidebar tabs, abstracts tab's outside world's |
| 12 // interactions. |
| 13 class SidebarTabController { |
| 14 public: |
| 15 // Selects the tab. |
| 16 virtual void SelectTab(SidebarBaseTab* tab) = 0; |
| 17 |
| 18 // Returns true if the specified tab is selected. |
| 19 virtual bool IsTabSelected(const SidebarBaseTab* tab) = 0; |
| 20 |
| 21 // Returns true if sidebar is expanded. |
| 22 virtual bool IsSidebarExpanded() = 0; |
| 23 |
| 24 protected: |
| 25 virtual ~SidebarTabController() {} |
| 26 }; |
| 27 |
| 28 #endif // CHROME_BROWSER_UI_VIEWS_SIDEBAR_SIDEBAR_TAB_CONTROLLER_H_ |
| 29 |
OLD | NEW |