| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009 Apple 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 17 matching lines...) Expand all Loading... |
| 28 #define CompositionEvent_h | 28 #define CompositionEvent_h |
| 29 | 29 |
| 30 #include "core/events/CompositionEventInit.h" | 30 #include "core/events/CompositionEventInit.h" |
| 31 #include "core/events/UIEvent.h" | 31 #include "core/events/UIEvent.h" |
| 32 | 32 |
| 33 namespace blink { | 33 namespace blink { |
| 34 | 34 |
| 35 class CompositionEvent final : public UIEvent { | 35 class CompositionEvent final : public UIEvent { |
| 36 DEFINE_WRAPPERTYPEINFO(); | 36 DEFINE_WRAPPERTYPEINFO(); |
| 37 public: | 37 public: |
| 38 static PassRefPtrWillBeRawPtr<CompositionEvent> create() | 38 static RawPtr<CompositionEvent> create() |
| 39 { | 39 { |
| 40 return adoptRefWillBeNoop(new CompositionEvent); | 40 return adoptRefWillBeNoop(new CompositionEvent); |
| 41 } | 41 } |
| 42 | 42 |
| 43 static PassRefPtrWillBeRawPtr<CompositionEvent> create(const AtomicString& t
ype, PassRefPtrWillBeRawPtr<AbstractView> view, const String& data) | 43 static RawPtr<CompositionEvent> create(const AtomicString& type, RawPtr<Abst
ractView> view, const String& data) |
| 44 { | 44 { |
| 45 return adoptRefWillBeNoop(new CompositionEvent(type, view, data)); | 45 return new CompositionEvent(type, view, data); |
| 46 } | 46 } |
| 47 | 47 |
| 48 static PassRefPtrWillBeRawPtr<CompositionEvent> create(const AtomicString& t
ype, const CompositionEventInit& initializer) | 48 static RawPtr<CompositionEvent> create(const AtomicString& type, const Compo
sitionEventInit& initializer) |
| 49 { | 49 { |
| 50 return adoptRefWillBeNoop(new CompositionEvent(type, initializer)); | 50 return new CompositionEvent(type, initializer); |
| 51 } | 51 } |
| 52 | 52 |
| 53 ~CompositionEvent() override; | 53 ~CompositionEvent() override; |
| 54 | 54 |
| 55 void initCompositionEvent(const AtomicString& type, bool canBubble, bool can
celable, PassRefPtrWillBeRawPtr<AbstractView>, const String& data); | 55 void initCompositionEvent(const AtomicString& type, bool canBubble, bool can
celable, RawPtr<AbstractView>, const String& data); |
| 56 | 56 |
| 57 String data() const { return m_data; } | 57 String data() const { return m_data; } |
| 58 | 58 |
| 59 const AtomicString& interfaceName() const override; | 59 const AtomicString& interfaceName() const override; |
| 60 | 60 |
| 61 DECLARE_VIRTUAL_TRACE(); | 61 DECLARE_VIRTUAL_TRACE(); |
| 62 | 62 |
| 63 private: | 63 private: |
| 64 CompositionEvent(); | 64 CompositionEvent(); |
| 65 CompositionEvent(const AtomicString& type, PassRefPtrWillBeRawPtr<AbstractVi
ew>, const String&); | 65 CompositionEvent(const AtomicString& type, RawPtr<AbstractView>, const Strin
g&); |
| 66 CompositionEvent(const AtomicString& type, const CompositionEventInit&); | 66 CompositionEvent(const AtomicString& type, const CompositionEventInit&); |
| 67 | 67 |
| 68 String m_data; | 68 String m_data; |
| 69 }; | 69 }; |
| 70 | 70 |
| 71 } // namespace blink | 71 } // namespace blink |
| 72 | 72 |
| 73 #endif // CompositionEvent_h | 73 #endif // CompositionEvent_h |
| OLD | NEW |