| 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_TABS_TAB_STRIP_MODEL_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_UI_TABS_TAB_STRIP_MODEL_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_UI_TABS_TAB_STRIP_MODEL_DELEGATE_H_ | 6 #define CHROME_BROWSER_UI_TABS_TAB_STRIP_MODEL_DELEGATE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 Profile* profile, | 71 Profile* profile, |
| 72 content::PageTransition transition, | 72 content::PageTransition transition, |
| 73 bool defer_load, | 73 bool defer_load, |
| 74 content::SiteInstance* instance) const = 0; | 74 content::SiteInstance* instance) const = 0; |
| 75 | 75 |
| 76 // Returns whether some contents can be duplicated. | 76 // Returns whether some contents can be duplicated. |
| 77 virtual bool CanDuplicateContentsAt(int index) = 0; | 77 virtual bool CanDuplicateContentsAt(int index) = 0; |
| 78 | 78 |
| 79 // Duplicates the contents at the provided index and places it into its own | 79 // Duplicates the contents at the provided index and places it into its own |
| 80 // window. | 80 // window. |
| 81 virtual void DuplicateContentsAt(int index) = 0; | 81 virtual TabContents* DuplicateContentsAt(int index) = 0; |
| 82 | 82 |
| 83 // Called when a drag session has completed and the frame that initiated the | 83 // Called when a drag session has completed and the frame that initiated the |
| 84 // the session should be closed. | 84 // the session should be closed. |
| 85 virtual void CloseFrameAfterDragSession() = 0; | 85 virtual void CloseFrameAfterDragSession() = 0; |
| 86 | 86 |
| 87 // Creates an entry in the historical tab database for the specified | 87 // Creates an entry in the historical tab database for the specified |
| 88 // TabContents. | 88 // TabContents. |
| 89 virtual void CreateHistoricalTab(TabContents* contents) = 0; | 89 virtual void CreateHistoricalTab(TabContents* contents) = 0; |
| 90 | 90 |
| 91 // Runs any unload listeners associated with the specified TabContents | 91 // Runs any unload listeners associated with the specified TabContents |
| (...skipping 25 matching lines...) Expand all Loading... |
| 117 virtual bool CanCloseTab() const = 0; | 117 virtual bool CanCloseTab() const = 0; |
| 118 | 118 |
| 119 // Returns true if the tab strip can use large icons. | 119 // Returns true if the tab strip can use large icons. |
| 120 virtual bool LargeIconsPermitted() const = 0; | 120 virtual bool LargeIconsPermitted() const = 0; |
| 121 | 121 |
| 122 protected: | 122 protected: |
| 123 virtual ~TabStripModelDelegate() {} | 123 virtual ~TabStripModelDelegate() {} |
| 124 }; | 124 }; |
| 125 | 125 |
| 126 #endif // CHROME_BROWSER_UI_TABS_TAB_STRIP_MODEL_DELEGATE_H_ | 126 #endif // CHROME_BROWSER_UI_TABS_TAB_STRIP_MODEL_DELEGATE_H_ |
| OLD | NEW |