| 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_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 481 | 481 |
| 482 // -- Animations ------------------------------------------------------------ | 482 // -- Animations ------------------------------------------------------------ |
| 483 | 483 |
| 484 // Invoked prior to starting a new animation. | 484 // Invoked prior to starting a new animation. |
| 485 void PrepareForAnimation(); | 485 void PrepareForAnimation(); |
| 486 | 486 |
| 487 // Generates the ideal bounds for each of the tabs as well as the new tab | 487 // Generates the ideal bounds for each of the tabs as well as the new tab |
| 488 // button. | 488 // button. |
| 489 void GenerateIdealBounds(); | 489 void GenerateIdealBounds(); |
| 490 | 490 |
| 491 // Calculates and sets the size for |newtab_button_bounds_|. |
| 492 void CalculateNewTabButtonSize(); |
| 493 |
| 491 // Generates the ideal bounds for the pinned tabs. Returns the index to | 494 // Generates the ideal bounds for the pinned tabs. Returns the index to |
| 492 // position the first non-pinned tab and sets |first_non_pinned_index| to the | 495 // position the first non-pinned tab and sets |first_non_pinned_index| to the |
| 493 // index of the first non-pinned tab. | 496 // index of the first non-pinned tab. |
| 494 int GenerateIdealBoundsForPinnedTabs(int* first_non_pinned_index); | 497 int GenerateIdealBoundsForPinnedTabs(int* first_non_pinned_index); |
| 495 | 498 |
| 496 // Returns the width of the area that contains tabs. This does not include | 499 // Returns the width of the area that contains tabs. This does not include |
| 497 // the width of the new tab button. | 500 // the width of the new tab button. |
| 498 int GetTabAreaWidth() const; | 501 int GetTabAreaWidth() const; |
| 499 | 502 |
| 500 // Starts various types of TabStrip animations. | 503 // Starts various types of TabStrip animations. |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 648 bool immersive_style_; | 651 bool immersive_style_; |
| 649 | 652 |
| 650 // Our observers. | 653 // Our observers. |
| 651 typedef base::ObserverList<TabStripObserver> TabStripObservers; | 654 typedef base::ObserverList<TabStripObserver> TabStripObservers; |
| 652 TabStripObservers observers_; | 655 TabStripObservers observers_; |
| 653 | 656 |
| 654 DISALLOW_COPY_AND_ASSIGN(TabStrip); | 657 DISALLOW_COPY_AND_ASSIGN(TabStrip); |
| 655 }; | 658 }; |
| 656 | 659 |
| 657 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_H_ | 660 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_H_ |
| OLD | NEW |