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 #include "ui/events/event_utils.h" | 5 #include "ui/events/event_utils.h" |
6 | 6 |
7 #include <Cocoa/Cocoa.h> | 7 #include <Cocoa/Cocoa.h> |
8 | 8 |
| 9 #include "base/logging.h" |
9 #import "base/mac/mac_util.h" | 10 #import "base/mac/mac_util.h" |
10 #import "base/mac/sdk_forward_declarations.h" | 11 #import "base/mac/sdk_forward_declarations.h" |
11 #include "base/logging.h" | |
12 #include "base/time/time.h" | 12 #include "base/time/time.h" |
13 #include "build/build_config.h" | 13 #include "build/build_config.h" |
14 #include "ui/events/cocoa/cocoa_event_utils.h" | 14 #include "ui/events/cocoa/cocoa_event_utils.h" |
15 #include "ui/events/event_utils.h" | 15 #include "ui/events/event_utils.h" |
16 #import "ui/events/keycodes/keyboard_code_conversion_mac.h" | 16 #import "ui/events/keycodes/keyboard_code_conversion_mac.h" |
17 #include "ui/gfx/point.h" | 17 #include "ui/gfx/geometry/point.h" |
18 #include "ui/gfx/vector2d.h" | 18 #include "ui/gfx/vector2d.h" |
19 | 19 |
20 namespace ui { | 20 namespace ui { |
21 | 21 |
22 void UpdateDeviceList() { | 22 void UpdateDeviceList() { |
23 NOTIMPLEMENTED(); | 23 NOTIMPLEMENTED(); |
24 } | 24 } |
25 | 25 |
26 EventType EventTypeFromNative(const base::NativeEvent& native_event) { | 26 EventType EventTypeFromNative(const base::NativeEvent& native_event) { |
27 NSEventType type = [native_event type]; | 27 NSEventType type = [native_event type]; |
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
265 uint16 return_value; | 265 uint16 return_value; |
266 [text getCharacters:&return_value]; | 266 [text getCharacters:&return_value]; |
267 return return_value; | 267 return return_value; |
268 } | 268 } |
269 | 269 |
270 bool IsCharFromNative(const base::NativeEvent& native_event) { | 270 bool IsCharFromNative(const base::NativeEvent& native_event) { |
271 return false; | 271 return false; |
272 } | 272 } |
273 | 273 |
274 } // namespace ui | 274 } // namespace ui |
OLD | NEW |