Add Profile::IsChild and IsLegacySupervised
[chromium-blink-merge.git] / ui / views / event_monitor.h
blob277321909fd0346963c60e1da7a6cfa95c6269eb
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"
11 namespace ui {
12 class EventHandler;
15 namespace views {
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 virtual ~EventMonitor() {}
23 static EventMonitor* Create(ui::EventHandler* event_handler);
25 // Returns the last mouse location seen in a mouse event in screen
26 // coordinates.
27 static gfx::Point GetLastMouseLocation();
30 } // namespace views
32 #endif // UI_VIEWS_EVENT_MONITOR_H_