Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(613)

Side by Side Diff: ui/views/event_monitor.h

Issue 678823002: MacViews: Create abstraction for event monitoring (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@views-tabs
Patch Set: Rebase Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/ui/views/tabs/tab_drag_controller.cc ('k') | ui/views/event_monitor_aura.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 virtual ~EventMonitor() {}
22
23 static EventMonitor* Create(ui::EventHandler* event_handler);
24
25 // Returns the last mouse location seen in a mouse event in screen
26 // coordinates.
27 static gfx::Point GetLastMouseLocation();
28 };
29
30 } // namespace views
31
32 #endif // UI_VIEWS_EVENT_MONITOR_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/tabs/tab_drag_controller.cc ('k') | ui/views/event_monitor_aura.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698