Lines Matching refs:container
29 AnimationContainer* container) OVERRIDE {
33 // Invoked when no more animations are being managed by this container.
34 virtual void AnimationContainerEmpty(AnimationContainer* container) OVERRIDE {
64 // Makes sure the animation ups the ref count of the container and releases it
68 scoped_refptr<AnimationContainer> container(new AnimationContainer());
70 animation->SetContainer(container.get());
71 // Setting the container should up the ref count.
72 EXPECT_FALSE(container->HasOneRef());
77 EXPECT_TRUE(container->HasOneRef());
85 scoped_refptr<AnimationContainer> container(new AnimationContainer());
88 animation1.SetContainer(container.get());
89 animation2.SetContainer(container.get());
93 EXPECT_TRUE(container->is_running());
95 EXPECT_TRUE(container->is_running());
104 // And the container should no longer be runnings.
105 EXPECT_FALSE(container->is_running());
113 scoped_refptr<AnimationContainer> container(new AnimationContainer());
114 container->set_observer(&observer);
116 animation1.SetContainer(container.get());
120 EXPECT_TRUE(container->is_running());
132 // And the container should no longer be running.
133 EXPECT_FALSE(container->is_running());
135 container->set_observer(NULL);