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

Unified Diff: ui/aura/window.h

Issue 7972023: Implicit animations through Layer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More tweaks Created 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/aura/toplevel_window_event_filter.cc ('k') | ui/aura/window.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/window.h
diff --git a/ui/aura/window.h b/ui/aura/window.h
index 17971d78ea8b3e20e0998f7c6ab9e2deab79b515..144f2909240ad25f80c5f724455be96ab4fcf731 100644
--- a/ui/aura/window.h
+++ b/ui/aura/window.h
@@ -18,6 +18,7 @@
class SkCanvas;
namespace ui {
+class Animation;
class Compositor;
class Layer;
}
@@ -78,8 +79,8 @@ class AURA_EXPORT Window : public ui::LayerDelegate {
void SetLayoutManager(LayoutManager* layout_manager);
// Changes the bounds of the window.
- void SetBounds(const gfx::Rect& bounds, int anim_ms);
- const gfx::Rect& bounds() const { return bounds_; }
+ void SetBounds(const gfx::Rect& new_bounds);
+ const gfx::Rect& bounds() const;
// Marks the a portion of window as needing to be painted.
void SchedulePaintInRect(const gfx::Rect& rect);
@@ -151,6 +152,10 @@ class AURA_EXPORT Window : public ui::LayerDelegate {
// Returns true if this window has a mouse capture.
bool HasCapture();
+ // Returns an animation configured with the default duration. All animations
+ // should use this. Caller owns returned value.
+ static ui::Animation* CreateDefaultAnimation();
+
protected:
// Returns the RootWindow or NULL if we don't yet have a RootWindow.
virtual internal::RootWindow* GetRoot();
@@ -168,9 +173,6 @@ class AURA_EXPORT Window : public ui::LayerDelegate {
scoped_ptr<ui::Layer> layer_;
- // Bounds of the window in the desktop's coordinate system.
- gfx::Rect bounds_;
-
// The Window's parent.
// TODO(beng): Implement NULL-ness for toplevels.
Window* parent_;
« no previous file with comments | « ui/aura/toplevel_window_event_filter.cc ('k') | ui/aura/window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698