Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(343)

Side by Side Diff: chrome/browser/ui/views/tabs/tab_strip.h

Issue 1355893002: Parametrize a variety of constants in preparation for changing them in MD. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase + fix bugs Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/ui/views/tabs/tab.cc ('k') | chrome/browser/ui/views/tabs/tab_strip.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/tabs/tab.cc ('k') | chrome/browser/ui/views/tabs/tab_strip.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698