Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(89)

Side by Side Diff: ui/aura/env_input_state_controller.h

Issue 2025843003: Introduce aura::Env controller to abstract away changes to aura::Env Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add new files to gyp build Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 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.
4
5 #ifndef UI_AURA_ENV_INPUT_STATE_CONTROLLER_H_
6 #define UI_AURA_ENV_INPUT_STATE_CONTROLLER_H_
7
8 #include <stdint.h>
9
10 #include "base/macros.h"
11 #include "ui/aura/aura_export.h"
12
13 namespace gfx {
14 class Point;
15 }
16
17 namespace ui {
18 class MouseEvent;
19 class TouchEvent;
20 }
21
22 namespace aura {
23
24 class Window;
25
26 class AURA_EXPORT EnvInputStateController {
27 public:
28 EnvInputStateController() {}
29 ~EnvInputStateController() {}
30
31 void SetLastMouseLocation(const Window* root_window,
32 const gfx::Point& location_in_root) const;
33 gfx::Point GetLastMouseLocationInRoot(const Window* window) const;
34 void PreDispatchMouseEvent(ui::MouseEvent* event) const;
35 void PreDispatchTouchEvent(ui::TouchEvent* event, uint32_t touch_ids_down)
36 const;
37
38 private:
39 DISALLOW_COPY_AND_ASSIGN(EnvInputStateController);
40 };
41
42 } // namespace aura
43
44 #endif // UI_AURA_ENV_INPUT_STATE_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698