summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/tabs/tab_strip_controller.h
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-09 07:35:32 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-09 07:35:32 +0000
commit213dac2f0bff9162502fe325b6ebb85a255efcb2 (patch)
tree3640cb1f19976e38677b8632537d2d41f8444d0f /chrome/browser/views/tabs/tab_strip_controller.h
parent6de53d401aa8dc6c7e0a9874c71a95ce88ade50d (diff)
downloadchromium_src-213dac2f0bff9162502fe325b6ebb85a255efcb2.zip
chromium_src-213dac2f0bff9162502fe325b6ebb85a255efcb2.tar.gz
chromium_src-213dac2f0bff9162502fe325b6ebb85a255efcb2.tar.bz2
Move browser/views to browser/ui/views
TBR=brettw BUG=none TEST=none Review URL: http://codereview.chromium.org/4694005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65508 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/tabs/tab_strip_controller.h')
-rw-r--r--chrome/browser/views/tabs/tab_strip_controller.h66
1 files changed, 3 insertions, 63 deletions
diff --git a/chrome/browser/views/tabs/tab_strip_controller.h b/chrome/browser/views/tabs/tab_strip_controller.h
index bd52452..b0c7be9 100644
--- a/chrome/browser/views/tabs/tab_strip_controller.h
+++ b/chrome/browser/views/tabs/tab_strip_controller.h
@@ -6,68 +6,8 @@
#define CHROME_BROWSER_VIEWS_TABS_TAB_STRIP_CONTROLLER_H_
#pragma once
-class BaseTab;
-class BaseTabStrip;
-class GURL;
-
-namespace gfx {
-class Point;
-}
-
-// Model/Controller for the TabStrip.
-// NOTE: All indices used by this class are in model coordinates.
-class TabStripController {
- public:
- virtual ~TabStripController() {}
-
- // Returns the number of tabs in the model.
- virtual int GetCount() const = 0;
-
- // Returns true if |index| is a valid model index.
- virtual bool IsValidIndex(int index) const = 0;
-
- // Returns the selected index, in terms of the model.
- virtual int GetSelectedIndex() const = 0;
-
- // Returns true if the selected index is selected.
- virtual bool IsTabSelected(int index) const = 0;
-
- // Returns true if the selected index is pinned.
- virtual bool IsTabPinned(int index) const = 0;
-
- // Returns true if the selected index is closeable.
- virtual bool IsTabCloseable(int index) const = 0;
-
- // Returns true if the selected index is the new tab page.
- virtual bool IsNewTabPage(int index) const = 0;
-
- // Select the tab at the specified index in the model.
- virtual void SelectTab(int index) = 0;
-
- // Closes the tab at the specified index in the model.
- virtual void CloseTab(int index) = 0;
-
- // Shows a context menu for the tab at the specified point in screen coords.
- virtual void ShowContextMenu(BaseTab* tab, const gfx::Point& p) = 0;
-
- // Updates the loading animations of all the tabs.
- virtual void UpdateLoadingAnimations() = 0;
-
- // Returns true if the associated TabStrip's delegate supports tab moving or
- // detaching. Used by the Frame to determine if dragging on the Tab
- // itself should move the window in cases where there's only one
- // non drag-able Tab.
- virtual int HasAvailableDragActions() const = 0;
-
- // Performans a drop at the specified location.
- virtual void PerformDrop(bool drop_before, int index, const GURL& url) = 0;
-
- // Return true if this tab strip is compatible with the provided tab strip.
- // Compatible tab strips can transfer tabs during drag and drop.
- virtual bool IsCompatibleWith(BaseTabStrip* other) const = 0;
-
- // Creates the new tab.
- virtual void CreateNewTab() = 0;
-};
+#include "chrome/browser/ui/views/tabs/tab_strip_controller.h"
+// TODO(beng): remove this file once all includes have been updated.
#endif // CHROME_BROWSER_VIEWS_TABS_TAB_STRIP_CONTROLLER_H_
+