| 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/geometry/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" |
| 11 | 11 |
| 12 namespace views { | 12 namespace views { |
| 13 | 13 |
| 14 // A delagate that supports animating transtions between different native | 14 // A delagate that supports animating transtions between different native |
| 15 // theme states. This delegate can be used to control a native theme Border | 15 // theme states. This delegate can be used to control a native theme Border |
| 16 // or Painter object. | 16 // or Painter object. |
| 17 // | 17 // |
| 18 // If animation is ongoing, the native theme border or painter will | 18 // If animation is ongoing, the native theme border or painter will |
| (...skipping 24 matching lines...) Expand all Loading... |
| 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 |