OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | |
sadrul
2016/05/31 16:36:32
We don't do (c) no more
Mark Dittmer
2016/05/31 17:05:42
Done.
| |
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_WINDOW_EVENT_DISPATCHER_DELEGATE_H_ | |
6 #define UI_AURA_WINDOW_EVENT_DISPATCHER_DELEGATE_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 WindowEventDispatcherDelegate { | |
27 public: | |
28 WindowEventDispatcherDelegate() {} | |
29 ~WindowEventDispatcherDelegate() {} | |
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 bool IsMouseButtonDown() const; | |
sadrul
2016/05/31 16:36:32
I don't think this should have any of the getters.
Mark Dittmer
2016/05/31 17:05:42
Done.
| |
35 void PreDispatchMouseEvent(ui::MouseEvent* event) const; | |
36 void PreDispatchTouchEvent(ui::TouchEvent* event, uint32_t touch_ids_down) | |
37 const; | |
38 | |
39 private: | |
40 DISALLOW_COPY_AND_ASSIGN(WindowEventDispatcherDelegate); | |
41 }; | |
42 | |
43 } // namespace aura | |
44 | |
45 #endif // UI_AURA_WINDOW_EVENT_DISPATCHER_DELEGATE_H_ | |
OLD | NEW |