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

Unified Diff: public/web/WebTouchAction.h

Issue 16507017: Initial touch-action main thread implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: merge with trunk - no changes 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 side-by-side diff with in-line comments
Download patch
Index: public/web/WebTouchAction.h
diff --git a/public/platform/WebCallbacks.h b/public/web/WebTouchAction.h
similarity index 86%
copy from public/platform/WebCallbacks.h
copy to public/web/WebTouchAction.h
index 4dd0421d5043391f276ec84a6d75f3de9d0bc42d..20030ec797046aa59e7da61fefe23a656047a578 100644
--- a/public/platform/WebCallbacks.h
+++ b/public/web/WebTouchAction.h
@@ -28,17 +28,15 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef WebCallbacks_h
-#define WebCallbacks_h
+#ifndef WebTouchAction_h
+#define WebTouchAction_h
namespace blink {
-template<typename S, typename T>
-class WebCallbacks {
-public:
- virtual ~WebCallbacks() { };
- virtual void onSuccess(S*) { };
- virtual void onError(T*) { };
+// Flags for permitted touch actions, specified in http://www.w3.org/TR/pointerevents/#the-touch-action-css-property.
+enum WebTouchAction {
+ WebTouchActionNone = 0,
+ WebTouchActionAuto = 1
esprehn 2013/11/21 16:26:29 Is there a reason to specify the values? We usuall
Rick Byers 2013/11/21 22:09:29 Note yet. I did this because the next two values
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698