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 <memory> | 9 #include <memory> |
10 #include <string> | 10 #include <string> |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 // | 167 // |
168 // This returns the inverse (dx/dy instead of dy/dx) because we use exact | 168 // This returns the inverse (dx/dy instead of dy/dx) because we use exact |
169 // values for the vertical distances between points and then compute the | 169 // values for the vertical distances between points and then compute the |
170 // horizontal deltas from those. | 170 // horizontal deltas from those. |
171 static float GetInverseDiagonalSlope(); | 171 static float GetInverseDiagonalSlope(); |
172 | 172 |
173 private: | 173 private: |
174 friend class AlertIndicatorButtonTest; | 174 friend class AlertIndicatorButtonTest; |
175 friend class TabTest; | 175 friend class TabTest; |
176 friend class TabStripTest; | 176 friend class TabStripTest; |
177 FRIEND_TEST_ALL_PREFIXES(TabStripTest, TabHitTestMaskWhenStacked); | |
178 FRIEND_TEST_ALL_PREFIXES(TabStripTest, TabCloseButtonVisibilityWhenStacked); | 177 FRIEND_TEST_ALL_PREFIXES(TabStripTest, TabCloseButtonVisibilityWhenStacked); |
179 | 178 |
180 // The animation object used to swap the favicon with the sad tab icon. | 179 // The animation object used to swap the favicon with the sad tab icon. |
181 class FaviconCrashAnimation; | 180 class FaviconCrashAnimation; |
182 | 181 |
183 class TabCloseButton; | 182 class TabCloseButton; |
184 class ThrobberView; | 183 class ThrobberView; |
185 | 184 |
186 // gfx::AnimationDelegate: | 185 // gfx::AnimationDelegate: |
187 void AnimationProgressed(const gfx::Animation* animation) override; | 186 void AnimationProgressed(const gfx::Animation* animation) override; |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
365 | 364 |
366 // The favicon for the tab. This might be the sad tab icon or a copy of | 365 // The favicon for the tab. This might be the sad tab icon or a copy of |
367 // data().favicon and may be modified for theming. It is created on demand | 366 // data().favicon and may be modified for theming. It is created on demand |
368 // and thus may be null. | 367 // and thus may be null. |
369 gfx::ImageSkia favicon_; | 368 gfx::ImageSkia favicon_; |
370 | 369 |
371 DISALLOW_COPY_AND_ASSIGN(Tab); | 370 DISALLOW_COPY_AND_ASSIGN(Tab); |
372 }; | 371 }; |
373 | 372 |
374 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_H_ | 373 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_H_ |
OLD | NEW |