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

Unified Diff: chrome/browser/ui/views/sidebar/sidebar_tab_strip_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_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
« no previous file with comments | « chrome/browser/ui/views/sidebar/sidebar_tab_strip.cc ('k') | chrome/browser/ui/views/sidebar/sidebar_tab_strip_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698