| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_GTK_TABS_TAB_RENDERER_GTK_H_ | 5 #ifndef CHROME_BROWSER_UI_GTK_TABS_TAB_RENDERER_GTK_H_ |
| 6 #define CHROME_BROWSER_UI_GTK_TABS_TAB_RENDERER_GTK_H_ | 6 #define CHROME_BROWSER_UI_GTK_TABS_TAB_RENDERER_GTK_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <gtk/gtk.h> | 9 #include <gtk/gtk.h> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 400 | 400 |
| 401 // Whether we're showing the icon. It is cached so that we can detect when it | 401 // Whether we're showing the icon. It is cached so that we can detect when it |
| 402 // changes and layout appropriately. | 402 // changes and layout appropriately. |
| 403 bool showing_icon_; | 403 bool showing_icon_; |
| 404 | 404 |
| 405 // Whether we are showing the close button. It is cached so that we can | 405 // Whether we are showing the close button. It is cached so that we can |
| 406 // detect when it changes and layout appropriately. | 406 // detect when it changes and layout appropriately. |
| 407 bool showing_close_button_; | 407 bool showing_close_button_; |
| 408 | 408 |
| 409 // The offset used to animate the favicon location. | 409 // The offset used to animate the favicon location. |
| 410 int fav_icon_hiding_offset_; | 410 int favicon_hiding_offset_; |
| 411 | 411 |
| 412 // The animation object used to swap the favicon with the sad tab icon. | 412 // The animation object used to swap the favicon with the sad tab icon. |
| 413 scoped_ptr<FavIconCrashAnimation> crash_animation_; | 413 scoped_ptr<FavIconCrashAnimation> crash_animation_; |
| 414 | 414 |
| 415 // Set when the crashed favicon should be displayed. | 415 // Set when the crashed favicon should be displayed. |
| 416 bool should_display_crashed_favicon_; | 416 bool should_display_crashed_favicon_; |
| 417 | 417 |
| 418 // The bounds of this Tab. | 418 // The bounds of this Tab. |
| 419 gfx::Rect bounds_; | 419 gfx::Rect bounds_; |
| 420 | 420 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 447 // The current color of the close button. | 447 // The current color of the close button. |
| 448 SkColor close_button_color_; | 448 SkColor close_button_color_; |
| 449 | 449 |
| 450 // Used to listen for theme change notifications. | 450 // Used to listen for theme change notifications. |
| 451 NotificationRegistrar registrar_; | 451 NotificationRegistrar registrar_; |
| 452 | 452 |
| 453 DISALLOW_COPY_AND_ASSIGN(TabRendererGtk); | 453 DISALLOW_COPY_AND_ASSIGN(TabRendererGtk); |
| 454 }; | 454 }; |
| 455 | 455 |
| 456 #endif // CHROME_BROWSER_UI_GTK_TABS_TAB_RENDERER_GTK_H_ | 456 #endif // CHROME_BROWSER_UI_GTK_TABS_TAB_RENDERER_GTK_H_ |
| OLD | NEW |