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 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
371 | 371 |
372 // Calculates the bounds needed for each of the tabs, placing the result in | 372 // Calculates the bounds needed for each of the tabs, placing the result in |
373 // |bounds|. | 373 // |bounds|. |
374 void CalculateBoundsForDraggedTabs(const Tabs& tabs, | 374 void CalculateBoundsForDraggedTabs(const Tabs& tabs, |
375 std::vector<gfx::Rect>* bounds); | 375 std::vector<gfx::Rect>* bounds); |
376 | 376 |
377 // Returns the size needed for the specified tabs. This is invoked during drag | 377 // Returns the size needed for the specified tabs. This is invoked during drag |
378 // and drop to calculate offsets and positioning. | 378 // and drop to calculate offsets and positioning. |
379 int GetSizeNeededForTabs(const Tabs& tabs); | 379 int GetSizeNeededForTabs(const Tabs& tabs); |
380 | 380 |
381 // Returns the amount of overlap between adjacent tabs. | |
382 int GetTabOverlap() const; | |
Peter Kasting
2015/09/18 20:40:46
Turns out I didn't need this after all -- the mech
| |
383 | |
384 // Returns the number of pinned tabs. | 381 // Returns the number of pinned tabs. |
385 int GetPinnedTabCount() const; | 382 int GetPinnedTabCount() const; |
386 | 383 |
387 // Returns the last tab in the strip that's actually visible. This will be | 384 // Returns the last tab in the strip that's actually visible. This will be |
388 // the actual last tab unless the strip is in the overflow state. | 385 // the actual last tab unless the strip is in the overflow state. |
389 const Tab* GetLastVisibleTab() const; | 386 const Tab* GetLastVisibleTab() const; |
390 | 387 |
391 // Adds the tab at |index| to |tabs_closing_map_| and removes the tab from | 388 // Adds the tab at |index| to |tabs_closing_map_| and removes the tab from |
392 // |tabs_|. | 389 // |tabs_|. |
393 void RemoveTabFromViewModel(int index); | 390 void RemoveTabFromViewModel(int index); |
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
673 bool immersive_style_; | 670 bool immersive_style_; |
674 | 671 |
675 // Our observers. | 672 // Our observers. |
676 typedef base::ObserverList<TabStripObserver> TabStripObservers; | 673 typedef base::ObserverList<TabStripObserver> TabStripObservers; |
677 TabStripObservers observers_; | 674 TabStripObservers observers_; |
678 | 675 |
679 DISALLOW_COPY_AND_ASSIGN(TabStrip); | 676 DISALLOW_COPY_AND_ASSIGN(TabStrip); |
680 }; | 677 }; |
681 | 678 |
682 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_H_ | 679 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_H_ |
OLD | NEW |