Home | History | Annotate | Download | only in wm

Lines Matching refs:layer

30 #include "ui/compositor/layer.h"
122 base::TimeDelta duration = window->layer()->GetAnimator()->
132 window->layer()->GetAnimator()->ScheduleAnimation(
138 window->layer()->GetAnimator()->SchedulePauseForProperties(
144 window->layer()->GetAnimator()->ScheduleAnimation(
150 window->layer()->GetAnimator()->ScheduleAnimation(
158 window->layer()->SetOpacity(kWindowAnimation_HideOpacity);
159 ui::ScopedLayerAnimationSettings settings(window->layer()->GetAnimator());
177 window->layer()->SetVisible(false);
193 window->layer()->SetLayerBrightness(start_value);
194 window->layer()->SetLayerGrayscale(start_value);
196 window->layer()->SetOpacity(kWindowAnimation_ShowOpacity);
197 window->layer()->SetVisible(true);
204 ui::ScopedLayerAnimationSettings settings(window->layer()->GetAnimator());
205 window->layer()->GetAnimator()->
210 window->layer()->GetAnimator()->
213 window->layer()->SetOpacity(kWindowAnimation_HideOpacity);
214 window->layer()->SetVisible(false);
265 // the layer's animation completes or compositing is aborted due to GPU crash,
266 // it deletes the layer and removes itself as an observer.
272 // Takes ownership of |layer| and its child layers.
337 // Scale up the old layer while translating to new position.
339 ui::Layer* old_layer = old_layer_owner->root();
343 // Animation observer owns the old layer and deletes itself.
357 // The old layer is on top, and should fade out. The new layer below will
365 // Set the new layer's current transform, such that the user sees a scaled
375 window->layer()->SetTransform(in_transform);
377 // The new layer is on top and should fade in. The old layer below will
379 window->layer()->SetOpacity(kWindowAnimation_HideOpacity);
382 // Animate the new layer to the identity transform, so the window goes to
384 ui::ScopedLayerAnimationSettings settings(window->layer()->GetAnimator());
387 window->layer()->SetTransform(gfx::Transform());
389 // New layer is on top, fade it in.
390 window->layer()->SetOpacity(kWindowAnimation_ShowOpacity);
408 return window->layer()->GetTargetOpacity() != 0.0f &&
441 void SetTransformForScaleAnimation(ui::Layer* layer,
447 transform.Translate(-layer->bounds().width() * (scale - 1.0f) / 2,
448 -layer->bounds().height() * (scale - 1.0f) / 2);
450 layer->SetTransform(transform);