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

Unified Diff: third_party/WebKit/public/platform/WebTouchActionRect.h

Issue 2856153003: Pass TouchAction bits together with rect in SetTouchEventHandlerRegion (Closed)
Patch Set: Created 3 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/public/platform/WebTouchActionRect.h
diff --git a/third_party/WebKit/public/platform/WebTouchActionRect.h b/third_party/WebKit/public/platform/WebTouchActionRect.h
new file mode 100644
index 0000000000000000000000000000000000000000..97f03aa67132d6775264d7692e3b5329b8313638
--- /dev/null
+++ b/third_party/WebKit/public/platform/WebTouchActionRect.h
@@ -0,0 +1,26 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef WebTouchActionRect_h
+#define WebTouchActionRect_h
+
+#include "WebRect.h"
+
+namespace blink {
+
+// WebTouchInfo stores a rect with its corresponding touch action, which will
wkorman 2017/05/03 20:02:14 WebTouchInfo -> WebTouchActionRect (if we keep the
xidachen 2017/05/04 12:11:21 Changed to WebTouchInfo.
+// be passed to CC through WebLayer::SetTouchEventHandlerRegion.
wkorman 2017/05/03 20:02:14 Would remove the bit about "which will be passed..
xidachen 2017/05/04 12:11:21 comments updated.
+struct WebTouchActionRect {
+ WebRect rect;
+
+ // Reason of using int instead of WebTouchAction: WebTouchActionRect will be
+ // used as a parameter in WebLayer::SetTouchEventHandlerRegion which means
+ // this file has to live under public/platform/. We cannot include
+ // WebTouchAction because that lives under public/web/.
+ int touch_action;
wkorman 2017/05/03 20:02:14 I think we can use an enum here, following pattern
xidachen 2017/05/04 12:11:21 I think I would prefer landing a simple patch firs
+};
+
+} // namespace blink
+
+#endif

Powered by Google App Engine
This is Rietveld 408576698