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

Side by Side Diff: ash/wm/window_animations.h

Issue 10800020: Add brightness/grayscale animations and use them for OOBE boot transition (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix hide animation Created 8 years, 5 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 | « ash/shell.cc ('k') | ash/wm/window_animations.cc » ('j') | 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 ASH_WM_WINDOW_ANIMATIONS_H_ 5 #ifndef ASH_WM_WINDOW_ANIMATIONS_H_
6 #define ASH_WM_WINDOW_ANIMATIONS_H_ 6 #define ASH_WM_WINDOW_ANIMATIONS_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 9
10 namespace aura { 10 namespace aura {
(...skipping 17 matching lines...) Expand all
28 // decide based on window 28 // decide based on window
29 // type. 29 // type.
30 WINDOW_VISIBILITY_ANIMATION_TYPE_DROP, // Window shrinks in. 30 WINDOW_VISIBILITY_ANIMATION_TYPE_DROP, // Window shrinks in.
31 WINDOW_VISIBILITY_ANIMATION_TYPE_VERTICAL, // Vertical Glenimation. 31 WINDOW_VISIBILITY_ANIMATION_TYPE_VERTICAL, // Vertical Glenimation.
32 WINDOW_VISIBILITY_ANIMATION_TYPE_FADE, // Fades in/out. 32 WINDOW_VISIBILITY_ANIMATION_TYPE_FADE, // Fades in/out.
33 WINDOW_VISIBILITY_ANIMATION_TYPE_WORKSPACE_SHOW, // Windows are scaled and 33 WINDOW_VISIBILITY_ANIMATION_TYPE_WORKSPACE_SHOW, // Windows are scaled and
34 // fade in. 34 // fade in.
35 WINDOW_VISIBILITY_ANIMATION_TYPE_WORKSPACE_HIDE, // Inverse of SHOW. 35 WINDOW_VISIBILITY_ANIMATION_TYPE_WORKSPACE_HIDE, // Inverse of SHOW.
36 WINDOW_VISIBILITY_ANIMATION_TYPE_MINIMIZE, // Window scale/rotates down 36 WINDOW_VISIBILITY_ANIMATION_TYPE_MINIMIZE, // Window scale/rotates down
37 // to its launcher icon. 37 // to its launcher icon.
38 // Fade in/out using brightness and grayscale web filters.
39 WINDOW_VISIBILITY_ANIMATION_TYPE_BRIGHTNESS_GRAYSCALE,
38 }; 40 };
39 41
40 // Type of visibility change transition that a window should animate. 42 // Type of visibility change transition that a window should animate.
41 // Default behavior is to animate both show and hide. 43 // Default behavior is to animate both show and hide.
42 enum WindowVisibilityAnimationTransition { 44 enum WindowVisibilityAnimationTransition {
43 // 0 is used as default. 45 // 0 is used as default.
44 ANIMATE_SHOW = 0x1, 46 ANIMATE_SHOW = 0x1,
45 ANIMATE_HIDE = 0x2, 47 ANIMATE_HIDE = 0x2,
46 ANIMATE_BOTH = ANIMATE_SHOW | ANIMATE_HIDE, 48 ANIMATE_BOTH = ANIMATE_SHOW | ANIMATE_HIDE,
47 ANIMATE_NONE = 0x4, 49 ANIMATE_NONE = 0x4,
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 92
91 // Delay the old layer deletion so that test can verify the behavior of 93 // Delay the old layer deletion so that test can verify the behavior of
92 // old layer. 94 // old layer.
93 ASH_EXPORT void SetDelayedOldLayerDeletionInCrossFadeForTest(bool value); 95 ASH_EXPORT void SetDelayedOldLayerDeletionInCrossFadeForTest(bool value);
94 96
95 } // namespace internal 97 } // namespace internal
96 } // namespace ash 98 } // namespace ash
97 99
98 100
99 #endif // ASH_WM_WINDOW_ANIMATIONS_H_ 101 #endif // ASH_WM_WINDOW_ANIMATIONS_H_
OLDNEW
« no previous file with comments | « ash/shell.cc ('k') | ash/wm/window_animations.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698