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

Side by Side Diff: third_party/WebKit/Source/core/events/EventFactory.h

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google, Inc. All Rights Reserved. 2 * Copyright (C) 2011 Google, Inc. All Rights Reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 21 matching lines...) Expand all
32 #include "wtf/text/AtomicString.h" 32 #include "wtf/text/AtomicString.h"
33 33
34 namespace blink { 34 namespace blink {
35 35
36 class Event; 36 class Event;
37 class ExecutionContext; 37 class ExecutionContext;
38 38
39 class EventFactoryBase { 39 class EventFactoryBase {
40 USING_FAST_MALLOC(EventFactoryBase); 40 USING_FAST_MALLOC(EventFactoryBase);
41 public: 41 public:
42 virtual PassRefPtrWillBeRawPtr<Event> create(ExecutionContext*, const String & eventType) = 0; 42 virtual RawPtr<Event> create(ExecutionContext*, const String& eventType) = 0 ;
43 virtual ~EventFactoryBase() { } 43 virtual ~EventFactoryBase() { }
44 44
45 protected: 45 protected:
46 EventFactoryBase() { } 46 EventFactoryBase() { }
47 }; 47 };
48 48
49 class EventFactory final : public EventFactoryBase { 49 class EventFactory final : public EventFactoryBase {
50 public: 50 public:
51 static PassOwnPtr<EventFactory> create() 51 static PassOwnPtr<EventFactory> create()
52 { 52 {
53 return adoptPtr(new EventFactory()); 53 return adoptPtr(new EventFactory());
54 } 54 }
55 55
56 PassRefPtrWillBeRawPtr<Event> create(ExecutionContext*, const String& eventT ype) override; 56 RawPtr<Event> create(ExecutionContext*, const String& eventType) override;
57 }; 57 };
58 58
59 } // namespace blink 59 } // namespace blink
60 60
61 #endif 61 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/events/EventDispatcher.cpp ('k') | third_party/WebKit/Source/core/events/EventListener.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698