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_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 Loading... |
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 Loading... |
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_ |
OLD | NEW |