| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 , m_relatedTarget(relatedTarget) | 55 , m_relatedTarget(relatedTarget) |
| 56 { | 56 { |
| 57 } | 57 } |
| 58 | 58 |
| 59 FocusEvent::FocusEvent(const AtomicString& type, const FocusEventInit& initializ
er) | 59 FocusEvent::FocusEvent(const AtomicString& type, const FocusEventInit& initializ
er) |
| 60 : UIEvent(type, initializer) | 60 : UIEvent(type, initializer) |
| 61 , m_relatedTarget(initializer.relatedTarget) | 61 , m_relatedTarget(initializer.relatedTarget) |
| 62 { | 62 { |
| 63 } | 63 } |
| 64 | 64 |
| 65 void FocusEvent::trace(Visitor* visitor) | |
| 66 { | |
| 67 visitor->trace(m_relatedTarget); | |
| 68 UIEvent::trace(visitor); | |
| 69 } | |
| 70 | |
| 71 PassRefPtr<FocusEventDispatchMediator> FocusEventDispatchMediator::create(PassRe
fPtr<FocusEvent> focusEvent) | 65 PassRefPtr<FocusEventDispatchMediator> FocusEventDispatchMediator::create(PassRe
fPtr<FocusEvent> focusEvent) |
| 72 { | 66 { |
| 73 return adoptRef(new FocusEventDispatchMediator(focusEvent)); | 67 return adoptRef(new FocusEventDispatchMediator(focusEvent)); |
| 74 } | 68 } |
| 75 | 69 |
| 76 FocusEventDispatchMediator::FocusEventDispatchMediator(PassRefPtr<FocusEvent> fo
cusEvent) | 70 FocusEventDispatchMediator::FocusEventDispatchMediator(PassRefPtr<FocusEvent> fo
cusEvent) |
| 77 : EventDispatchMediator(focusEvent) | 71 : EventDispatchMediator(focusEvent) |
| 78 { | 72 { |
| 79 } | 73 } |
| 80 | 74 |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 { | 120 { |
| 127 } | 121 } |
| 128 | 122 |
| 129 bool FocusOutEventDispatchMediator::dispatchEvent(EventDispatcher* dispatcher) c
onst | 123 bool FocusOutEventDispatchMediator::dispatchEvent(EventDispatcher* dispatcher) c
onst |
| 130 { | 124 { |
| 131 event()->eventPath().adjustForRelatedTarget(dispatcher->node(), event()->rel
atedTarget()); | 125 event()->eventPath().adjustForRelatedTarget(dispatcher->node(), event()->rel
atedTarget()); |
| 132 return EventDispatchMediator::dispatchEvent(dispatcher); | 126 return EventDispatchMediator::dispatchEvent(dispatcher); |
| 133 } | 127 } |
| 134 | 128 |
| 135 } // namespace blink | 129 } // namespace blink |
| OLD | NEW |