| 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 13 matching lines...) Expand all Loading... |
| 24 */ | 24 */ |
| 25 | 25 |
| 26 #ifndef FocusEvent_h | 26 #ifndef FocusEvent_h |
| 27 #define FocusEvent_h | 27 #define FocusEvent_h |
| 28 | 28 |
| 29 #include "core/events/EventTarget.h" | 29 #include "core/events/EventTarget.h" |
| 30 #include "core/events/UIEvent.h" | 30 #include "core/events/UIEvent.h" |
| 31 | 31 |
| 32 namespace blink { | 32 namespace blink { |
| 33 | 33 |
| 34 class Node; | |
| 35 | |
| 36 struct FocusEventInit : public UIEventInit { | 34 struct FocusEventInit : public UIEventInit { |
| 37 FocusEventInit(); | 35 FocusEventInit(); |
| 38 | 36 |
| 39 RefPtrWillBeMember<EventTarget> relatedTarget; | 37 RefPtrWillBeMember<EventTarget> relatedTarget; |
| 40 }; | 38 }; |
| 41 | 39 |
| 42 class FocusEvent final : public UIEvent { | 40 class FocusEvent final : public UIEvent { |
| 43 DEFINE_WRAPPERTYPEINFO(); | 41 DEFINE_WRAPPERTYPEINFO(); |
| 44 public: | 42 public: |
| 45 static PassRefPtrWillBeRawPtr<FocusEvent> create() | 43 static PassRefPtrWillBeRawPtr<FocusEvent> create() |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 static PassRefPtrWillBeRawPtr<FocusOutEventDispatchMediator> create(PassRefP
trWillBeRawPtr<FocusEvent>); | 105 static PassRefPtrWillBeRawPtr<FocusOutEventDispatchMediator> create(PassRefP
trWillBeRawPtr<FocusEvent>); |
| 108 private: | 106 private: |
| 109 explicit FocusOutEventDispatchMediator(PassRefPtrWillBeRawPtr<FocusEvent>); | 107 explicit FocusOutEventDispatchMediator(PassRefPtrWillBeRawPtr<FocusEvent>); |
| 110 FocusEvent* event() const { return static_cast<FocusEvent*>(EventDispatchMed
iator::event()); } | 108 FocusEvent* event() const { return static_cast<FocusEvent*>(EventDispatchMed
iator::event()); } |
| 111 virtual bool dispatchEvent(EventDispatcher*) const override; | 109 virtual bool dispatchEvent(EventDispatcher*) const override; |
| 112 }; | 110 }; |
| 113 | 111 |
| 114 } // namespace blink | 112 } // namespace blink |
| 115 | 113 |
| 116 #endif // FocusEvent_h | 114 #endif // FocusEvent_h |
| OLD | NEW |