Changeset 207174 in webkit
- Timestamp:
- Oct 11, 2016 4:07:35 PM (8 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r207173 r207174 1 2016-10-11 Chris Dumez <cdumez@apple.com> 2 3 Update UIRequestEvent to stop using legacy [ConstructorTemplate=Event] 4 https://bugs.webkit.org/show_bug.cgi?id=163288 5 6 Reviewed by Darin Adler. 7 8 Update UIRequestEvent to stop using legacy [ConstructorTemplate=Event] 9 and use a constructor as in the specification: 10 - https://dvcs.w3.org/hg/IndieUI/raw-file/default/src/indie-ui-events.html#UIRequestEvent 11 12 * Modules/indieui/UIRequestEvent.cpp: 13 (WebCore::UIRequestEvent::create): 14 (WebCore::UIRequestEvent::UIRequestEvent): 15 (WebCore::UIRequestEvent::createForBindings): Deleted. 16 * Modules/indieui/UIRequestEvent.h: 17 * Modules/indieui/UIRequestEvent.idl: 18 1 19 2016-10-11 Dean Jackson <dino@apple.com> 2 20 -
trunk/Source/WebCore/Modules/indieui/UIRequestEvent.cpp
r204681 r207174 31 31 namespace WebCore { 32 32 33 Ref<UIRequestEvent> UIRequestEvent::create ForBindings(const AtomicString& type, const UIRequestEventInit& initializer)33 Ref<UIRequestEvent> UIRequestEvent::create(const AtomicString& type, const Init& initializer, IsTrusted isTrusted) 34 34 { 35 return adoptRef(*new UIRequestEvent(type, initializer ));35 return adoptRef(*new UIRequestEvent(type, initializer, isTrusted)); 36 36 } 37 37 … … 41 41 } 42 42 43 UIRequestEvent::UIRequestEvent(const AtomicString& type, const UIRequestEventInit& initializer)44 : UIEvent(type, initializer )43 UIRequestEvent::UIRequestEvent(const AtomicString& type, const Init& initializer, IsTrusted isTrusted) 44 : UIEvent(type, initializer, isTrusted) 45 45 , m_receiver(initializer.receiver) 46 46 { -
trunk/Source/WebCore/Modules/indieui/UIRequestEvent.h
r204681 r207174 33 33 34 34 namespace WebCore { 35 36 struct UIRequestEventInit : public UIEventInit {37 RefPtr<EventTarget> receiver;38 };39 35 40 36 class UIRequestEvent : public UIEvent { 41 37 public: 42 38 static Ref<UIRequestEvent> create(const AtomicString& type, bool bubbles, bool cancelable, DOMWindow*, int detail, RefPtr<EventTarget>&& receiver); 43 static Ref<UIRequestEvent> createForBindings(const AtomicString& eventType, const UIRequestEventInit&); 39 40 struct Init : UIEventInit { 41 RefPtr<EventTarget> receiver; 42 }; 43 static Ref<UIRequestEvent> create(const AtomicString& eventType, const Init&, IsTrusted = IsTrusted::No); 44 44 45 45 virtual ~UIRequestEvent(); … … 50 50 UIRequestEvent(const AtomicString& type, bool bubbles, bool cancelable, DOMWindow*, int detail, RefPtr<EventTarget>&& receiver); 51 51 52 UIRequestEvent(const AtomicString& type, const UIRequestEventInit&);52 UIRequestEvent(const AtomicString& type, const Init&, IsTrusted); 53 53 54 54 EventInterface eventInterface() const override; -
trunk/Source/WebCore/Modules/indieui/UIRequestEvent.idl
r151827 r207174 26 26 [ 27 27 Conditional=INDIE_UI, 28 Constructor Template=Event28 Constructor(DOMString typeArg, optional UIRequestEventInit dictUIRequestEventInit), 29 29 ] interface UIRequestEvent : UIEvent { 30 30 readonly attribute EventTarget receiver; 31 31 }; 32 32 33 dictionary UIRequestEventInit : UIEventInit { 34 EventTarget? receiver = null; 35 };
Note: See TracChangeset
for help on using the changeset viewer.