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

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

Issue 2080623002: Revert "Remove OwnPtr from Blink." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 <memory> 11 #include "wtf/OwnPtr.h"
12 #include "wtf/PassOwnPtr.h"
12 13
13 namespace blink { 14 namespace blink {
14 15
15 class PLATFORM_EXPORT CompositorTransformKeyframe { 16 class PLATFORM_EXPORT CompositorTransformKeyframe {
16 WTF_MAKE_NONCOPYABLE(CompositorTransformKeyframe); 17 WTF_MAKE_NONCOPYABLE(CompositorTransformKeyframe);
17 public: 18 public:
18 CompositorTransformKeyframe(double time, std::unique_ptr<CompositorTransform Operations> value); 19 CompositorTransformKeyframe(double time, PassOwnPtr<CompositorTransformOpera tions> value);
19 ~CompositorTransformKeyframe(); 20 ~CompositorTransformKeyframe();
20 21
21 double time() const; 22 double time() const;
22 const CompositorTransformOperations& value() const; 23 const CompositorTransformOperations& value() const;
23 24
24 private: 25 private:
25 double m_time; 26 double m_time;
26 std::unique_ptr<CompositorTransformOperations> m_value; 27 OwnPtr<CompositorTransformOperations> m_value;
27 }; 28 };
28 29
29 } // namespace blink 30 } // namespace blink
30 31
31 #endif // CompositorTransformKeyframe_h 32 #endif // CompositorTransformKeyframe_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698