| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |