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

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

Issue 1852663002: Oilpan: Remove WillBe types (part 9) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 25 matching lines...) Expand all
36 enum GestureSource { 36 enum GestureSource {
37 GestureSourceUninitialized, 37 GestureSourceUninitialized,
38 GestureSourceTouchpad, 38 GestureSourceTouchpad,
39 GestureSourceTouchscreen 39 GestureSourceTouchscreen
40 }; 40 };
41 41
42 class CORE_EXPORT GestureEvent final : public MouseRelatedEvent { 42 class CORE_EXPORT GestureEvent final : public MouseRelatedEvent {
43 public: 43 public:
44 ~GestureEvent() override { } 44 ~GestureEvent() override { }
45 45
46 static PassRefPtrWillBeRawPtr<GestureEvent> create(PassRefPtrWillBeRawPtr<Ab stractView>, const PlatformGestureEvent&); 46 static RawPtr<GestureEvent> create(RawPtr<AbstractView>, const PlatformGestu reEvent&);
47 47
48 bool isGestureEvent() const override; 48 bool isGestureEvent() const override;
49 49
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; } 60 bool synthetic() const { return m_synthetic; }
61 ScrollGranularity deltaUnits() const { return m_deltaUnits; } 61 ScrollGranularity deltaUnits() const { return m_deltaUnits; }
62 62
63 DECLARE_VIRTUAL_TRACE(); 63 DECLARE_VIRTUAL_TRACE();
64 64
65 private: 65 private:
66 GestureEvent(); 66 GestureEvent();
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); 67 GestureEvent(const AtomicString& type, RawPtr<AbstractView>, int screenX, in t screenY, int clientX, int clientY, PlatformEvent::Modifiers, float deltaX, flo at deltaY, float velocityX, float velocityY, bool inertial, bool synthetic, Scro llGranularity deltaUnits, double platformTimeStamp, int resendingPluginId, Gestu reSource);
68 68
69 float m_deltaX; 69 float m_deltaX;
70 float m_deltaY; 70 float m_deltaY;
71 float m_velocityX; 71 float m_velocityX;
72 float m_velocityY; 72 float m_velocityY;
73 bool m_inertial; 73 bool m_inertial;
74 bool m_synthetic; 74 bool m_synthetic;
75 ScrollGranularity m_deltaUnits; 75 ScrollGranularity m_deltaUnits;
76 GestureSource m_source; 76 GestureSource m_source;
77 int m_resendingPluginId; 77 int m_resendingPluginId;
78 }; 78 };
79 79
80 DEFINE_EVENT_TYPE_CASTS(GestureEvent); 80 DEFINE_EVENT_TYPE_CASTS(GestureEvent);
81 81
82 } // namespace blink 82 } // namespace blink
83 83
84 #endif // GestureEvent_h 84 #endif // GestureEvent_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/events/GenericEventQueue.cpp ('k') | third_party/WebKit/Source/core/events/GestureEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698