| Index: ui/aura/env_input_state_controller.h
|
| diff --git a/ui/aura/env_input_state_controller.h b/ui/aura/env_input_state_controller.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..8030cde94380317de09d23214c511e497ebd31a1
|
| --- /dev/null
|
| +++ b/ui/aura/env_input_state_controller.h
|
| @@ -0,0 +1,44 @@
|
| +// Copyright 2016 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 UI_AURA_ENV_INPUT_STATE_CONTROLLER_H_
|
| +#define UI_AURA_ENV_INPUT_STATE_CONTROLLER_H_
|
| +
|
| +#include <stdint.h>
|
| +
|
| +#include "base/macros.h"
|
| +#include "ui/aura/aura_export.h"
|
| +
|
| +namespace gfx {
|
| +class Point;
|
| +}
|
| +
|
| +namespace ui {
|
| +class MouseEvent;
|
| +class TouchEvent;
|
| +}
|
| +
|
| +namespace aura {
|
| +
|
| +class Window;
|
| +
|
| +class AURA_EXPORT EnvInputStateController {
|
| + public:
|
| + EnvInputStateController() {}
|
| + ~EnvInputStateController() {}
|
| +
|
| + void SetLastMouseLocation(const Window* root_window,
|
| + const gfx::Point& location_in_root) const;
|
| + gfx::Point GetLastMouseLocationInRoot(const Window* window) const;
|
| + void PreDispatchMouseEvent(ui::MouseEvent* event) const;
|
| + void PreDispatchTouchEvent(ui::TouchEvent* event, uint32_t touch_ids_down)
|
| + const;
|
| +
|
| +private:
|
| + DISALLOW_COPY_AND_ASSIGN(EnvInputStateController);
|
| +};
|
| +
|
| +} // namespace aura
|
| +
|
| +#endif // UI_AURA_ENV_INPUT_STATE_CONTROLLER_H_
|
|
|