| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <Cocoa/Cocoa.h> | 5 #include <Cocoa/Cocoa.h> |
| 6 | 6 |
| 7 #include "ui/base/events.h" | 7 #include "ui/base/events/event_constants.h" |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/time.h" | 10 #include "base/time.h" |
| 11 #import "ui/base/keycodes/keyboard_code_conversion_mac.h" | 11 #import "ui/base/keycodes/keyboard_code_conversion_mac.h" |
| 12 #include "ui/gfx/point.h" | 12 #include "ui/gfx/point.h" |
| 13 | 13 |
| 14 namespace ui { | 14 namespace ui { |
| 15 | 15 |
| 16 EventType EventTypeFromNative(const base::NativeEvent& native_event) { | 16 EventType EventTypeFromNative(const base::NativeEvent& native_event) { |
| 17 NSEventType native_type = [native_event type]; | 17 NSEventType native_type = [native_event type]; |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 modifierFlags:0 | 196 modifierFlags:0 |
| 197 timestamp:[NSDate timeIntervalSinceReferenceDate] | 197 timestamp:[NSDate timeIntervalSinceReferenceDate] |
| 198 windowNumber:0 | 198 windowNumber:0 |
| 199 context:nil | 199 context:nil |
| 200 subtype:0 | 200 subtype:0 |
| 201 data1:0 | 201 data1:0 |
| 202 data2:0]; | 202 data2:0]; |
| 203 } | 203 } |
| 204 | 204 |
| 205 } // namespace ui | 205 } // namespace ui |
| OLD | NEW |