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 MediaIndicatorButton; | 23 class MediaIndicatorButton; |
24 class TabController; | 24 class TabController; |
25 | 25 |
26 namespace gfx { | 26 namespace gfx { |
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
378 SkColor close_button_color_; | 378 SkColor close_button_color_; |
379 | 379 |
380 // As the majority of the tabs are inactive, and painting tabs is slowish, | 380 // As the majority of the tabs are inactive, and painting tabs is slowish, |
381 // we cache a handful of the inactive tab backgrounds here. | 381 // we cache a handful of the inactive tab backgrounds here. |
382 static ImageCache* image_cache_; | 382 static ImageCache* image_cache_; |
383 | 383 |
384 DISALLOW_COPY_AND_ASSIGN(Tab); | 384 DISALLOW_COPY_AND_ASSIGN(Tab); |
385 }; | 385 }; |
386 | 386 |
387 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_H_ | 387 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_H_ |
OLD | NEW |