| 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 bool canBubble, | 44 bool canBubble, |
| 45 bool cancelable, | 45 bool cancelable, |
| 46 AbstractView* view, | 46 AbstractView* view, |
| 47 int detail, | 47 int detail, |
| 48 EventTarget* relatedTarget, | 48 EventTarget* relatedTarget, |
| 49 InputDeviceCapabilities* sourceCapabilities) | 49 InputDeviceCapabilities* sourceCapabilities) |
| 50 : UIEvent(type, | 50 : UIEvent(type, |
| 51 canBubble, | 51 canBubble, |
| 52 cancelable, | 52 cancelable, |
| 53 ComposedMode::Composed, | 53 ComposedMode::Composed, |
| 54 WTF::monotonicallyIncreasingTime(), | 54 TimeTicks::Now(), |
| 55 view, | 55 view, |
| 56 detail, | 56 detail, |
| 57 sourceCapabilities), | 57 sourceCapabilities), |
| 58 m_relatedTarget(relatedTarget) {} | 58 m_relatedTarget(relatedTarget) {} |
| 59 | 59 |
| 60 FocusEvent::FocusEvent(const AtomicString& type, | 60 FocusEvent::FocusEvent(const AtomicString& type, |
| 61 const FocusEventInit& initializer) | 61 const FocusEventInit& initializer) |
| 62 : UIEvent(type, initializer) { | 62 : UIEvent(type, initializer) { |
| 63 if (initializer.hasRelatedTarget()) | 63 if (initializer.hasRelatedTarget()) |
| 64 m_relatedTarget = initializer.relatedTarget(); | 64 m_relatedTarget = initializer.relatedTarget(); |
| (...skipping 17 matching lines...) Expand all Loading... |
| 82 : EventDispatchMediator(focusEvent) {} | 82 : EventDispatchMediator(focusEvent) {} |
| 83 | 83 |
| 84 DispatchEventResult FocusEventDispatchMediator::dispatchEvent( | 84 DispatchEventResult FocusEventDispatchMediator::dispatchEvent( |
| 85 EventDispatcher& dispatcher) const { | 85 EventDispatcher& dispatcher) const { |
| 86 event().eventPath().adjustForRelatedTarget(dispatcher.node(), | 86 event().eventPath().adjustForRelatedTarget(dispatcher.node(), |
| 87 event().relatedTarget()); | 87 event().relatedTarget()); |
| 88 return EventDispatchMediator::dispatchEvent(dispatcher); | 88 return EventDispatchMediator::dispatchEvent(dispatcher); |
| 89 } | 89 } |
| 90 | 90 |
| 91 } // namespace blink | 91 } // namespace blink |
| OLD | NEW |