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

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

Issue 1817453002: Implement Event.relatedTargetScoped (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix layout test Created 4 years, 9 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 , m_deltaY(0) 108 , m_deltaY(0)
109 , m_velocityX(0) 109 , m_velocityX(0)
110 , m_velocityY(0) 110 , m_velocityY(0)
111 , m_inertial(false) 111 , m_inertial(false)
112 , m_source(GestureSourceUninitialized) 112 , m_source(GestureSourceUninitialized)
113 , m_resendingPluginId(-1) 113 , m_resendingPluginId(-1)
114 { 114 {
115 } 115 }
116 116
117 GestureEvent::GestureEvent(const AtomicString& type, PassRefPtrWillBeRawPtr<Abst ractView> view, int screenX, int screenY, int clientX, int clientY, PlatformEven t::Modifiers modifiers, float deltaX, float deltaY, float velocityX, float veloc ityY, bool inertial, double platformTimeStamp, int resendingPluginId, GestureSou rce source) 117 GestureEvent::GestureEvent(const AtomicString& type, PassRefPtrWillBeRawPtr<Abst ractView> view, int screenX, int screenY, int clientX, int clientY, PlatformEven t::Modifiers modifiers, float deltaX, float deltaY, float velocityX, float veloc ityY, bool inertial, double platformTimeStamp, int resendingPluginId, GestureSou rce source)
118 : MouseRelatedEvent(type, true, true, view, 0, IntPoint(screenX, screenY), I ntPoint(clientX, clientY), IntPoint(0, 0), modifiers, platformTimeStamp, Positio nType::Position) 118 : MouseRelatedEvent(type, true, true, nullptr, view, 0, IntPoint(screenX, sc reenY), IntPoint(clientX, clientY), IntPoint(0, 0), modifiers, platformTimeStamp , PositionType::Position)
119 , m_deltaX(deltaX) 119 , m_deltaX(deltaX)
120 , m_deltaY(deltaY) 120 , m_deltaY(deltaY)
121 , m_velocityX(velocityX) 121 , m_velocityX(velocityX)
122 , m_velocityY(velocityY) 122 , m_velocityY(velocityY)
123 , m_inertial(inertial) 123 , m_inertial(inertial)
124 , m_source(source) 124 , m_source(source)
125 , m_resendingPluginId(resendingPluginId) 125 , m_resendingPluginId(resendingPluginId)
126 { 126 {
127 } 127 }
128 128
129 DEFINE_TRACE(GestureEvent) 129 DEFINE_TRACE(GestureEvent)
130 { 130 {
131 MouseRelatedEvent::trace(visitor); 131 MouseRelatedEvent::trace(visitor);
132 } 132 }
133 133
134 } // namespace blink 134 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/events/FocusEvent.cpp ('k') | third_party/WebKit/Source/core/events/MouseEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698