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

Unified Diff: chrome/browser/ui/cocoa/constrained_window/constrained_window_animation.h

Issue 10870094: Constrained window sheet controller (test patch) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rename Created 8 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/cocoa/constrained_window/constrained_window_animation.h
diff --git a/chrome/browser/ui/cocoa/constrained_window/constrained_window_animation.h b/chrome/browser/ui/cocoa/constrained_window/constrained_window_animation.h
new file mode 100644
index 0000000000000000000000000000000000000000..3248411ce0661dd48278a6a345c7f8cd130de4a1
--- /dev/null
+++ b/chrome/browser/ui/cocoa/constrained_window/constrained_window_animation.h
@@ -0,0 +1,34 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_ANIMATION_H_
+#define CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_ANIMATION_H_
+
+#import <Cocoa/Cocoa.h>
+
+#include "base/memory/scoped_nsobject.h"
+
+// Base class for all constrained window animation classes.
+@interface ConstrainedWindowAnimationBase : NSAnimation {
+ @protected
+ scoped_nsobject<NSWindow> window_;
+}
+
+- (id)initWithWindow:(NSWindow*)window;
+
+@end
+
+// An animation to show a window.
+@interface ConstrainedWindowAnimationShow : ConstrainedWindowAnimationBase
+@end
+
+// An animation to hide a window.
+@interface ConstrainedWindowAnimationHide : ConstrainedWindowAnimationBase
+@end
+
+// An animation that pulses the window by growing it then shrinking it back.
+@interface ConstrainedWindowAnimationPulse : ConstrainedWindowAnimationBase
+@end
+
+#endif // CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_ANIMATION_H_

Powered by Google App Engine
This is Rietveld 408576698