| Index: ui/views/event_monitor.h
|
| diff --git a/ui/views/event_monitor.h b/ui/views/event_monitor.h
|
| index 277321909fd0346963c60e1da7a6cfa95c6269eb..8cfa28cdd0ec710a4d874dc43e605cb61d2e618a 100644
|
| --- a/ui/views/event_monitor.h
|
| +++ b/ui/views/event_monitor.h
|
| @@ -5,7 +5,9 @@
|
| #ifndef UI_VIEWS_EVENT_MONITOR_H_
|
| #define UI_VIEWS_EVENT_MONITOR_H_
|
|
|
| +#include "base/memory/scoped_ptr.h"
|
| #include "ui/gfx/geometry/point.h"
|
| +#include "ui/gfx/native_widget_types.h"
|
| #include "ui/views/views_export.h"
|
|
|
| namespace ui {
|
| @@ -20,7 +22,19 @@ class VIEWS_EXPORT EventMonitor {
|
| public:
|
| virtual ~EventMonitor() {}
|
|
|
| - static EventMonitor* Create(ui::EventHandler* event_handler);
|
| + // Create an instance for monitoring application events.
|
| + // Events will be forwarded to |event_handler| before they are dispatched to
|
| + // the application.
|
| + static scoped_ptr<EventMonitor> CreateApplicationMonitor(
|
| + ui::EventHandler* event_handler);
|
| +
|
| + // Create an instance for monitoring events on a specific window.
|
| + // Events will be forwarded to |event_handler| before they are dispatched to
|
| + // |target_window|.
|
| + // The EventMonitor instance must be destroyed before |target_window|.
|
| + static scoped_ptr<EventMonitor> CreateWindowMonitor(
|
| + ui::EventHandler* event_handler,
|
| + gfx::NativeWindow target_window);
|
|
|
| // Returns the last mouse location seen in a mouse event in screen
|
| // coordinates.
|
|
|