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

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

Issue 1829743003: Fix missing fields in GestureScrollBegin/Update/End event conversions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix tdresser's comments in patch set 1 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/events/GestureEvent.cpp » ('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) 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 const AtomicString& interfaceName() const override; 50 const AtomicString& interfaceName() const override;
51 51
52 float deltaX() const { return m_deltaX; } 52 float deltaX() const { return m_deltaX; }
53 float deltaY() const { return m_deltaY; } 53 float deltaY() const { return m_deltaY; }
54 float velocityX() const { return m_velocityX; } 54 float velocityX() const { return m_velocityX; }
55 float velocityY() const { return m_velocityY; } 55 float velocityY() const { return m_velocityY; }
56 bool inertial() const { return m_inertial; } 56 bool inertial() const { return m_inertial; }
57 57
58 GestureSource source() const { return m_source; } 58 GestureSource source() const { return m_source; }
59 int resendingPluginId() const { return m_resendingPluginId; } 59 int resendingPluginId() const { return m_resendingPluginId; }
60 bool synthetic() const { return m_synthetic; }
61 ScrollGranularity deltaUnits() const { return m_deltaUnits; }
60 62
61 DECLARE_VIRTUAL_TRACE(); 63 DECLARE_VIRTUAL_TRACE();
62 64
63 private: 65 private:
64 GestureEvent(); 66 GestureEvent();
65 GestureEvent(const AtomicString& type, PassRefPtrWillBeRawPtr<AbstractView>, int screenX, int screenY, int clientX, int clientY, PlatformEvent::Modifiers, f loat deltaX, float deltaY, float velocityX, float velocityY, bool inertial, doub le platformTimeStamp, int resendingPluginId, GestureSource); 67 GestureEvent(const AtomicString& type, PassRefPtrWillBeRawPtr<AbstractView>, int screenX, int screenY, int clientX, int clientY, PlatformEvent::Modifiers, f loat deltaX, float deltaY, float velocityX, float velocityY, bool inertial, bool synthetic, ScrollGranularity deltaUnits, double platformTimeStamp, int resendin gPluginId, GestureSource);
66 68
67 float m_deltaX; 69 float m_deltaX;
68 float m_deltaY; 70 float m_deltaY;
69 float m_velocityX; 71 float m_velocityX;
70 float m_velocityY; 72 float m_velocityY;
71 bool m_inertial; 73 bool m_inertial;
72 74 bool m_synthetic;
75 ScrollGranularity m_deltaUnits;
73 GestureSource m_source; 76 GestureSource m_source;
74 int m_resendingPluginId; 77 int m_resendingPluginId;
75 }; 78 };
76 79
77 DEFINE_EVENT_TYPE_CASTS(GestureEvent); 80 DEFINE_EVENT_TYPE_CASTS(GestureEvent);
78 81
79 } // namespace blink 82 } // namespace blink
80 83
81 #endif // GestureEvent_h 84 #endif // GestureEvent_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/events/GestureEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698