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

Side by Side Diff: Source/core/events/TouchEvent.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 2008, The Android Open Source Project 2 * Copyright 2008, The Android Open Source Project
3 * Copyright (C) 2012 Research In Motion Limited. All rights reserved. 3 * Copyright (C) 2012 Research In Motion Limited. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above copyright 10 * * Redistributions in binary form must reproduce the above copyright
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 const AtomicString& TouchEvent::interfaceName() const 81 const AtomicString& TouchEvent::interfaceName() const
82 { 82 {
83 return EventNames::TouchEvent; 83 return EventNames::TouchEvent;
84 } 84 }
85 85
86 bool TouchEvent::isTouchEvent() const 86 bool TouchEvent::isTouchEvent() const
87 { 87 {
88 return true; 88 return true;
89 } 89 }
90 90
91 void TouchEvent::trace(Visitor* visitor)
92 {
93 MouseRelatedEvent::trace(visitor);
94 }
95
91 PassRefPtr<TouchEventDispatchMediator> TouchEventDispatchMediator::create(PassRe fPtr<TouchEvent> touchEvent) 96 PassRefPtr<TouchEventDispatchMediator> TouchEventDispatchMediator::create(PassRe fPtr<TouchEvent> touchEvent)
92 { 97 {
93 return adoptRef(new TouchEventDispatchMediator(touchEvent)); 98 return adoptRef(new TouchEventDispatchMediator(touchEvent));
94 } 99 }
95 100
96 TouchEventDispatchMediator::TouchEventDispatchMediator(PassRefPtr<TouchEvent> to uchEvent) 101 TouchEventDispatchMediator::TouchEventDispatchMediator(PassRefPtr<TouchEvent> to uchEvent)
97 : EventDispatchMediator(touchEvent) 102 : EventDispatchMediator(touchEvent)
98 { 103 {
99 } 104 }
100 105
101 TouchEvent* TouchEventDispatchMediator::event() const 106 TouchEvent* TouchEventDispatchMediator::event() const
102 { 107 {
103 return toTouchEvent(EventDispatchMediator::event()); 108 return toTouchEvent(EventDispatchMediator::event());
104 } 109 }
105 110
106 bool TouchEventDispatchMediator::dispatchEvent(EventDispatcher* dispatcher) cons t 111 bool TouchEventDispatchMediator::dispatchEvent(EventDispatcher* dispatcher) cons t
107 { 112 {
108 event()->eventPath().adjustForTouchEvent(dispatcher->node(), *event()); 113 event()->eventPath().adjustForTouchEvent(dispatcher->node(), *event());
109 return dispatcher->dispatch(); 114 return dispatcher->dispatch();
110 } 115 }
111 116
112 } // namespace WebCore 117 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698