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 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "content/public/common/page_transition_types.h" | 10 #include "content/public/common/page_transition_types.h" |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 // Determines what drag actions are possible for the specified strip. | 79 // Determines what drag actions are possible for the specified strip. |
80 virtual int GetDragActions() const = 0; | 80 virtual int GetDragActions() const = 0; |
81 | 81 |
82 // Returns whether some contents can be duplicated. | 82 // Returns whether some contents can be duplicated. |
83 virtual bool CanDuplicateContentsAt(int index) = 0; | 83 virtual bool CanDuplicateContentsAt(int index) = 0; |
84 | 84 |
85 // Duplicates the contents at the provided index and places it into its own | 85 // Duplicates the contents at the provided index and places it into its own |
86 // window. | 86 // window. |
87 virtual void DuplicateContentsAt(int index) = 0; | 87 virtual void DuplicateContentsAt(int index) = 0; |
88 | 88 |
89 // Called when a drag session has completed and the frame that initiated the | |
90 // the session should be closed. | |
91 virtual void CloseFrameAfterDragSession() = 0; | |
92 | |
93 // Creates an entry in the historical tab database for the specified | 89 // Creates an entry in the historical tab database for the specified |
94 // WebContents. | 90 // WebContents. |
95 virtual void CreateHistoricalTab(content::WebContents* contents) = 0; | 91 virtual void CreateHistoricalTab(content::WebContents* contents) = 0; |
96 | 92 |
97 // Runs any unload listeners associated with the specified WebContents | 93 // Runs any unload listeners associated with the specified WebContents |
98 // before it is closed. If there are unload listeners that need to be run, | 94 // before it is closed. If there are unload listeners that need to be run, |
99 // this function returns true and the TabStripModel will wait before closing | 95 // this function returns true and the TabStripModel will wait before closing |
100 // the WebContents. If it returns false, there are no unload listeners | 96 // the WebContents. If it returns false, there are no unload listeners |
101 // and the TabStripModel will close the WebContents immediately. | 97 // and the TabStripModel will close the WebContents immediately. |
102 virtual bool RunUnloadListenerBeforeClosing( | 98 virtual bool RunUnloadListenerBeforeClosing( |
(...skipping 12 matching lines...) Expand all Loading... |
115 | 111 |
116 // Returns true if we should allow "bookmark all tabs" in this window; this is | 112 // Returns true if we should allow "bookmark all tabs" in this window; this is |
117 // true when there is more than one bookmarkable tab open. | 113 // true when there is more than one bookmarkable tab open. |
118 virtual bool CanBookmarkAllTabs() const = 0; | 114 virtual bool CanBookmarkAllTabs() const = 0; |
119 | 115 |
120 // Creates a bookmark folder containing a bookmark for all open tabs. | 116 // Creates a bookmark folder containing a bookmark for all open tabs. |
121 virtual void BookmarkAllTabs() = 0; | 117 virtual void BookmarkAllTabs() = 0; |
122 }; | 118 }; |
123 | 119 |
124 #endif // CHROME_BROWSER_UI_TABS_TAB_STRIP_MODEL_DELEGATE_H_ | 120 #endif // CHROME_BROWSER_UI_TABS_TAB_STRIP_MODEL_DELEGATE_H_ |
OLD | NEW |