| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2017 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 #ifndef ASH_ROTATOR_SCREEN_ROTATION_ANIMATOR_LOCK_H |
| 6 #define ASH_ROTATOR_SCREEN_ROTATION_ANIMATOR_LOCK_H |
| 7 |
| 8 #include "ash/ash_export.h" |
| 9 #include "base/memory/weak_ptr.h" |
| 10 |
| 11 namespace ash { |
| 12 |
| 13 class ScreenRotationAnimator; |
| 14 |
| 15 class ASH_EXPORT ScreenRotationAnimatorLock { |
| 16 public: |
| 17 explicit ScreenRotationAnimatorLock( |
| 18 base::WeakPtr<ScreenRotationAnimator> animator); |
| 19 ~ScreenRotationAnimatorLock(); |
| 20 |
| 21 void lock(); |
| 22 |
| 23 void unlock(); |
| 24 |
| 25 void TimeoutLock(); |
| 26 |
| 27 protected: |
| 28 base::WeakPtr<ScreenRotationAnimator> animator_; |
| 29 |
| 30 DISALLOW_COPY_AND_ASSIGN(ScreenRotationAnimatorLock); |
| 31 }; |
| 32 |
| 33 } // namespace ash |
| 34 |
| 35 #endif // ASH_ROTATOR_SCREEN_ROTATION_ANIMATOR_LOCK_H |
| OLD | NEW |