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

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

Issue 983853002: Hide close buttons of inactive stacked tabs by default (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: histograms.xml changed Created 5 years, 9 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
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_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_TABS_TAB_H_
6 #define CHROME_BROWSER_UI_VIEWS_TABS_TAB_H_ 6 #define CHROME_BROWSER_UI_VIEWS_TABS_TAB_H_
7 7
8 #include <list> 8 #include <list>
9 #include <string> 9 #include <string>
10 10
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 139
140 // Returns the height for immersive mode tabs. 140 // Returns the height for immersive mode tabs.
141 static int GetImmersiveHeight(); 141 static int GetImmersiveHeight();
142 142
143 private: 143 private:
144 friend class TabTest; 144 friend class TabTest;
145 FRIEND_TEST_ALL_PREFIXES(TabTest, CloseButtonLayout); 145 FRIEND_TEST_ALL_PREFIXES(TabTest, CloseButtonLayout);
146 146
147 friend class TabStripTest; 147 friend class TabStripTest;
148 FRIEND_TEST_ALL_PREFIXES(TabStripTest, TabHitTestMaskWhenStacked); 148 FRIEND_TEST_ALL_PREFIXES(TabStripTest, TabHitTestMaskWhenStacked);
149 FRIEND_TEST_ALL_PREFIXES(TabStripTest, ClippedTabCloseButton); 149 FRIEND_TEST_ALL_PREFIXES(TabStripTest, TabCloseButtonVisibilityWhenStacked);
150 150
151 // The animation object used to swap the favicon with the sad tab icon. 151 // The animation object used to swap the favicon with the sad tab icon.
152 class FaviconCrashAnimation; 152 class FaviconCrashAnimation;
153 class TabCloseButton; 153 class TabCloseButton;
154 154
155 // Contains a cached image and the values used to generate it. 155 // Contains a cached image and the values used to generate it.
156 struct ImageCacheEntry { 156 struct ImageCacheEntry {
157 ImageCacheEntry(); 157 ImageCacheEntry();
158 ~ImageCacheEntry(); 158 ~ImageCacheEntry();
159 159
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 SkColor close_button_color_; 378 SkColor close_button_color_;
379 379
380 // As the majority of the tabs are inactive, and painting tabs is slowish, 380 // As the majority of the tabs are inactive, and painting tabs is slowish,
381 // we cache a handful of the inactive tab backgrounds here. 381 // we cache a handful of the inactive tab backgrounds here.
382 static ImageCache* image_cache_; 382 static ImageCache* image_cache_;
383 383
384 DISALLOW_COPY_AND_ASSIGN(Tab); 384 DISALLOW_COPY_AND_ASSIGN(Tab);
385 }; 385 };
386 386
387 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_H_ 387 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/tabs/fake_base_tab_strip_controller.cc ('k') | chrome/browser/ui/views/tabs/tab.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698