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

Side by Side Diff: third_party/WebKit/Source/core/events/GestureEvent.cpp

Issue 2394653003: reflow comments in core/events,core/fileapi (Closed)
Patch Set: Created 4 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 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 * * Redistributions of source code must retain the above copyright 7 * * 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 * * Redistributions in binary form must reproduce the above copyright 9 * * 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 return nullptr; 105 return nullptr;
106 } 106 }
107 return new GestureEvent( 107 return new GestureEvent(
108 eventType, view, event.globalPosition().x(), event.globalPosition().y(), 108 eventType, view, event.globalPosition().x(), event.globalPosition().y(),
109 event.position().x(), event.position().y(), event.getModifiers(), deltaX, 109 event.position().x(), event.position().y(), event.getModifiers(), deltaX,
110 deltaY, velocityX, velocityY, inertialPhase, synthetic, deltaUnits, 110 deltaY, velocityX, velocityY, inertialPhase, synthetic, deltaUnits,
111 event.timestamp(), event.resendingPluginId(), source); 111 event.timestamp(), event.resendingPluginId(), source);
112 } 112 }
113 113
114 const AtomicString& GestureEvent::interfaceName() const { 114 const AtomicString& GestureEvent::interfaceName() const {
115 // FIXME: when a GestureEvent.idl interface is defined, return the string "Ges tureEvent". 115 // FIXME: when a GestureEvent.idl interface is defined, return the string
116 // Until that happens, do not advertise an interface that does not exist, sinc e it will 116 // "GestureEvent". Until that happens, do not advertise an interface that
117 // trip up the bindings integrity checks. 117 // does not exist, since it will trip up the bindings integrity checks.
118 return UIEvent::interfaceName(); 118 return UIEvent::interfaceName();
119 } 119 }
120 120
121 bool GestureEvent::isGestureEvent() const { 121 bool GestureEvent::isGestureEvent() const {
122 return true; 122 return true;
123 } 123 }
124 124
125 GestureEvent::GestureEvent(const AtomicString& type, 125 GestureEvent::GestureEvent(const AtomicString& type,
126 AbstractView* view, 126 AbstractView* view,
127 int screenX, 127 int screenX,
(...skipping 30 matching lines...) Expand all
158 m_synthetic(synthetic), 158 m_synthetic(synthetic),
159 m_deltaUnits(deltaUnits), 159 m_deltaUnits(deltaUnits),
160 m_source(source), 160 m_source(source),
161 m_resendingPluginId(resendingPluginId) {} 161 m_resendingPluginId(resendingPluginId) {}
162 162
163 DEFINE_TRACE(GestureEvent) { 163 DEFINE_TRACE(GestureEvent) {
164 MouseRelatedEvent::trace(visitor); 164 MouseRelatedEvent::trace(visitor);
165 } 165 }
166 166
167 } // namespace blink 167 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/events/EventTarget.cpp ('k') | third_party/WebKit/Source/core/events/InputEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698