OLD | NEW |
---|---|
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef UI_VIEWS_EVENT_MONITOR_MAC_H_ | 5 #ifndef UI_VIEWS_EVENT_MONITOR_MAC_H_ |
6 #define UI_VIEWS_EVENT_MONITOR_MAC_H_ | 6 #define UI_VIEWS_EVENT_MONITOR_MAC_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "ui/views/event_monitor.h" | 9 #include "ui/views/event_monitor.h" |
10 | 10 |
11 #import <Cocoa/Cocoa.h> | 11 #import <Cocoa/Cocoa.h> |
tapted
2014/12/10 02:58:27
nit: move this to .cc?
And maybe just #include na
Andre
2014/12/10 22:58:05
Done.
| |
12 | 12 |
13 namespace views { | 13 namespace views { |
14 | 14 |
15 class EventMonitorMac : public EventMonitor { | 15 class EventMonitorMac : public EventMonitor { |
16 public: | 16 public: |
17 explicit EventMonitorMac(ui::EventHandler* event_handler); | 17 EventMonitorMac(ui::EventHandler* event_handler, |
18 gfx::NativeWindow target_window); | |
18 virtual ~EventMonitorMac(); | 19 virtual ~EventMonitorMac(); |
19 | 20 |
20 private: | 21 private: |
21 id monitor_; | 22 id monitor_; |
22 | 23 |
23 DISALLOW_COPY_AND_ASSIGN(EventMonitorMac); | 24 DISALLOW_COPY_AND_ASSIGN(EventMonitorMac); |
24 }; | 25 }; |
25 | 26 |
26 } // namespace views | 27 } // namespace views |
27 | 28 |
28 #endif // UI_VIEWS_EVENT_MONITOR_MAC_H_ | 29 #endif // UI_VIEWS_EVENT_MONITOR_MAC_H_ |
OLD | NEW |