Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / content / browser / renderer_host / input / tap_suppression_controller_client.h
blob075fa08d3b5512db58f19bac6fbbb916352eacce
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_TAP_SUPPRESSION_CONTROLLER_CLIENT_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_TAP_SUPPRESSION_CONTROLLER_CLIENT_H_
8 namespace content {
10 // This class provides an interface for callbacks made by
11 // TapSuppressionController.
12 class TapSuppressionControllerClient {
13 public:
14 virtual ~TapSuppressionControllerClient() {}
16 // Called whenever the deferred tap down (if saved) should be dropped totally.
17 virtual void DropStashedTapDown() = 0;
19 // Called whenever the deferred tap down (if saved) should be forwarded to the
20 // renderer. The tap down should go back to normal path it was
21 // on before being deferred.
22 virtual void ForwardStashedTapDown() = 0;
24 protected:
25 TapSuppressionControllerClient() {}
27 private:
28 DISALLOW_COPY_AND_ASSIGN(TapSuppressionControllerClient);
31 } // namespace content
33 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_TAP_SUPPRESSION_CONTROLLER_CLIENT_H_