Title: [167719] trunk/Source/WebKit2
- Revision
- 167719
- Author
- commit-qu...@webkit.org
- Date
- 2014-04-23 12:38:42 -0700 (Wed, 23 Apr 2014)
Log Message
Support encoding/decoding NSUInteger arguments in WKRemoteObjectCoder.
https://bugs.webkit.org/show_bug.cgi?id=132040
Add support for encoding/decoding NSUInteger arguments.
Patch by Yongjun Zhang <yongjun_zh...@apple.com> on 2014-04-23
Reviewed by Sam Weinig.
* Shared/API/Cocoa/WKRemoteObjectCoder.mm:
(encodeInvocation):
(decodeInvocationArguments):
Modified Paths
Diff
Modified: trunk/Source/WebKit2/ChangeLog (167718 => 167719)
--- trunk/Source/WebKit2/ChangeLog 2014-04-23 18:55:43 UTC (rev 167718)
+++ trunk/Source/WebKit2/ChangeLog 2014-04-23 19:38:42 UTC (rev 167719)
@@ -1,3 +1,16 @@
+2014-04-23 Yongjun Zhang <yongjun_zh...@apple.com>
+
+ Support encoding/decoding NSUInteger arguments in WKRemoteObjectCoder.
+ https://bugs.webkit.org/show_bug.cgi?id=132040
+
+ Add support for encoding/decoding NSUInteger arguments.
+
+ Reviewed by Sam Weinig.
+
+ * Shared/API/Cocoa/WKRemoteObjectCoder.mm:
+ (encodeInvocation):
+ (decodeInvocationArguments):
+
2014-04-22 Ryosuke Niwa <rn...@webkit.org>
Cursor doesn't change back to pointer when leaving the Safari window
Modified: trunk/Source/WebKit2/Shared/API/Cocoa/WKRemoteObjectCoder.mm (167718 => 167719)
--- trunk/Source/WebKit2/Shared/API/Cocoa/WKRemoteObjectCoder.mm 2014-04-23 18:55:43 UTC (rev 167718)
+++ trunk/Source/WebKit2/Shared/API/Cocoa/WKRemoteObjectCoder.mm 2014-04-23 19:38:42 UTC (rev 167719)
@@ -158,7 +158,7 @@
// bool
case 'B': {
BOOL value;
- [invocation getArgument:&value atIndex:i];;
+ [invocation getArgument:&value atIndex:i];
encodeToObjectStream(encoder, @(value));
break;
@@ -167,12 +167,21 @@
// NSInteger
case 'q': {
NSInteger value;
- [invocation getArgument:&value atIndex:i];;
+ [invocation getArgument:&value atIndex:i];
encodeToObjectStream(encoder, @(value));
break;
}
+ // NSUInteger
+ case 'Q': {
+ NSUInteger value;
+ [invocation getArgument:&value atIndex:i];
+
+ encodeToObjectStream(encoder, @(value));
+ break;
+ }
+
// Objective-C object
case '@': {
id value;
@@ -433,6 +442,13 @@
break;
}
+ // NSUInteger
+ case 'Q': {
+ NSUInteger value = [decodeObjectFromObjectStream(decoder, [NSSet setWithObject:[NSNumber class]]) unsignedIntegerValue];
+ [invocation setArgument:&value atIndex:i];
+ break;
+ }
+
// Objective-C object
case '@': {
NSSet *allowedClasses = allowedArgumentClasses[i - 2].get();
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes