| 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 |
| 11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 13 #include "chrome/browser/ui/views/tabs/tab_renderer_data.h" | 13 #include "chrome/browser/ui/views/tabs/tab_renderer_data.h" |
| 14 #include "ui/base/layout.h" | 14 #include "ui/base/layout.h" |
| 15 #include "ui/gfx/animation/animation_delegate.h" | 15 #include "ui/gfx/animation/animation_delegate.h" |
| 16 #include "ui/gfx/point.h" | 16 #include "ui/gfx/geometry/point.h" |
| 17 #include "ui/views/context_menu_controller.h" | 17 #include "ui/views/context_menu_controller.h" |
| 18 #include "ui/views/controls/button/button.h" | 18 #include "ui/views/controls/button/button.h" |
| 19 #include "ui/views/controls/glow_hover_controller.h" | 19 #include "ui/views/controls/glow_hover_controller.h" |
| 20 #include "ui/views/masked_targeter_delegate.h" | 20 #include "ui/views/masked_targeter_delegate.h" |
| 21 #include "ui/views/view.h" | 21 #include "ui/views/view.h" |
| 22 | 22 |
| 23 class TabController; | 23 class TabController; |
| 24 | 24 |
| 25 namespace gfx { | 25 namespace gfx { |
| 26 class Animation; | 26 class Animation; |
| (...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 383 SkColor close_button_color_; | 383 SkColor close_button_color_; |
| 384 | 384 |
| 385 // As the majority of the tabs are inactive, and painting tabs is slowish, | 385 // As the majority of the tabs are inactive, and painting tabs is slowish, |
| 386 // we cache a handful of the inactive tab backgrounds here. | 386 // we cache a handful of the inactive tab backgrounds here. |
| 387 static ImageCache* image_cache_; | 387 static ImageCache* image_cache_; |
| 388 | 388 |
| 389 DISALLOW_COPY_AND_ASSIGN(Tab); | 389 DISALLOW_COPY_AND_ASSIGN(Tab); |
| 390 }; | 390 }; |
| 391 | 391 |
| 392 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_H_ | 392 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_H_ |
| OLD | NEW |