| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include "base/strings/string16.h" | 8 #include "base/strings/string16.h" |
| 9 #include "chrome/browser/ui/views/tabs/tab_strip_types.h" | 9 #include "chrome/browser/ui/views/tabs/tab_strip_types.h" |
| 10 #include "ui/base/ui_base_types.h" | 10 #include "ui/base/ui_base_types.h" |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 virtual void CreateNewTab() = 0; | 95 virtual void CreateNewTab() = 0; |
| 96 | 96 |
| 97 // Creates a new tab, and loads |location| in the tab. If |location| is a | 97 // Creates a new tab, and loads |location| in the tab. If |location| is a |
| 98 // valid URL, then simply loads the URL, otherwise this can open a | 98 // valid URL, then simply loads the URL, otherwise this can open a |
| 99 // search-result page for |location|. | 99 // search-result page for |location|. |
| 100 virtual void CreateNewTabWithLocation(const base::string16& location) = 0; | 100 virtual void CreateNewTabWithLocation(const base::string16& location) = 0; |
| 101 | 101 |
| 102 // Returns true if the tab strip is in an incognito window. | 102 // Returns true if the tab strip is in an incognito window. |
| 103 virtual bool IsIncognito() = 0; | 103 virtual bool IsIncognito() = 0; |
| 104 | 104 |
| 105 // Invoked if the layout type might have changed. | 105 // Invoked if the stacked layout (on or off) might have changed. |
| 106 virtual void LayoutTypeMaybeChanged() = 0; | 106 virtual void StackedLayoutMaybeChanged() = 0; |
| 107 | 107 |
| 108 // Notifies controller that the user started dragging this tabstrip's tabs. | 108 // Notifies controller that the user started dragging this tabstrip's tabs. |
| 109 virtual void OnStartedDraggingTabs() = 0; | 109 virtual void OnStartedDraggingTabs() = 0; |
| 110 | 110 |
| 111 // Notifies controller that the user stopped dragging this tabstrip's tabs. | 111 // Notifies controller that the user stopped dragging this tabstrip's tabs. |
| 112 // This is also called when the tabs that the user is dragging were detached | 112 // This is also called when the tabs that the user is dragging were detached |
| 113 // from this tabstrip but the user is still dragging the tabs. | 113 // from this tabstrip but the user is still dragging the tabs. |
| 114 virtual void OnStoppedDraggingTabs() = 0; | 114 virtual void OnStoppedDraggingTabs() = 0; |
| 115 | 115 |
| 116 // Determines if the file type of the URL is supported. Should invoke | 116 // Determines if the file type of the URL is supported. Should invoke |
| 117 // TabStrip::FileSupported to report the result. | 117 // TabStrip::FileSupported to report the result. |
| 118 virtual void CheckFileSupported(const GURL& url) = 0; | 118 virtual void CheckFileSupported(const GURL& url) = 0; |
| 119 }; | 119 }; |
| 120 | 120 |
| 121 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_CONTROLLER_H_ | 121 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_CONTROLLER_H_ |
| OLD | NEW |