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

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 EF_IS_SYNTHESIZED condition to call in PreDispatchMouseEvent; fixes WindowEventDispatcherTest.S… 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
« no previous file with comments | « ui/aura/aura.gyp ('k') | ui/aura/env_input_state_controller.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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() : touch_ids_down_(0) {}
29 ~EnvInputStateController() {}
30
31 void UpdateStateForMouseEvent(const Window* window, ui::MouseEvent* event)
32 const;
33 void UpdateStateForTouchEvent(ui::TouchEvent* event);
34 void SetLastMouseLocation(const Window* root_window,
35 const gfx::Point& location_in_root) const;
36
37 private:
38 // Touch ids that are currently down.
39 uint32_t touch_ids_down_;
40
41 DISALLOW_COPY_AND_ASSIGN(EnvInputStateController);
42 };
43
44 } // namespace aura
45
46 #endif // UI_AURA_ENV_INPUT_STATE_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ui/aura/aura.gyp ('k') | ui/aura/env_input_state_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698