| 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 16 matching lines...) Expand all Loading... |
| 27 #define PageTransitionEvent_h | 27 #define PageTransitionEvent_h |
| 28 | 28 |
| 29 #include "core/events/Event.h" | 29 #include "core/events/Event.h" |
| 30 #include "core/events/PageTransitionEventInit.h" | 30 #include "core/events/PageTransitionEventInit.h" |
| 31 | 31 |
| 32 namespace blink { | 32 namespace blink { |
| 33 | 33 |
| 34 class PageTransitionEvent final : public Event { | 34 class PageTransitionEvent final : public Event { |
| 35 DEFINE_WRAPPERTYPEINFO(); | 35 DEFINE_WRAPPERTYPEINFO(); |
| 36 public: | 36 public: |
| 37 static PassRefPtrWillBeRawPtr<PageTransitionEvent> create() | 37 static RawPtr<PageTransitionEvent> create() |
| 38 { | 38 { |
| 39 return adoptRefWillBeNoop(new PageTransitionEvent); | 39 return adoptRefWillBeNoop(new PageTransitionEvent); |
| 40 } | 40 } |
| 41 static PassRefPtrWillBeRawPtr<PageTransitionEvent> create(const AtomicString
& type, bool persisted) | 41 static RawPtr<PageTransitionEvent> create(const AtomicString& type, bool per
sisted) |
| 42 { | 42 { |
| 43 return adoptRefWillBeNoop(new PageTransitionEvent(type, persisted)); | 43 return new PageTransitionEvent(type, persisted); |
| 44 } | 44 } |
| 45 static PassRefPtrWillBeRawPtr<PageTransitionEvent> create(const AtomicString
& type, const PageTransitionEventInit& initializer) | 45 static RawPtr<PageTransitionEvent> create(const AtomicString& type, const Pa
geTransitionEventInit& initializer) |
| 46 { | 46 { |
| 47 return adoptRefWillBeNoop(new PageTransitionEvent(type, initializer)); | 47 return new PageTransitionEvent(type, initializer); |
| 48 } | 48 } |
| 49 | 49 |
| 50 ~PageTransitionEvent() override; | 50 ~PageTransitionEvent() override; |
| 51 | 51 |
| 52 const AtomicString& interfaceName() const override; | 52 const AtomicString& interfaceName() const override; |
| 53 | 53 |
| 54 bool persisted() const { return m_persisted; } | 54 bool persisted() const { return m_persisted; } |
| 55 | 55 |
| 56 DECLARE_VIRTUAL_TRACE(); | 56 DECLARE_VIRTUAL_TRACE(); |
| 57 | 57 |
| 58 private: | 58 private: |
| 59 PageTransitionEvent(); | 59 PageTransitionEvent(); |
| 60 PageTransitionEvent(const AtomicString& type, bool persisted); | 60 PageTransitionEvent(const AtomicString& type, bool persisted); |
| 61 PageTransitionEvent(const AtomicString&, const PageTransitionEventInit&); | 61 PageTransitionEvent(const AtomicString&, const PageTransitionEventInit&); |
| 62 | 62 |
| 63 bool m_persisted; | 63 bool m_persisted; |
| 64 }; | 64 }; |
| 65 | 65 |
| 66 } // namespace blink | 66 } // namespace blink |
| 67 | 67 |
| 68 #endif // PageTransitionEvent_h | 68 #endif // PageTransitionEvent_h |
| OLD | NEW |