Chromium Code Reviews| Index: content/browser/renderer_host/input/synthetic_mouse_driver.h |
| diff --git a/content/browser/renderer_host/input/synthetic_mouse_driver.h b/content/browser/renderer_host/input/synthetic_mouse_driver.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..6046e3d048688a4a6220ba246b4093b229ab3524 |
| --- /dev/null |
| +++ b/content/browser/renderer_host/input/synthetic_mouse_driver.h |
| @@ -0,0 +1,37 @@ |
| +// Copyright 2015 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. |
| + |
| +#ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_MOUSE_DRIVER_H_ |
| +#define CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_MOUSE_DRIVER_H_ |
| + |
| +#include "base/macros.h" |
| +#include "content/browser/renderer_host/input/synthetic_pointer_driver.h" |
| +#include "content/common/content_export.h" |
| +#include "content/common/input/synthetic_web_input_event_builders.h" |
| + |
| +namespace content { |
| + |
| +class CONTENT_EXPORT SyntheticMouseDriver : public SyntheticPointerDriver { |
| + public: |
| + SyntheticMouseDriver(); |
| + ~SyntheticMouseDriver() override; |
| + |
| + void DispatchEvent(SyntheticGestureTarget* target, |
| + const base::TimeTicks& timestamp) override; |
| + |
| + int Press(float x, float y) override; |
| + void Move(float x, float y, int index) override; |
|
Navid Zolghadr
2016/11/21 17:56:46
nit: Nobody is using this class directly right now
lanwei
2016/11/28 19:17:54
Acknowledged.
|
| + void Release(int index) override; |
| + |
| + bool UserInputCheck( |
| + const SyntheticPointerActionParams& params) const override; |
| + |
| + private: |
| + blink::WebMouseEvent mouse_event_; |
| + DISALLOW_COPY_AND_ASSIGN(SyntheticMouseDriver); |
| +}; |
| + |
| +} // namespace content |
| + |
| +#endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_MOUSE_DRIVER_H_ |