| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 gfx::Rect favicon_bounds_; | 110 gfx::Rect favicon_bounds_; |
| 111 gfx::Rect title_bounds_; | 111 gfx::Rect title_bounds_; |
| 112 | 112 |
| 113 // The offset used to paint the inactive background image. | 113 // The offset used to paint the inactive background image. |
| 114 gfx::Point background_offset_; | 114 gfx::Point background_offset_; |
| 115 | 115 |
| 116 // Animation used when the title of an inactive mini tab changes. | 116 // Animation used when the title of an inactive mini tab changes. |
| 117 scoped_ptr<ui::MultiAnimation> mini_title_animation_; | 117 scoped_ptr<ui::MultiAnimation> mini_title_animation_; |
| 118 | 118 |
| 119 struct TabImage { | 119 struct TabImage { |
| 120 SkBitmap* image_l; | 120 gfx::ImageSkia* image_l; |
| 121 SkBitmap* image_c; | 121 gfx::ImageSkia* image_c; |
| 122 SkBitmap* image_r; | 122 gfx::ImageSkia* image_r; |
| 123 int l_width; | 123 int l_width; |
| 124 int r_width; | 124 int r_width; |
| 125 int y_offset; | 125 int y_offset; |
| 126 }; | 126 }; |
| 127 static TabImage tab_active_; | 127 static TabImage tab_active_; |
| 128 static TabImage tab_inactive_; | 128 static TabImage tab_inactive_; |
| 129 static TabImage tab_alpha_; | 129 static TabImage tab_alpha_; |
| 130 | 130 |
| 131 // Whether we're showing the icon. It is cached so that we can detect when it | 131 // Whether we're showing the icon. It is cached so that we can detect when it |
| 132 // changes and layout appropriately. | 132 // changes and layout appropriately. |
| 133 bool showing_icon_; | 133 bool showing_icon_; |
| 134 | 134 |
| 135 // Whether we are showing the close button. It is cached so that we can | 135 // Whether we are showing the close button. It is cached so that we can |
| 136 // detect when it changes and layout appropriately. | 136 // detect when it changes and layout appropriately. |
| 137 bool showing_close_button_; | 137 bool showing_close_button_; |
| 138 | 138 |
| 139 // The current color of the close button. | 139 // The current color of the close button. |
| 140 SkColor close_button_color_; | 140 SkColor close_button_color_; |
| 141 | 141 |
| 142 static bool initialized_; | 142 static bool initialized_; |
| 143 | 143 |
| 144 DISALLOW_COPY_AND_ASSIGN(Tab); | 144 DISALLOW_COPY_AND_ASSIGN(Tab); |
| 145 }; | 145 }; |
| 146 | 146 |
| 147 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_H_ | 147 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_H_ |
| OLD | NEW |