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

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

Issue 149753007: Merge 249331 "Tab close buttons can only be targeted with touch ..." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1750/src/
Patch Set: Created 6 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/ui/views/tabs/tab.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_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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 126
127 // Returns the height for immersive mode tabs. 127 // Returns the height for immersive mode tabs.
128 static int GetImmersiveHeight(); 128 static int GetImmersiveHeight();
129 129
130 private: 130 private:
131 friend class TabTest; 131 friend class TabTest;
132 FRIEND_TEST_ALL_PREFIXES(TabTest, CloseButtonLayout); 132 FRIEND_TEST_ALL_PREFIXES(TabTest, CloseButtonLayout);
133 133
134 friend class TabStripTest; 134 friend class TabStripTest;
135 FRIEND_TEST_ALL_PREFIXES(TabStripTest, TabHitTestMaskWhenStacked); 135 FRIEND_TEST_ALL_PREFIXES(TabStripTest, TabHitTestMaskWhenStacked);
136 FRIEND_TEST_ALL_PREFIXES(TabStripTest, ClippedTabCloseButton);
136 137
137 // The animation object used to swap the favicon with the sad tab icon. 138 // The animation object used to swap the favicon with the sad tab icon.
138 class FaviconCrashAnimation; 139 class FaviconCrashAnimation;
139 class TabCloseButton; 140 class TabCloseButton;
140 141
141 // Contains a cached image and the values used to generate it. 142 // Contains a cached image and the values used to generate it.
142 struct ImageCacheEntry { 143 struct ImageCacheEntry {
143 ImageCacheEntry(); 144 ImageCacheEntry();
144 ~ImageCacheEntry(); 145 ~ImageCacheEntry();
145 146
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 static int font_height_; 382 static int font_height_;
382 383
383 // As the majority of the tabs are inactive, and painting tabs is slowish, 384 // As the majority of the tabs are inactive, and painting tabs is slowish,
384 // we cache a handful of the inactive tab backgrounds here. 385 // we cache a handful of the inactive tab backgrounds here.
385 static ImageCache* image_cache_; 386 static ImageCache* image_cache_;
386 387
387 DISALLOW_COPY_AND_ASSIGN(Tab); 388 DISALLOW_COPY_AND_ASSIGN(Tab);
388 }; 389 };
389 390
390 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_H_ 391 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/views/tabs/tab.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698