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

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

Issue 181153003: Make Event RefCountedGarbageCollected and implement trace() methods to the Event hierarcy (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 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 | Annotate | Revision Log
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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 ScriptWrappable::init(this); 59 ScriptWrappable::init(this);
60 } 60 }
61 61
62 FocusEvent::FocusEvent(const AtomicString& type, const FocusEventInit& initializ er) 62 FocusEvent::FocusEvent(const AtomicString& type, const FocusEventInit& initializ er)
63 : UIEvent(type, initializer) 63 : UIEvent(type, initializer)
64 , m_relatedTarget(initializer.relatedTarget) 64 , m_relatedTarget(initializer.relatedTarget)
65 { 65 {
66 ScriptWrappable::init(this); 66 ScriptWrappable::init(this);
67 } 67 }
68 68
69 void FocusEvent::trace(Visitor* visitor)
70 {
71 UIEvent::trace(visitor);
72 }
73
69 PassRefPtr<FocusEventDispatchMediator> FocusEventDispatchMediator::create(PassRe fPtr<FocusEvent> focusEvent) 74 PassRefPtr<FocusEventDispatchMediator> FocusEventDispatchMediator::create(PassRe fPtr<FocusEvent> focusEvent)
70 { 75 {
71 return adoptRef(new FocusEventDispatchMediator(focusEvent)); 76 return adoptRef(new FocusEventDispatchMediator(focusEvent));
72 } 77 }
73 78
74 FocusEventDispatchMediator::FocusEventDispatchMediator(PassRefPtr<FocusEvent> fo cusEvent) 79 FocusEventDispatchMediator::FocusEventDispatchMediator(PassRefPtr<FocusEvent> fo cusEvent)
75 : EventDispatchMediator(focusEvent) 80 : EventDispatchMediator(focusEvent)
76 { 81 {
77 } 82 }
78 83
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 { 129 {
125 } 130 }
126 131
127 bool FocusOutEventDispatchMediator::dispatchEvent(EventDispatcher* dispatcher) c onst 132 bool FocusOutEventDispatchMediator::dispatchEvent(EventDispatcher* dispatcher) c onst
128 { 133 {
129 event()->eventPath().adjustForRelatedTarget(dispatcher->node(), event()->rel atedTarget()); 134 event()->eventPath().adjustForRelatedTarget(dispatcher->node(), event()->rel atedTarget());
130 return EventDispatchMediator::dispatchEvent(dispatcher); 135 return EventDispatchMediator::dispatchEvent(dispatcher);
131 } 136 }
132 137
133 } // namespace WebCore 138 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698