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

Side by Side Diff: third_party/WebKit/Source/modules/EventModulesFactory.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 (c) 2014 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2014 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 EventModulesFactory_h 5 #ifndef EventModulesFactory_h
6 #define EventModulesFactory_h 6 #define EventModulesFactory_h
7 7
8 #include "core/events/EventFactory.h" 8 #include "core/events/EventFactory.h"
9 #include "platform/heap/Handle.h" 9 #include "platform/heap/Handle.h"
10 #include "wtf/PassRefPtr.h" 10 #include "wtf/PassRefPtr.h"
11 #include "wtf/PtrUtil.h"
12 #include "wtf/text/AtomicString.h" 11 #include "wtf/text/AtomicString.h"
13 #include <memory>
14 12
15 namespace blink { 13 namespace blink {
16 14
17 class Event; 15 class Event;
18 16
19 class EventModulesFactory final : public EventFactoryBase { 17 class EventModulesFactory final : public EventFactoryBase {
20 public: 18 public:
21 static std::unique_ptr<EventModulesFactory> create() 19 static PassOwnPtr<EventModulesFactory> create()
22 { 20 {
23 return wrapUnique(new EventModulesFactory()); 21 return adoptPtr(new EventModulesFactory());
24 } 22 }
25 23
26 Event* create(ExecutionContext*, const String& eventType) override; 24 Event* create(ExecutionContext*, const String& eventType) override;
27 }; 25 };
28 26
29 } // namespace blink 27 } // namespace blink
30 28
31 #endif 29 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698