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

Unified Diff: ui/views/widget/window_visibility_animation_aura.h

Issue 693523003: MacViews: Put wm window animation calls behind an interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@views-clipboard
Patch Set: Created 6 years, 2 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: ui/views/widget/window_visibility_animation_aura.h
diff --git a/ui/views/widget/window_visibility_animation_aura.h b/ui/views/widget/window_visibility_animation_aura.h
new file mode 100644
index 0000000000000000000000000000000000000000..14685ab6e434861610fba3e46fb43e6d4daee217
--- /dev/null
+++ b/ui/views/widget/window_visibility_animation_aura.h
@@ -0,0 +1,32 @@
+// Copyright 2014 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 UI_VIEWS_WIDGET_WINDOW_VISIBILITY_ANIMATION_AURA_H_
+#define UI_VIEWS_WIDGET_WINDOW_VISIBILITY_ANIMATION_AURA_H_
+
+#include "ui/views/widget/widget.h"
+
+namespace aura {
+class Window;
+}
+
+namespace views {
+
+class WindowVisibilityAnimationAura : public Widget::VisibilityAnimation {
+ public:
+ WindowVisibilityAnimationAura(aura::Window* window);
+ virtual ~WindowVisibilityAnimationAura();
+
+ void SetDuration(const base::TimeDelta& duration) override;
+ void SetTransition(Transition transition) override;
+
+ private:
+ aura::Window* window_; // Weak. Owned by our owner.
+
+ DISALLOW_COPY_AND_ASSIGN(WindowVisibilityAnimationAura);
+};
+
+} // namespace views
+
+#endif // UI_VIEWS_WIDGET_WINDOW_VISIBILITY_ANIMATION_AURA_H_

Powered by Google App Engine
This is Rietveld 408576698