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

Unified Diff: sky/engine/public/platform/WebInputEvent.h

Issue 868133003: Remove touch events from Sky (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/engine/public/BUILD.gn ('k') | sky/engine/public/platform/WebTouchPoint.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/public/platform/WebInputEvent.h
diff --git a/sky/engine/public/platform/WebInputEvent.h b/sky/engine/public/platform/WebInputEvent.h
index 8974c14fea39d6afc3a58b289b5031a61cc17811..5ed33045f6cf258b3a92c2201e8d88c820e21096 100644
--- a/sky/engine/public/platform/WebInputEvent.h
+++ b/sky/engine/public/platform/WebInputEvent.h
@@ -35,7 +35,6 @@
#include "sky/engine/public/platform/WebCommon.h"
#include "sky/engine/public/platform/WebGestureDevice.h"
#include "sky/engine/public/platform/WebRect.h"
-#include "sky/engine/public/platform/WebTouchPoint.h"
namespace blink {
@@ -123,16 +122,6 @@ public:
GesturePinchEnd,
GesturePinchUpdate,
GestureTypeLast = GesturePinchUpdate,
-
- // WebTouchEvent
- TouchStart,
- TouchTypeFirst = TouchStart,
- TouchMove,
- TouchEnd,
- TouchCancel,
- TouchTypeLast = TouchCancel,
-
- TypeLast = TouchTypeLast
};
enum Modifiers {
@@ -188,12 +177,6 @@ public:
return KeyboardTypeFirst <= type && type <= KeyboardTypeLast;
}
- // Returns true if the WebInputEvent |type| is a touch event.
- static bool isTouchEventType(int type)
- {
- return TouchTypeFirst <= type && type <= TouchTypeLast;
- }
-
// Returns true if the WebInputEvent is a gesture event.
static bool isGestureEventType(int type)
{
@@ -385,41 +368,6 @@ public:
}
};
-// WebTouchEvent --------------------------------------------------------------
-
-class WebTouchEvent : public WebInputEvent {
-public:
- // Maximum number of simultaneous touches supported on
- // Ash/Aura.
- enum { touchesLengthCap = 12 };
-
- unsigned touchesLength;
- // List of all touches which are currently down.
- WebTouchPoint touches[touchesLengthCap];
-
- unsigned changedTouchesLength;
- // List of all touches whose state has changed since the last WebTouchEvent
- WebTouchPoint changedTouches[touchesLengthCap];
-
- unsigned targetTouchesLength;
- // List of all touches which are currently down and are targeting the event recipient.
- WebTouchPoint targetTouches[touchesLengthCap];
-
- // Whether the event can be canceled (with preventDefault). If true then the browser
- // must wait for an ACK for this event. If false then no ACK IPC is expected.
- // See comment at the top for why an int is used here instead of a bool.
- int cancelable;
-
- WebTouchEvent()
- : WebInputEvent(sizeof(WebTouchEvent))
- , touchesLength(0)
- , changedTouchesLength(0)
- , targetTouchesLength(0)
- , cancelable(true)
- {
- }
-};
-
#pragma pack(pop)
} // namespace blink
« no previous file with comments | « sky/engine/public/BUILD.gn ('k') | sky/engine/public/platform/WebTouchPoint.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698