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/gtest_prod_util.h" | 11 #include "base/gtest_prod_util.h" |
| 12 #include "base/macros.h" |
12 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
13 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
14 #include "chrome/browser/ui/views/tabs/tab_renderer_data.h" | 15 #include "chrome/browser/ui/views/tabs/tab_renderer_data.h" |
15 #include "ui/base/layout.h" | 16 #include "ui/base/layout.h" |
16 #include "ui/gfx/animation/animation_delegate.h" | 17 #include "ui/gfx/animation/animation_delegate.h" |
17 #include "ui/gfx/geometry/point.h" | 18 #include "ui/gfx/geometry/point.h" |
18 #include "ui/gfx/paint_throbber.h" | 19 #include "ui/gfx/paint_throbber.h" |
19 #include "ui/views/context_menu_controller.h" | 20 #include "ui/views/context_menu_controller.h" |
20 #include "ui/views/controls/button/button.h" | 21 #include "ui/views/controls/button/button.h" |
21 #include "ui/views/controls/glow_hover_controller.h" | 22 #include "ui/views/controls/glow_hover_controller.h" |
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
406 SkColor button_color_; | 407 SkColor button_color_; |
407 | 408 |
408 // As the majority of the tabs are inactive, and painting tabs is slowish, | 409 // As the majority of the tabs are inactive, and painting tabs is slowish, |
409 // we cache a handful of the inactive tab backgrounds here. | 410 // we cache a handful of the inactive tab backgrounds here. |
410 static ImageCache* image_cache_; | 411 static ImageCache* image_cache_; |
411 | 412 |
412 DISALLOW_COPY_AND_ASSIGN(Tab); | 413 DISALLOW_COPY_AND_ASSIGN(Tab); |
413 }; | 414 }; |
414 | 415 |
415 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_H_ | 416 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_H_ |
OLD | NEW |