Changeset 237045 in webkit
- Timestamp:
- Oct 11, 2018 1:29:57 PM (6 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r237040 r237045 1 2018-10-11 Daniel Bates <dabates@apple.com> 2 3 [iOS] Add typedef for WebEvent keyboard flags 4 https://bugs.webkit.org/show_bug.cgi?id=190435 5 6 Reviewed by Wenson Hsieh. 7 8 Currently WebEvent and UIKit SPI are intertwined when it comes to keyboard flags. It seems sufficient 9 to have WebEvent defined its own keyboard flags so that callers do not need to be aware of UIKit SPI. 10 11 No functionality changed. So, no new tests. 12 13 * platform/ios/WebEvent.h: 14 * platform/ios/WebEvent.mm: 15 (-[WebEvent keyboardFlags]): 16 1 17 2018-10-11 Antti Koivisto <antti@apple.com> 2 18 -
trunk/Source/WebCore/platform/ios/WebEvent.h
r212376 r237045 76 76 } WebEventCharacterSet; 77 77 78 // These enum values are copied directly from UIKit for compatibility. 79 typedef enum { 80 WebEventKeyboardInputRepeat = 1 << 0, 81 } WebKeyboardInputFlagValues; 82 typedef NSUInteger WebKeyboardInputFlags; 83 78 84 WEBCORE_EXPORT @interface WebEvent : NSObject { 79 85 @private … … 87 93 WebEventFlags _modifierFlags; 88 94 BOOL _keyRepeating; 89 NSUInteger_keyboardFlags;95 WebKeyboardInputFlags _keyboardFlags; 90 96 NSString *_inputManagerHint; 91 97 uint16_t _keyCode; … … 134 140 modifiers:(WebEventFlags)modifiers 135 141 isRepeating:(BOOL)repeating 136 withFlags:( NSUInteger)flags142 withFlags:(WebKeyboardInputFlags)flags 137 143 keyCode:(uint16_t)keyCode 138 144 isTabKey:(BOOL)tabKey … … 145 151 modifiers:(WebEventFlags)modifiers 146 152 isRepeating:(BOOL)repeating 147 withFlags:( NSUInteger)flags153 withFlags:(WebKeyboardInputFlags)flags 148 154 withInputManagerHint:(NSString *)hint 149 155 keyCode:(uint16_t)keyCode … … 163 169 @property(nonatomic, readonly, retain) NSString *inputManagerHint; 164 170 165 @property(nonatomic, readonly) NSUIntegerkeyboardFlags;171 @property(nonatomic, readonly) WebKeyboardInputFlags keyboardFlags; 166 172 @property(nonatomic, readonly) uint16_t keyCode; 167 173 @property(nonatomic, readonly, getter = isTabKey) BOOL tabKey; -
trunk/Source/WebCore/platform/ios/WebEvent.mm
r237007 r237045 428 428 } 429 429 430 - ( NSUInteger)keyboardFlags430 - (WebKeyboardInputFlags)keyboardFlags 431 431 { 432 432 ASSERT(_type == WebEventKeyDown || _type == WebEventKeyUp);
Note: See TracChangeset
for help on using the changeset viewer.