Index: chrome/browser/ui/views/sidebar/sidebar_tab_strip_controller.h |
=================================================================== |
--- chrome/browser/ui/views/sidebar/sidebar_tab_strip_controller.h (revision 0) |
+++ chrome/browser/ui/views/sidebar/sidebar_tab_strip_controller.h (revision 0) |
@@ -0,0 +1,53 @@ |
+// 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_STRIP_CONTROLLER_H_ |
+#define CHROME_BROWSER_UI_VIEWS_SIDEBAR_SIDEBAR_TAB_STRIP_CONTROLLER_H_ |
+#pragma once |
+ |
+class SidebarContainer; |
+class TabContentsWrapper; |
+ |
+// Abstract sidebar tab strip model interface. |
+// NOTE: All indices used by this class are in model coordinates. |
+class SidebarTabStripController { |
+ public: |
+ // An interface to receive sidebar tab strip change notifications. |
+ class Delegate { |
+ public: |
+ virtual ~Delegate() {} |
+ |
+ // Sidebar tab strip view bounds are changed, the hosting window should be |
+ // updated accordingly. |
+ virtual void OnSidebarTabStripBoundsChanged(bool is_animating) = 0; |
+ }; |
+ |
+ virtual ~SidebarTabStripController() {} |
+ |
+ // Returns true if sidebar is expanded. |
+ virtual bool IsSidebarExpanded() = 0; |
+ |
+ // Returns true if the selected index is selected. |
+ virtual bool IsTabSelected(int model_index) = 0; |
+ |
+ // Select the tab at the specified index in the model. |
+ virtual void SelectTab(int model_index) = 0; |
+ |
+ // Show sidebar mini tabs registered for |tab|. |
+ virtual void UpdateTabs(TabContentsWrapper* tab) = 0; |
+ |
+ // Sidebar state (icon, title etc.) has changed. |
+ virtual void UpdateState(const SidebarContainer* sidebar) = 0; |
+ |
+ // Sidebar loading state changed, loading progress indicator |
+ // needs to be updated. |
+ virtual void UpdateLoadingState(const SidebarContainer* sidebar) = 0; |
+ |
+ // Sidebar tab strip view bounds are changed, hosting window should be updated |
+ // accordingly. |
+ virtual void TabStripBoundsChanged(bool is_animating) = 0; |
+}; |
+ |
+#endif // CHROME_BROWSER_UI_VIEWS_SIDEBAR_SIDEBAR_TAB_STRIP_CONTROLLER_H_ |
+ |
Property changes on: chrome\browser\ui\views\sidebar\sidebar_tab_strip_controller.h |
___________________________________________________________________ |
Added: svn:eol-style |
+ LF |