| 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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 bool app() const { return data_.app; } | 125 bool app() const { return data_.app; } |
| 126 | 126 |
| 127 // Are we in the process of animating a mini tab state change on this tab? | 127 // Are we in the process of animating a mini tab state change on this tab? |
| 128 void set_animating_mini_change(bool value) { | 128 void set_animating_mini_change(bool value) { |
| 129 data_.animating_mini_change = value; | 129 data_.animating_mini_change = value; |
| 130 } | 130 } |
| 131 | 131 |
| 132 // Updates the display to reflect the contents of this TabRenderer's model. | 132 // Updates the display to reflect the contents of this TabRenderer's model. |
| 133 void UpdateFromModel(); | 133 void UpdateFromModel(); |
| 134 | 134 |
| 135 // Returns true if the Tab is active, false otherwise. |
| 136 virtual bool IsActive() const; |
| 137 |
| 135 // Returns true if the Tab is selected, false otherwise. | 138 // Returns true if the Tab is selected, false otherwise. |
| 136 virtual bool IsSelected() const; | 139 virtual bool IsSelected() const; |
| 137 | 140 |
| 138 // Returns true if the Tab is visible, false otherwise. | 141 // Returns true if the Tab is visible, false otherwise. |
| 139 virtual bool IsVisible() const; | 142 virtual bool IsVisible() const; |
| 140 | 143 |
| 141 // Sets the visibility of the Tab. | 144 // Sets the visibility of the Tab. |
| 142 virtual void SetVisible(bool visible) const; | 145 virtual void SetVisible(bool visible) const; |
| 143 | 146 |
| 144 // Paints the tab into |canvas|. | 147 // Paints the tab into |canvas|. |
| (...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 447 // The current color of the close button. | 450 // The current color of the close button. |
| 448 SkColor close_button_color_; | 451 SkColor close_button_color_; |
| 449 | 452 |
| 450 // Used to listen for theme change notifications. | 453 // Used to listen for theme change notifications. |
| 451 NotificationRegistrar registrar_; | 454 NotificationRegistrar registrar_; |
| 452 | 455 |
| 453 DISALLOW_COPY_AND_ASSIGN(TabRendererGtk); | 456 DISALLOW_COPY_AND_ASSIGN(TabRendererGtk); |
| 454 }; | 457 }; |
| 455 | 458 |
| 456 #endif // CHROME_BROWSER_UI_GTK_TABS_TAB_RENDERER_GTK_H_ | 459 #endif // CHROME_BROWSER_UI_GTK_TABS_TAB_RENDERER_GTK_H_ |
| OLD | NEW |