1 // Copyright 2013 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. 4 5 #include "ui/aura/client/animation_host.h" 6 7 #include "base/compiler_specific.h" 8 #include "ui/aura/aura_export.h" 9 10 #include "ui/aura/env.h" 11 #include "ui/aura/root_window.h" 12 #include "ui/aura/window_property.h" 13 14 DECLARE_WINDOW_PROPERTY_TYPE(aura::client::AnimationHost*) 15 16 namespace aura { 17 namespace client { 18 19 DEFINE_WINDOW_PROPERTY_KEY(AnimationHost*, kRootWindowAnimationHostKey, NULL); 20 21 void SetAnimationHost(Window* window, AnimationHost* animation_host) { 22 DCHECK(window); 23 window->SetProperty(kRootWindowAnimationHostKey, animation_host); 24 } 25 26 AnimationHost* GetAnimationHost(Window* window) { 27 DCHECK(window); 28 return window->GetProperty(kRootWindowAnimationHostKey); 29 } 30 31 } // namespace client 32 } // namespace aura 33