| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 | 60 |
| 61 // Toggles the selection of the specified index in the model. | 61 // Toggles the selection of the specified index in the model. |
| 62 virtual void ToggleSelected(int index) = 0; | 62 virtual void ToggleSelected(int index) = 0; |
| 63 | 63 |
| 64 // Adds the selection the anchor to |index|. | 64 // Adds the selection the anchor to |index|. |
| 65 virtual void AddSelectionFromAnchorTo(int index) = 0; | 65 virtual void AddSelectionFromAnchorTo(int index) = 0; |
| 66 | 66 |
| 67 // Closes the tab at the specified index in the model. | 67 // Closes the tab at the specified index in the model. |
| 68 virtual void CloseTab(int index, CloseTabSource source) = 0; | 68 virtual void CloseTab(int index, CloseTabSource source) = 0; |
| 69 | 69 |
| 70 // Toggles audio muting for the tab at the specified index in the model. |
| 71 virtual void ToggleTabAudioMute(int index) = 0; |
| 72 |
| 70 // Shows a context menu for the tab at the specified point in screen coords. | 73 // Shows a context menu for the tab at the specified point in screen coords. |
| 71 virtual void ShowContextMenuForTab(Tab* tab, | 74 virtual void ShowContextMenuForTab(Tab* tab, |
| 72 const gfx::Point& p, | 75 const gfx::Point& p, |
| 73 ui::MenuSourceType source_type) = 0; | 76 ui::MenuSourceType source_type) = 0; |
| 74 | 77 |
| 75 // Updates the loading animations of all the tabs. | 78 // Updates the loading animations of all the tabs. |
| 76 virtual void UpdateLoadingAnimations() = 0; | 79 virtual void UpdateLoadingAnimations() = 0; |
| 77 | 80 |
| 78 // Returns true if the associated TabStrip's delegate supports tab moving or | 81 // Returns true if the associated TabStrip's delegate supports tab moving or |
| 79 // detaching. Used by the Frame to determine if dragging on the Tab | 82 // detaching. Used by the Frame to determine if dragging on the Tab |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 // This is also called when the tabs that the user is dragging were detached | 115 // 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. | 116 // from this tabstrip but the user is still dragging the tabs. |
| 114 virtual void OnStoppedDraggingTabs() = 0; | 117 virtual void OnStoppedDraggingTabs() = 0; |
| 115 | 118 |
| 116 // Determines if the file type of the URL is supported. Should invoke | 119 // Determines if the file type of the URL is supported. Should invoke |
| 117 // TabStrip::FileSupported to report the result. | 120 // TabStrip::FileSupported to report the result. |
| 118 virtual void CheckFileSupported(const GURL& url) = 0; | 121 virtual void CheckFileSupported(const GURL& url) = 0; |
| 119 }; | 122 }; |
| 120 | 123 |
| 121 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_CONTROLLER_H_ | 124 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_CONTROLLER_H_ |
| OLD | NEW |