Changeset 93670 in webkit
- Timestamp:
- Aug 23, 2011 5:29:47 PM (13 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r93636 r93670 1 2011-08-23 Anders Carlsson <andersca@apple.com> 2 3 Prepare WKTextInputWindowController for the new text input model 4 https://bugs.webkit.org/show_bug.cgi?id=66826 5 6 Reviewed by Sam Weinig. 7 8 Add -[WKTextInputWindowController hasMarkedText] and make interpretKeyEvent take an 9 additional usingLegacyCocoaTextInput flag. No functionality change. 10 11 * UIProcess/API/mac/WKTextInputWindowController.h: 12 * UIProcess/API/mac/WKTextInputWindowController.mm: 13 (-[WKTextInputPanel _interpretKeyEvent:usingLegacyCocoaTextInput:string:]): 14 (-[WKTextInputPanel _hasMarkedText]): 15 (-[WKTextInputWindowController hasMarkedText]): 16 (-[WKTextInputWindowController interpretKeyEvent:usingLegacyCocoaTextInput:string:]): 17 * UIProcess/API/mac/WKView.mm: 18 (-[WKView keyDown:]): 19 1 20 2011-08-23 Gopal Raghavan <gopal.1.raghavan@nokia.com> 2 21 -
trunk/Source/WebKit2/UIProcess/API/mac/WKTextInputWindowController.h
r74046 r93670 36 36 37 37 - (NSTextInputContext *)inputContext; 38 - (BOOL)interpretKeyEvent:(NSEvent *)event string:(NSString **)string; 38 - (BOOL)hasMarkedText; 39 - (BOOL)interpretKeyEvent:(NSEvent *)event usingLegacyCocoaTextInput:(BOOL)usingLegacyCocoaTextInput string:(NSString **)string; 39 40 40 41 - (void)keyboardInputSourceChanged; -
trunk/Source/WebKit2/UIProcess/API/mac/WKTextInputWindowController.mm
r84997 r93670 34 34 35 35 - (NSTextInputContext *)_inputContext; 36 - (BOOL)_interpretKeyEvent:(NSEvent *)event string:(NSString **)string; 36 - (BOOL)_hasMarkedText; 37 - (BOOL)_interpretKeyEvent:(NSEvent *)event usingLegacyCocoaTextInput:(BOOL)usingLegacyCocoaTextInput string:(NSString **)string; 37 38 38 39 @end … … 82 83 } 83 84 84 - (BOOL)_interpretKeyEvent:(NSEvent *)event string:(NSString **)string85 - (BOOL)_interpretKeyEvent:(NSEvent *)event usingLegacyCocoaTextInput:(BOOL)usingLegacyCocoaTextInput string:(NSString **)string 85 86 { 86 87 BOOL hadMarkedText = [_inputTextView hasMarkedText]; … … 123 124 } 124 125 126 - (BOOL)_hasMarkedText 127 { 128 return [_inputTextView hasMarkedText]; 129 } 130 125 131 @end 126 132 … … 152 158 } 153 159 154 - (BOOL) interpretKeyEvent:(NSEvent *)event string:(NSString **)string160 - (BOOL)hasMarkedText 155 161 { 156 return [_panel _interpretKeyEvent:event string:string]; 162 return [_panel _hasMarkedText]; 163 } 164 165 - (BOOL)interpretKeyEvent:(NSEvent *)event usingLegacyCocoaTextInput:(BOOL)usingLegacyCocoaTextInput string:(NSString **)string 166 { 167 return [_panel _interpretKeyEvent:event usingLegacyCocoaTextInput:usingLegacyCocoaTextInput string:string]; 157 168 } 158 169 -
trunk/Source/WebKit2/UIProcess/API/mac/WKView.mm
r93550 r93670 1253 1253 // Try feeding the keyboard event directly to the plug-in. 1254 1254 NSString *string = nil; 1255 if ([[WKTextInputWindowController sharedTextInputWindowController] interpretKeyEvent:theEvent string:&string]) {1255 if ([[WKTextInputWindowController sharedTextInputWindowController] interpretKeyEvent:theEvent usingLegacyCocoaTextInput:NO string:&string]) { 1256 1256 if (string) 1257 1257 _data->_page->sendComplexTextInputToPlugin(_data->_pluginComplexTextInputIdentifier, string);
Note: See TracChangeset
for help on using the changeset viewer.