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 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 return ET_MOUSEWHEEL; | 49 return ET_MOUSEWHEEL; |
50 case NSMouseEntered: | 50 case NSMouseEntered: |
51 return ET_MOUSE_ENTERED; | 51 return ET_MOUSE_ENTERED; |
52 case NSMouseExited: | 52 case NSMouseExited: |
53 return ET_MOUSE_EXITED; | 53 return ET_MOUSE_EXITED; |
54 case NSEventTypeSwipe: | 54 case NSEventTypeSwipe: |
55 return ET_SCROLL_FLING_START; | 55 return ET_SCROLL_FLING_START; |
56 case NSAppKitDefined: | 56 case NSAppKitDefined: |
57 case NSSystemDefined: | 57 case NSSystemDefined: |
58 return ET_UNKNOWN; | 58 return ET_UNKNOWN; |
| 59 case NSEventTypeGesture: |
| 60 DLOG(INFO) << "gesture??"; |
| 61 return ET_UNKNOWN; |
| 62 case NSCursorUpdate: |
| 63 DLOG(INFO) << "cursor update?"; |
| 64 return ET_UNKNOWN; |
| 65 case NSApplicationDefined: |
| 66 DLOG(INFO) << "application defined?"; |
| 67 return ET_UNKNOWN; |
59 case NSFlagsChanged: | 68 case NSFlagsChanged: |
60 case NSApplicationDefined: | |
61 case NSPeriodic: | 69 case NSPeriodic: |
62 case NSCursorUpdate: | |
63 case NSTabletPoint: | 70 case NSTabletPoint: |
64 case NSTabletProximity: | 71 case NSTabletProximity: |
65 case NSEventTypeGesture: | |
66 case NSEventTypeMagnify: | 72 case NSEventTypeMagnify: |
67 case NSEventTypeRotate: | 73 case NSEventTypeRotate: |
68 case NSEventTypeBeginGesture: | 74 case NSEventTypeBeginGesture: |
69 case NSEventTypeEndGesture: | 75 case NSEventTypeEndGesture: |
70 NOTIMPLEMENTED() << type; | 76 NOTIMPLEMENTED() << type; |
71 break; | 77 break; |
72 default: | 78 default: |
73 NOTIMPLEMENTED() << type; | 79 NOTIMPLEMENTED() << type; |
74 break; | 80 break; |
75 } | 81 } |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 uint16_t return_value; | 268 uint16_t return_value; |
263 [text getCharacters:&return_value]; | 269 [text getCharacters:&return_value]; |
264 return return_value; | 270 return return_value; |
265 } | 271 } |
266 | 272 |
267 bool IsCharFromNative(const base::NativeEvent& native_event) { | 273 bool IsCharFromNative(const base::NativeEvent& native_event) { |
268 return false; | 274 return false; |
269 } | 275 } |
270 | 276 |
271 } // namespace ui | 277 } // namespace ui |
OLD | NEW |