[Cocoa] Implement -shouldInsertText: on WKWebProcessPlugInEditingDelegate
Created attachment 296973 [details] Patch
rdar://problem/26929398
Attachment 296973 [details] did not pass style-queue: ERROR: Source/WebKit2/WebProcess/InjectedBundle/API/mac/WKWebProcessPlugInBrowserContextController.mm:589: This { should be at the end of the previous line [whitespace/braces] [4] ERROR: Source/WebKit2/WebProcess/InjectedBundle/API/mac/WKWebProcessPlugInBrowserContextController.mm:640: Missing spaces around : [whitespace/init] [4] Total errors found: 2 in 7 files If any of these errors are false positives, please file a bug against check-webkit-style.
Created attachment 296974 [details] Patch
Attachment 296974 [details] did not pass style-queue: ERROR: Source/WebKit2/WebProcess/InjectedBundle/API/mac/WKWebProcessPlugInBrowserContextController.mm:590: This { should be at the end of the previous line [whitespace/braces] [4] ERROR: Source/WebKit2/WebProcess/InjectedBundle/API/mac/WKWebProcessPlugInBrowserContextController.mm:641: Missing spaces around : [whitespace/init] [4] Total errors found: 2 in 7 files If any of these errors are false positives, please file a bug against check-webkit-style.
Comment on attachment 296974 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=296974&action=review > Source/WebKit2/WebProcess/InjectedBundle/API/mac/WKWebProcessPlugInBrowserContextController.mm:605 > + WKEditorInsertAction wkAction; > + switch (action) { > + case EditorInsertActionTyped: > + wkAction = WKEditorInsertActionTyped; > + break; > + case EditorInsertActionPasted: > + wkAction = WKEditorInsertActionPasted; > + break; > + case EditorInsertActionDropped: > + wkAction = WKEditorInsertActionDropped; > + break; > + } Would like this mapping to be a separate helper function.
Created attachment 297027 [details] Patch
Comment on attachment 297027 [details] Patch Clearing flags on attachment: 297027 Committed r209775: <http://trac.webkit.org/changeset/209775>
All reviewed patches have been landed. Closing bug.