[Vm-dev] VM Maker: VMMaker-oscog-golubovsky.138.mcz
commits at source.squeak.org
commits at source.squeak.org
Sat May 12 13:02:42 UTC 2012
Dmitry Golubovsky uploaded a new version of VMMaker to project VM Maker:
http://source.squeak.org/VMMaker/VMMaker-oscog-golubovsky.138.mcz
==================== Summary ====================
Name: VMMaker-oscog-golubovsky.138
Author: golubovsky
Time: 12 May 2012, 9:03:51 am
UUID: 74cbe75b-0ecc-46f1-b933-ca088a8b69a1
Ancestors: VMMaker-oscog-golubovsky.137
Added primOnScreenKbd to show/hide onscreen Android keyboard upon Smalltalk code request.
=============== Diff against VMMaker-oscog-golubovsky.137 ===============
Item was added:
+ ----- Method: AndroidPlugin>>primOnScreenKbd (in category 'system primitives') -----
+ primOnScreenKbd
+ | what vmcls vmobj bmmeth jmsg |
+ <var: 'what' type: 'int'>
+ <var: 'vmcls' type: 'jclass'>
+ <var: 'vmobj' type: 'jobject'>
+ <var: 'bmmeth' type: 'jmethodID'>
+ <export: true>
+ what := interpreterProxy stackIntegerValue: 0.
+ vmcls := self getVMClass.
+ vmcls ifNil: [^ interpreterProxy primitiveFail].
+ vmobj := self getVMObject.
+ vmobj ifNil: [^ interpreterProxy primitiveFail].
+ bmmeth := self getMethod: 'showHideKbd' withSig: '(I)V' inClass: vmcls.
+ bmmeth ifNil: [^ interpreterProxy primitiveFail].
+ self callVoidMethod: bmmeth On: vmobj with: what.
+ interpreterProxy pop: 1.
+ !
More information about the Vm-dev
mailing list