Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2014 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_VIEWS_EVENT_MONITOR_H_ | |
| 6 #define UI_VIEWS_EVENT_MONITOR_H_ | |
| 7 | |
| 8 #include "ui/gfx/geometry/point.h" | |
| 9 #include "ui/views/views_export.h" | |
| 10 | |
| 11 namespace ui { | |
| 12 class EventHandler; | |
| 13 } | |
| 14 | |
| 15 namespace views { | |
| 16 | |
| 17 // RAII-style class that forwards events posted to the application to | |
| 18 // |event_handler| before they are dispatched. | |
| 19 class VIEWS_EXPORT EventMonitor { | |
| 20 public: | |
| 21 static EventMonitor* Create(ui::EventHandler* event_handler); | |
|
sky
2014/10/25 15:16:14
constructor/destructor come first.
Andre
2014/10/27 19:08:44
Done.
| |
| 22 virtual ~EventMonitor() {} | |
| 23 | |
| 24 // Returns the last mouse location seen in a mouse event in screen | |
| 25 // coordinates. | |
| 26 static gfx::Point GetLastMouseLocation(); | |
|
sky
2014/10/25 15:16:14
Last mouse location doesn't feel like it really re
| |
| 27 }; | |
| 28 | |
| 29 } // namespace views | |
| 30 | |
| 31 #endif // UI_VIEWS_EVENT_MONITOR_H_ | |
| OLD | NEW |