| 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 15 matching lines...) Expand all Loading... |
| 26 #include "config.h" | 26 #include "config.h" |
| 27 #include "core/events/FocusEvent.h" | 27 #include "core/events/FocusEvent.h" |
| 28 | 28 |
| 29 #include "core/events/Event.h" | 29 #include "core/events/Event.h" |
| 30 #include "core/events/EventDispatcher.h" | 30 #include "core/events/EventDispatcher.h" |
| 31 #include "core/events/ThreadLocalEventNames.h" | 31 #include "core/events/ThreadLocalEventNames.h" |
| 32 | 32 |
| 33 namespace WebCore { | 33 namespace WebCore { |
| 34 | 34 |
| 35 FocusEventInit::FocusEventInit() | 35 FocusEventInit::FocusEventInit() |
| 36 : relatedTarget(0) | 36 : relatedTarget(nullptr) |
| 37 { | 37 { |
| 38 } | 38 } |
| 39 | 39 |
| 40 const AtomicString& FocusEvent::interfaceName() const | 40 const AtomicString& FocusEvent::interfaceName() const |
| 41 { | 41 { |
| 42 return EventNames::FocusEvent; | 42 return EventNames::FocusEvent; |
| 43 } | 43 } |
| 44 | 44 |
| 45 bool FocusEvent::isFocusEvent() const | 45 bool FocusEvent::isFocusEvent() const |
| 46 { | 46 { |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 { | 124 { |
| 125 } | 125 } |
| 126 | 126 |
| 127 bool FocusOutEventDispatchMediator::dispatchEvent(EventDispatcher* dispatcher) c
onst | 127 bool FocusOutEventDispatchMediator::dispatchEvent(EventDispatcher* dispatcher) c
onst |
| 128 { | 128 { |
| 129 event()->eventPath().adjustForRelatedTarget(dispatcher->node(), event()->rel
atedTarget()); | 129 event()->eventPath().adjustForRelatedTarget(dispatcher->node(), event()->rel
atedTarget()); |
| 130 return EventDispatchMediator::dispatchEvent(dispatcher); | 130 return EventDispatchMediator::dispatchEvent(dispatcher); |
| 131 } | 131 } |
| 132 | 132 |
| 133 } // namespace WebCore | 133 } // namespace WebCore |
| OLD | NEW |