summaryrefslogtreecommitdiffstats
path: root/content/browser/renderer_host/tap_suppression_controller.cc
blob: d1b5ff781c2edd9b7971a35c9c37a33e83ed3eaf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Copyright (c) 2012 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/tap_suppression_controller.h"

#include <utility>

// The default implementation of the TapSuppressionController does not
// suppress taps. Tap suppression is needed only on CrOS.

namespace content {

TapSuppressionController::TapSuppressionController(RenderWidgetHostImpl*)
    : render_widget_host_(NULL) {}

TapSuppressionController::~TapSuppressionController() {}

bool TapSuppressionController::ShouldSuppressMouseUp() { return false; }

bool TapSuppressionController::ShouldDeferMouseDown(
    const WebKit::WebMouseEvent& event) {
  return false;
}

void TapSuppressionController::GestureFlingCancelAck(bool) {}
void TapSuppressionController::GestureFlingCancel(double) {}
void TapSuppressionController::MouseDownTimerExpired() {}

} // namespace content.