OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_TOOLBAR_WRENCH_ICON_PAINTER_H_ | 5 #ifndef CHROME_BROWSER_UI_TOOLBAR_WRENCH_ICON_PAINTER_H_ |
6 #define CHROME_BROWSER_UI_TOOLBAR_WRENCH_ICON_PAINTER_H_ | 6 #define CHROME_BROWSER_UI_TOOLBAR_WRENCH_ICON_PAINTER_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/gtest_prod_util.h" | 9 #include "base/gtest_prod_util.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 | 56 |
57 void Paint(gfx::Canvas* canvas, | 57 void Paint(gfx::Canvas* canvas, |
58 ui::ThemeProvider* theme_provider, | 58 ui::ThemeProvider* theme_provider, |
59 const gfx::Rect& rect, | 59 const gfx::Rect& rect, |
60 BezelType bezel_type); | 60 BezelType bezel_type); |
61 | 61 |
62 private: | 62 private: |
63 FRIEND_TEST_ALL_PREFIXES(WrenchIconPainterTest, PaintCallback); | 63 FRIEND_TEST_ALL_PREFIXES(WrenchIconPainterTest, PaintCallback); |
64 | 64 |
65 // AnimationDelegate: | 65 // AnimationDelegate: |
66 virtual void AnimationProgressed(const gfx::Animation* animation) OVERRIDE; | 66 virtual void AnimationProgressed(const gfx::Animation* animation) override; |
67 | 67 |
68 // Gets the image ID used to draw bars for the current severity level. | 68 // Gets the image ID used to draw bars for the current severity level. |
69 int GetCurrentSeverityImageID() const; | 69 int GetCurrentSeverityImageID() const; |
70 | 70 |
71 Delegate* delegate_; | 71 Delegate* delegate_; |
72 Severity severity_; | 72 Severity severity_; |
73 gfx::ImageSkia badge_; | 73 gfx::ImageSkia badge_; |
74 scoped_ptr<gfx::MultiAnimation> animation_; | 74 scoped_ptr<gfx::MultiAnimation> animation_; |
75 | 75 |
76 DISALLOW_COPY_AND_ASSIGN(WrenchIconPainter); | 76 DISALLOW_COPY_AND_ASSIGN(WrenchIconPainter); |
77 }; | 77 }; |
78 | 78 |
79 #endif // CHROME_BROWSER_UI_TOOLBAR_WRENCH_ICON_PAINTER_H_ | 79 #endif // CHROME_BROWSER_UI_TOOLBAR_WRENCH_ICON_PAINTER_H_ |
OLD | NEW |