Chromium Code Reviews| 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 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 272 | 272 |
| 273 void DisplayCrashedFavicon(); | 273 void DisplayCrashedFavicon(); |
| 274 void ResetCrashedFavicon(); | 274 void ResetCrashedFavicon(); |
| 275 | 275 |
| 276 void StopCrashAnimation(); | 276 void StopCrashAnimation(); |
| 277 void StartCrashAnimation(); | 277 void StartCrashAnimation(); |
| 278 | 278 |
| 279 // Returns true if the crash animation is currently running. | 279 // Returns true if the crash animation is currently running. |
| 280 bool IsPerformingCrashAnimation() const; | 280 bool IsPerformingCrashAnimation() const; |
| 281 | 281 |
| 282 // Sets the close button normal-state image using the current | |
| 283 // |close_button_color_|. | |
| 284 void SetCloseButtonNormalImage(); | |
|
miu
2015/09/18 01:13:37
naming: When I was originally reading this, I was
Peter Kasting
2015/09/18 01:17:13
Neither of those names would be accurate, though.
miu
2015/09/19 00:19:58
It's a moot point now (at patch set 3), but back a
| |
| 285 | |
| 282 // Schedules repaint task for icon. | 286 // Schedules repaint task for icon. |
| 283 void ScheduleIconPaint(); | 287 void ScheduleIconPaint(); |
| 284 | 288 |
| 285 // Returns a |path| containing the region that matches the bitmap display of | 289 // Returns a |path| containing the region that matches the bitmap display of |
| 286 // this tab, for input event hit testing. Set |include_top_shadow| to include | 290 // this tab, for input event hit testing. Set |include_top_shadow| to include |
| 287 // the mostly-transparent shadow pixels above the top edge of the tab in the | 291 // the mostly-transparent shadow pixels above the top edge of the tab in the |
| 288 // path. | 292 // path. |
| 289 void GetHitTestMaskHelper(bool include_top_shadow, gfx::Path* path) const; | 293 void GetHitTestMaskHelper(bool include_top_shadow, gfx::Path* path) const; |
| 290 | 294 |
| 291 // Returns the rectangle for the light bar in immersive mode. | 295 // Returns the rectangle for the light bar in immersive mode. |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 399 SkColor close_button_color_; | 403 SkColor close_button_color_; |
| 400 | 404 |
| 401 // As the majority of the tabs are inactive, and painting tabs is slowish, | 405 // As the majority of the tabs are inactive, and painting tabs is slowish, |
| 402 // we cache a handful of the inactive tab backgrounds here. | 406 // we cache a handful of the inactive tab backgrounds here. |
| 403 static ImageCache* image_cache_; | 407 static ImageCache* image_cache_; |
| 404 | 408 |
| 405 DISALLOW_COPY_AND_ASSIGN(Tab); | 409 DISALLOW_COPY_AND_ASSIGN(Tab); |
| 406 }; | 410 }; |
| 407 | 411 |
| 408 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_H_ | 412 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_H_ |
| OLD | NEW |