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

Side by Side Diff: public/web/WebWidgetClient.h

Issue 16507017: Initial touch-action main thread implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Don't add delay param to public API just yet Created 7 years, 1 month 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
« Source/web/tests/TouchActionTest.cpp ('K') | « Source/web/web.gypi ('k') | no next file » | 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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 165
166 // Returns true iff the pointer is locked to this widget. 166 // Returns true iff the pointer is locked to this widget.
167 virtual bool isPointerLocked() { return false; } 167 virtual bool isPointerLocked() { return false; }
168 168
169 // Called when a gesture event is handled. 169 // Called when a gesture event is handled.
170 virtual void didHandleGestureEvent(const WebGestureEvent& event, bool eventC ancelled) { } 170 virtual void didHandleGestureEvent(const WebGestureEvent& event, bool eventC ancelled) { }
171 171
172 // Called to update if touch events should be sent. 172 // Called to update if touch events should be sent.
173 virtual void hasTouchEventHandlers(bool) { } 173 virtual void hasTouchEventHandlers(bool) { }
174 174
175 // Called during WebWidget::HandleInputEvent for a TouchStart event to infor m the embedder
176 // of the touch actions that are permitted for this touch.
177 enum TouchAction {
178 TouchActionNone = 0,
179 TouchActionAuto = 1
180 };
181 virtual void setTouchAction(int touchId, TouchAction touchAction) { }
abarth-chromium 2013/11/18 21:16:59 Why a touchId? Is there some sort of more structu
Rick Byers 2013/11/19 21:24:21 The touchid is the minimal data the embedder needs
182
175 protected: 183 protected:
176 ~WebWidgetClient() { } 184 ~WebWidgetClient() { }
177 }; 185 };
178 186
179 } // namespace blink 187 } // namespace blink
180 188
181 #endif 189 #endif
OLDNEW
« Source/web/tests/TouchActionTest.cpp ('K') | « Source/web/web.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698