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

Side by Side Diff: Source/modules/EventModulesFactory.h

Issue 324813002: Convert raw pointer to PassOwnPtr for EventFactoryBase (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix debug build. Created 6 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
« no previous file with comments | « Source/core/events/EventFactory.h ('k') | Source/modules/InitModules.cpp » ('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) 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/text/AtomicString.h" 11 #include "wtf/text/AtomicString.h"
12 12
13 namespace WebCore { 13 namespace WebCore {
14 14
15 class Event; 15 class Event;
16 16
17 class EventModulesFactory : public EventFactoryBase { 17 class EventModulesFactory FINAL : public EventFactoryBase {
18 public: 18 public:
19 static PassOwnPtr<EventModulesFactory> create()
20 {
21 return adoptPtr(new EventModulesFactory());
22 }
23
19 virtual PassRefPtrWillBeRawPtr<Event> create(const String& eventType) OVERRI DE; 24 virtual PassRefPtrWillBeRawPtr<Event> create(const String& eventType) OVERRI DE;
20 }; 25 };
21 26
22 } 27 }
23 28
24 #endif 29 #endif
OLDNEW
« no previous file with comments | « Source/core/events/EventFactory.h ('k') | Source/modules/InitModules.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698