summaryrefslogtreecommitdiffstats
path: root/content/browser/renderer_host/input/web_touch_event_traits.cc
diff options
context:
space:
mode:
Diffstat (limited to 'content/browser/renderer_host/input/web_touch_event_traits.cc')
-rw-r--r--content/browser/renderer_host/input/web_touch_event_traits.cc36
1 files changed, 0 insertions, 36 deletions
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 c691c13..0000000
--- 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