Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(244)

Side by Side Diff: ui/compositor/layer_threaded_animation_delegate.h

Issue 1868363002: Replace scoped_ptr with std::unique_ptr in //ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@scopedptrcc
Patch Set: scopedptrui: rebase-make_scoped_ptr Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/compositor/layer_owner_unittest.cc ('k') | ui/compositor/layer_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_COMPOSITOR_LAYER_THREADED_ANIMATION_DELEGATE_H_ 5 #ifndef UI_COMPOSITOR_LAYER_THREADED_ANIMATION_DELEGATE_H_
6 #define UI_COMPOSITOR_LAYER_THREADED_ANIMATION_DELEGATE_H_ 6 #define UI_COMPOSITOR_LAYER_THREADED_ANIMATION_DELEGATE_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include <memory>
9
9 #include "cc/animation/animation.h" 10 #include "cc/animation/animation.h"
10 #include "ui/compositor/compositor_export.h" 11 #include "ui/compositor/compositor_export.h"
11 12
12 namespace ui { 13 namespace ui {
13 14
14 // Attach CC animations using this interface. 15 // Attach CC animations using this interface.
15 class COMPOSITOR_EXPORT LayerThreadedAnimationDelegate { 16 class COMPOSITOR_EXPORT LayerThreadedAnimationDelegate {
16 public: 17 public:
17 virtual void AddThreadedAnimation(scoped_ptr<cc::Animation> animation) = 0; 18 virtual void AddThreadedAnimation(
19 std::unique_ptr<cc::Animation> animation) = 0;
18 virtual void RemoveThreadedAnimation(int animation_id) = 0; 20 virtual void RemoveThreadedAnimation(int animation_id) = 0;
19 21
20 protected: 22 protected:
21 virtual ~LayerThreadedAnimationDelegate() {} 23 virtual ~LayerThreadedAnimationDelegate() {}
22 }; 24 };
23 25
24 } // namespace ui 26 } // namespace ui
25 27
26 #endif // UI_COMPOSITOR_LAYER_THREADED_ANIMATION_DELEGATE_H_ 28 #endif // UI_COMPOSITOR_LAYER_THREADED_ANIMATION_DELEGATE_H_
OLDNEW
« no previous file with comments | « ui/compositor/layer_owner_unittest.cc ('k') | ui/compositor/layer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698