OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 return eventNames().interfaceForFocusEvent; | 44 return eventNames().interfaceForFocusEvent; |
45 } | 45 } |
46 | 46 |
47 bool FocusEvent::isFocusEvent() const | 47 bool FocusEvent::isFocusEvent() const |
48 { | 48 { |
49 return true; | 49 return true; |
50 } | 50 } |
51 | 51 |
52 FocusEvent::FocusEvent() | 52 FocusEvent::FocusEvent() |
53 { | 53 { |
| 54 ScriptWrappable::init(this); |
54 } | 55 } |
55 | 56 |
56 FocusEvent::FocusEvent(const AtomicString& type, bool canBubble, bool cancelable
, PassRefPtr<AbstractView> view, int detail, PassRefPtr<EventTarget> relatedTarg
et) | 57 FocusEvent::FocusEvent(const AtomicString& type, bool canBubble, bool cancelable
, PassRefPtr<AbstractView> view, int detail, PassRefPtr<EventTarget> relatedTarg
et) |
57 : UIEvent(type, canBubble, cancelable, view, detail) | 58 : UIEvent(type, canBubble, cancelable, view, detail) |
58 , m_relatedTarget(relatedTarget) | 59 , m_relatedTarget(relatedTarget) |
59 { | 60 { |
| 61 ScriptWrappable::init(this); |
60 } | 62 } |
61 | 63 |
62 FocusEvent::FocusEvent(const AtomicString& type, const FocusEventInit& initializ
er) | 64 FocusEvent::FocusEvent(const AtomicString& type, const FocusEventInit& initializ
er) |
63 : UIEvent(type, initializer) | 65 : UIEvent(type, initializer) |
64 , m_relatedTarget(initializer.relatedTarget) | 66 , m_relatedTarget(initializer.relatedTarget) |
65 { | 67 { |
| 68 ScriptWrappable::init(this); |
66 } | 69 } |
67 | 70 |
68 PassRefPtr<FocusEventDispatchMediator> FocusEventDispatchMediator::create(PassRe
fPtr<FocusEvent> focusEvent) | 71 PassRefPtr<FocusEventDispatchMediator> FocusEventDispatchMediator::create(PassRe
fPtr<FocusEvent> focusEvent) |
69 { | 72 { |
70 return adoptRef(new FocusEventDispatchMediator(focusEvent)); | 73 return adoptRef(new FocusEventDispatchMediator(focusEvent)); |
71 } | 74 } |
72 | 75 |
73 FocusEventDispatchMediator::FocusEventDispatchMediator(PassRefPtr<FocusEvent> fo
cusEvent) | 76 FocusEventDispatchMediator::FocusEventDispatchMediator(PassRefPtr<FocusEvent> fo
cusEvent) |
74 : EventDispatchMediator(focusEvent) | 77 : EventDispatchMediator(focusEvent) |
75 { | 78 { |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 { | 126 { |
124 } | 127 } |
125 | 128 |
126 bool FocusOutEventDispatchMediator::dispatchEvent(EventDispatcher* dispatcher) c
onst | 129 bool FocusOutEventDispatchMediator::dispatchEvent(EventDispatcher* dispatcher) c
onst |
127 { | 130 { |
128 EventRetargeter::adjustForFocusEvent(dispatcher->node(), *event(), dispatche
r->eventPath()); | 131 EventRetargeter::adjustForFocusEvent(dispatcher->node(), *event(), dispatche
r->eventPath()); |
129 return EventDispatchMediator::dispatchEvent(dispatcher); | 132 return EventDispatchMediator::dispatchEvent(dispatcher); |
130 } | 133 } |
131 | 134 |
132 } // namespace WebCore | 135 } // namespace WebCore |
OLD | NEW |