Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(385)

Side by Side Diff: Source/core/events/FocusEvent.h

Issue 656683009: Clean up forward declarations in Source/core/events (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/core/events/EventTarget.h ('k') | Source/core/events/KeyboardEvent.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/core/events/EventTarget.h ('k') | Source/core/events/KeyboardEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698