Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(102)

Side by Side Diff: ui/views/native_theme_delegate.h

Issue 23531053: ui/base/animation -> ui/gfx/animation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge 2 trunk Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/views/corewm/window_animations_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « ui/views/corewm/window_animations_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698