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.
5 #ifndef UI_VIEWS_EVENT_MONITOR_H_
6 #define UI_VIEWS_EVENT_MONITOR_H_
8 #include "ui/gfx/geometry/point.h"
9 #include "ui/views/views_export.h"
17 // RAII-style class that forwards events posted to the application to
18 // |event_handler| before they are dispatched.
19 class VIEWS_EXPORT EventMonitor
{
21 virtual ~EventMonitor() {}
23 static EventMonitor
* Create(ui::EventHandler
* event_handler
);
25 // Returns the last mouse location seen in a mouse event in screen
27 static gfx::Point
GetLastMouseLocation();
32 #endif // UI_VIEWS_EVENT_MONITOR_H_