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 UI_VIEWS_NATIVE_THEME_DELEGATE_H_ | 5 #ifndef UI_VIEWS_NATIVE_THEME_DELEGATE_H_ |
6 #define UI_VIEWS_NATIVE_THEME_DELEGATE_H_ | 6 #define UI_VIEWS_NATIVE_THEME_DELEGATE_H_ |
7 | 7 |
8 #include "ui/gfx/rect.h" | 8 #include "ui/gfx/rect.h" |
9 #include "ui/native_theme/native_theme.h" | 9 #include "ui/native_theme/native_theme.h" |
10 #include "ui/views/views_export.h" | 10 #include "ui/views/views_export.h" |
(...skipping 16 matching lines...) Expand all Loading... |
27 | 27 |
28 // Get the rectangle that should be painted. | 28 // Get the rectangle that should be painted. |
29 virtual gfx::Rect GetThemePaintRect() const = 0; | 29 virtual gfx::Rect GetThemePaintRect() const = 0; |
30 | 30 |
31 // Get the state of the part, along with any extra data needed for drawing. | 31 // Get the state of the part, along with any extra data needed for drawing. |
32 virtual ui::NativeTheme::State GetThemeState( | 32 virtual ui::NativeTheme::State GetThemeState( |
33 ui::NativeTheme::ExtraParams* params) const = 0; | 33 ui::NativeTheme::ExtraParams* params) const = 0; |
34 | 34 |
35 // If the native theme drawign should be animated, return the Animation object | 35 // If the native theme drawign should be animated, return the Animation object |
36 // that controlls it. If no animation is ongoing, NULL may be returned. | 36 // that controlls it. If no animation is ongoing, NULL may be returned. |
37 virtual const ui::Animation* GetThemeAnimation() const = 0; | 37 virtual const gfx::Animation* GetThemeAnimation() const = 0; |
38 | 38 |
39 // If animation is onging, this returns the background native theme state. | 39 // If animation is onging, this returns the background native theme state. |
40 virtual ui::NativeTheme::State GetBackgroundThemeState( | 40 virtual ui::NativeTheme::State GetBackgroundThemeState( |
41 ui::NativeTheme::ExtraParams* params) const = 0; | 41 ui::NativeTheme::ExtraParams* params) const = 0; |
42 | 42 |
43 // If animation is onging, this returns the foreground native theme state. | 43 // If animation is onging, this returns the foreground native theme state. |
44 // This state will be composited over the background using an alpha value | 44 // This state will be composited over the background using an alpha value |
45 // based on the current value of the animation. | 45 // based on the current value of the animation. |
46 virtual ui::NativeTheme::State GetForegroundThemeState( | 46 virtual ui::NativeTheme::State GetForegroundThemeState( |
47 ui::NativeTheme::ExtraParams* params) const = 0; | 47 ui::NativeTheme::ExtraParams* params) const = 0; |
48 }; | 48 }; |
49 | 49 |
50 } // namespace views | 50 } // namespace views |
51 | 51 |
52 #endif // UI_VIEWS_NATIVE_THEME_DELEGATE_H_ | 52 #endif // UI_VIEWS_NATIVE_THEME_DELEGATE_H_ |
OLD | NEW |