| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_BASE_TAB_STRIP_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_TABS_BASE_TAB_STRIP_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_TABS_BASE_TAB_STRIP_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_TABS_BASE_TAB_STRIP_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 // move. | 166 // move. |
| 167 virtual void StartMoveTabAnimation(); | 167 virtual void StartMoveTabAnimation(); |
| 168 | 168 |
| 169 // Starts the remove tab animation. | 169 // Starts the remove tab animation. |
| 170 virtual void StartRemoveTabAnimation(int model_index); | 170 virtual void StartRemoveTabAnimation(int model_index); |
| 171 | 171 |
| 172 // Starts the mini-tab animation. | 172 // Starts the mini-tab animation. |
| 173 virtual void StartMiniTabAnimation(); | 173 virtual void StartMiniTabAnimation(); |
| 174 | 174 |
| 175 // Returns whether the highlight button should be highlighted after a remove. | 175 // Returns whether the highlight button should be highlighted after a remove. |
| 176 virtual bool ShouldHighlightCloseButtonAfterRemove() { return true; } | 176 virtual bool ShouldHighlightCloseButtonAfterRemove(); |
| 177 | 177 |
| 178 // Animates all the views to their ideal bounds. | 178 // Animates all the views to their ideal bounds. |
| 179 // NOTE: this does *not* invoke GenerateIdealBounds, it uses the bounds | 179 // NOTE: this does *not* invoke GenerateIdealBounds, it uses the bounds |
| 180 // currently set in ideal_bounds. | 180 // currently set in ideal_bounds. |
| 181 virtual void AnimateToIdealBounds() = 0; | 181 virtual void AnimateToIdealBounds() = 0; |
| 182 | 182 |
| 183 // Cleans up the Tab from the TabStrip. This is called from the tab animation | 183 // Cleans up the Tab from the TabStrip. This is called from the tab animation |
| 184 // code and is not a general-purpose method. | 184 // code and is not a general-purpose method. |
| 185 void RemoveAndDeleteTab(BaseTab* tab); | 185 void RemoveAndDeleteTab(BaseTab* tab); |
| 186 | 186 |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 // model. | 243 // model. |
| 244 bool attaching_dragged_tab_; | 244 bool attaching_dragged_tab_; |
| 245 | 245 |
| 246 views::BoundsAnimator bounds_animator_; | 246 views::BoundsAnimator bounds_animator_; |
| 247 | 247 |
| 248 // Size we last layed out at. | 248 // Size we last layed out at. |
| 249 gfx::Size last_layout_size_; | 249 gfx::Size last_layout_size_; |
| 250 }; | 250 }; |
| 251 | 251 |
| 252 #endif // CHROME_BROWSER_UI_VIEWS_TABS_BASE_TAB_STRIP_H_ | 252 #endif // CHROME_BROWSER_UI_VIEWS_TABS_BASE_TAB_STRIP_H_ |
| OLD | NEW |