Supervised user whitelists: Cleanup
[chromium-blink-merge.git] / ui / compositor / closure_animation_observer.cc
blob2ac7f91c8d2a9209786b9a70f0d18266133674d8
1 // Copyright 2014 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.
5 #include "ui/compositor/closure_animation_observer.h"
7 namespace ui {
9 ClosureAnimationObserver::ClosureAnimationObserver(const base::Closure& closure)
10 : closure_(closure) {
11 DCHECK(!closure_.is_null());
14 ClosureAnimationObserver::~ClosureAnimationObserver() {
17 void ClosureAnimationObserver::OnImplicitAnimationsCompleted() {
18 closure_.Run();
19 delete this;
22 } // namespace ui