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

Side by Side Diff: third_party/WebKit/Source/platform/animation/CompositorTransformKeyframe.h

Issue 2050123002: Remove OwnPtr from Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: First attempt to land. Created 4 years, 6 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 CompositorTransformKeyframe_h 5 #ifndef CompositorTransformKeyframe_h
6 #define CompositorTransformKeyframe_h 6 #define CompositorTransformKeyframe_h
7 7
8 #include "platform/PlatformExport.h" 8 #include "platform/PlatformExport.h"
9 #include "platform/animation/CompositorTransformOperations.h" 9 #include "platform/animation/CompositorTransformOperations.h"
10 #include "wtf/Noncopyable.h" 10 #include "wtf/Noncopyable.h"
11 #include "wtf/OwnPtr.h" 11 #include <memory>
12 #include "wtf/PassOwnPtr.h"
13 12
14 namespace blink { 13 namespace blink {
15 14
16 class PLATFORM_EXPORT CompositorTransformKeyframe { 15 class PLATFORM_EXPORT CompositorTransformKeyframe {
17 WTF_MAKE_NONCOPYABLE(CompositorTransformKeyframe); 16 WTF_MAKE_NONCOPYABLE(CompositorTransformKeyframe);
18 public: 17 public:
19 CompositorTransformKeyframe(double time, PassOwnPtr<CompositorTransformOpera tions> value); 18 CompositorTransformKeyframe(double time, std::unique_ptr<CompositorTransform Operations> value);
20 ~CompositorTransformKeyframe(); 19 ~CompositorTransformKeyframe();
21 20
22 double time() const; 21 double time() const;
23 const CompositorTransformOperations& value() const; 22 const CompositorTransformOperations& value() const;
24 23
25 private: 24 private:
26 double m_time; 25 double m_time;
27 OwnPtr<CompositorTransformOperations> m_value; 26 std::unique_ptr<CompositorTransformOperations> m_value;
28 }; 27 };
29 28
30 } // namespace blink 29 } // namespace blink
31 30
32 #endif // CompositorTransformKeyframe_h 31 #endif // CompositorTransformKeyframe_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698