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

Side by Side Diff: third_party/WebKit/public/platform/WebTouchActionRect.h

Issue 2856153003: Pass TouchAction bits together with rect in SetTouchEventHandlerRegion (Closed)
Patch Set: Created 3 years, 7 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
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef WebTouchActionRect_h
6 #define WebTouchActionRect_h
7
8 #include "WebRect.h"
9
10 namespace blink {
11
12 // 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.
13 // 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.
14 struct WebTouchActionRect {
15 WebRect rect;
16
17 // Reason of using int instead of WebTouchAction: WebTouchActionRect will be
18 // used as a parameter in WebLayer::SetTouchEventHandlerRegion which means
19 // this file has to live under public/platform/. We cannot include
20 // WebTouchAction because that lives under public/web/.
21 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
22 };
23
24 } // namespace blink
25
26 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698