Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / ui / base / cocoa / constrained_window / constrained_window_animation.h
blob02962f8ae539601532e30c95cdfb500686569408
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
3 // found in the LICENSE file.
5 #ifndef UI_BASE_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_ANIMATION_H_
6 #define UI_BASE_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_ANIMATION_H_
8 #import <Cocoa/Cocoa.h>
10 #include "base/mac/scoped_nsobject.h"
11 #include "ui/base/ui_base_export.h"
13 // Base class for all constrained window animation classes.
14 UI_BASE_EXPORT
15 @interface ConstrainedWindowAnimationBase : NSAnimation {
16 @protected
17 base::scoped_nsobject<NSWindow> window_;
20 - (id)initWithWindow:(NSWindow*)window;
22 @end
24 // An animation to show a window.
25 UI_BASE_EXPORT
26 @interface ConstrainedWindowAnimationShow : ConstrainedWindowAnimationBase
27 @end
29 // An animation to hide a window.
30 UI_BASE_EXPORT
31 @interface ConstrainedWindowAnimationHide : ConstrainedWindowAnimationBase
32 @end
34 // An animation that pulses the window by growing it then shrinking it back.
35 UI_BASE_EXPORT
36 @interface ConstrainedWindowAnimationPulse : ConstrainedWindowAnimationBase
37 @end
39 #endif // UI_BASE_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_ANIMATION_H_