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

Unified Diff: content/browser/renderer_host/input/web_touch_event_traits.cc

Issue 247433003: Mark touchcancel events as uncancelable (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: avi CR feedback Created 6 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: content/browser/renderer_host/input/web_touch_event_traits.cc
diff --git a/content/browser/renderer_host/input/web_touch_event_traits.cc b/content/browser/renderer_host/input/web_touch_event_traits.cc
deleted file mode 100644
index c691c13d5c6e9e86ed8d2cf88c07fb728a0499fa..0000000000000000000000000000000000000000
--- a/content/browser/renderer_host/input/web_touch_event_traits.cc
+++ /dev/null
@@ -1,36 +0,0 @@
-// Copyright 2014 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.
-
-#include "content/browser/renderer_host/input/web_touch_event_traits.h"
-
-#include "base/logging.h"
-
-using blink::WebInputEvent;
-using blink::WebTouchEvent;
-
-namespace content {
-
-namespace {
-
-bool AllTouchPointsHaveState(const WebTouchEvent& event,
- blink::WebTouchPoint::State state) {
- if(!event.touchesLength)
- return false;
- for (size_t i = 0; i < event.touchesLength; ++i) {
- if (event.touches[i].state != state)
- return false;
- }
- return true;
-}
-
-} // namespace
-
-bool WebTouchEventTraits::IsTouchSequenceStart(const WebTouchEvent& event) {
- DCHECK(event.touchesLength);
- if (event.type != WebInputEvent::TouchStart)
- return false;
- return AllTouchPointsHaveState(event, blink::WebTouchPoint::StatePressed);
-}
-
-} // namespace content

Powered by Google App Engine
This is Rietveld 408576698