找回密码
 加入我们

QQ登录

只需一步,快速开始

搜索
查看: 5486|回复: 12

[webOS开发] 关于wbee输入法,和system-prefs-framework补丁,兼容的讨论

[复制链接]
发表于 2011-3-31 22:36 | 显示全部楼层 |阅读模式
本帖最后由 fisher88 于 2011-3-31 22:47 编辑
& S% c9 j  ~9 z% h" }% H4 ^5 x( \: f+ u# {7 G
安装advanced-system-prefs系列补丁,必须安装system-prefs-framework补丁。
+ ^6 ~+ p( `5 V. R7 P- F5 s" T  c1 d/ x8 |+ `9 N
system-prefs-framework有两个版本,PRE2版和LEGACY版
2 X$ T/ M- ]7 D' g; Z: u& l# z
9 C" G7 e+ W; J7 M4 |, L+ ALEGACY版应该就是2.1.0通用版
5 |6 a0 H( R  y7 y7 V1 N) }  {# C2 Z: C6 r
现在发现这个问题。wbee输入法和system-prefs-framework-LEGACY版同时修改了下面这个文件
  1. /usr/palm/frameworks/mojo/builtins/palmInitFramework298.js
复制代码
system-prefs-framework的作用是修改联系人识别,增加陌生电话防火墙。/ k& M+ U) P/ Z, i0 X, e5 f4 y5 `
wbee输入法如果改palmInitFramework298.js,就没办法调出输入法。8 {5 k$ W9 m/ ^4 \

$ t5 Z1 Z. u* @6 Yadvanced-system-prefs是个重要补丁,想和wbee共存的话,建议:wbee输入法在刷完system-prefs-framework补丁的palmInitFramework298.js文件的基础上再来修改
7 z/ Z& T2 H8 y' U( m; j
( Z2 r& @$ `  A+ f# u, t4 j! o0 J0 d希望五月和chomper能看到。
回复

使用道具 举报

 楼主| 发表于 2011-3-31 22:43 | 显示全部楼层
本帖最后由 fisher88 于 2011-4-1 20:27 编辑 5 s" a3 R( T' J: G
) A) u) r0 Q7 _
上传了我备份的LEGACY版的3个palmInitFramework298.js文件
) S8 e# g: w! U$ b: o$ N
/ O& {! p3 I# p: k8 x原始rom 刷完framework备份! |( I3 r  e0 X6 [
原始rom刷完wbee备份
% }& p6 f' x: U& V0 @1 x  x! ~原始rom文件
7 C; Y/ t# _5 U$ d- V% y9 k' {( {* I2 ]3 {2 r3 W2 ~1 d
最新更新的system-prefs-framework52版
& m& z9 ~& R. u. T# x- e/ @$ I3 G1 E$ ?% ]9 a+ u  V
0 e% O) j  f" ~- w# X
advanced-system-prefs-framework-pre_2.1.0-52 对palmInitFramework298.js的修改
  1. --- .orig/usr/palm/frameworks/mojo/builtins/palmInitFramework298.js7 \) L- R6 |. x% R9 I7 m
  2. +++ /usr/palm/frameworks/mojo/builtins/palmInitFramework298.js3 C' u6 H( e1 `
  3. @@ -309,7 +309,7 @@
      L+ D; u  c( w  n
  4. 1];var jsonString=decodeURIComponent(matchingCookieValue);if(jsonString.length>0&&jsonString!=="undefined")result=JSON.parse(decodeURIComponent(matchingCookieValue))}}return result};
    5 n) L8 |3 }/ T( Y- o2 Q" f' E
  5. Mojo.Model.Cookie.prototype.put=function put(objectToStore,expirationDate){var objectData=encodeURIComponent(JSON.stringify(objectToStore));var terms=[];terms.push(objectData);if(expirationDate!==undefined)terms.push("expires="+expirationDate.toGMTString());var cookieText=terms.join("; ");var cookieTotal=this.prefixedName+"="+cookieText;this.document.cookie=cookieTotal};Mojo.Model.Cookie.prototype.remove=function remove(){this.put("",new Date)};Mojo.Controller.DashboardStageAssistant=function(){};
    7 h0 \& B% g! k( y3 c4 X
  6. Mojo.Controller.DashboardStageAssistant.prototype={setCallbacks:function(cbs){this.cleanup=cbs.cleanup},finalizeStageUpdate:function(callbackArgs,poppedSceneData){var dashboard=callbackArgs.dashboard;var content=_.clone(_.last(dashboard.contents));var callbacks=dashboard.callbacks;content._dashboardCount=typeof content.dashboardCount=="number"?content.dashboardCount:dashboard.contents.length;var template=dashboard._getSceneTemplate(content._dashboardCount);var sceneName=dashboard.sceneName;var stageController=$ Q& y. M$ z" ]; R$ ~, p- w
  7. -this.controller;dashboard.currentTemplate=template;dashboard.stageController=stageController;stageController.indicateNewContent(true);this.dashboard=dashboard;if(content.rightIcon)content.rightHTML=Mojo.View.render({object:content,template:Mojo.Widget.getSystemTemplatePath("dashboard/right-icon-template")});else if(content.rightTemplate)content.rightHTML=Mojo.View.render({object:content,templateRoot:content.templateRoot,template:content.rightTemplate});this.setCallbacks(callbacks);stageController.pushScene({name:sceneName,
    * a6 q' g% k3 l4 U7 v! q
  8. +this.controller;dashboard.currentTemplate=template;dashboard.stageController=stageController;this.dashboard=dashboard;if(content.rightIcon)content.rightHTML=Mojo.View.render({object:content,template:Mojo.Widget.getSystemTemplatePath("dashboard/right-icon-template")});else if(content.rightTemplate)content.rightHTML=Mojo.View.render({object:content,templateRoot:content.templateRoot,template:content.rightTemplate});this.setCallbacks(callbacks);stageController.pushScene({name:sceneName,
    5 G! h! G9 F7 h& L; i$ N
  9. templateRoot:dashboard.templateRoot,sceneTemplate:template,templateModel:content,assistantConstructor:Mojo.Controller.DashboardSceneAssistant},callbacks,template,content)}};Mojo.Controller.DashboardSceneAssistant=function(cbs,template,content){this.callbacks=cbs;this.currentTemplate=template;this.content=content};2 ]# R3 J$ Z' d& S6 G' o: a) ^
  10. Mojo.Controller.DashboardSceneAssistant.prototype={setup:function(){this.tapSwitcher=this.tapSwitcher.bind(this);this.startListening();this.callbacks.onSuccess(this.controller)},setTemplate:function(template,templateData,templateRoot){if(template!==this.currentTemplate){this.stopListening();this.controller.sceneElement.innerHTML=Mojo.View.render({object:templateData,templateRoot:templateRoot,template:template});this.startListening()}},startListening:function(){var ctrl=this.controller;ctrl.listen(ctrl.sceneElement,
    ! Z2 t; j- }- a3 e+ U2 w
  11. Mojo.Event.tap,this.tapSwitcher)},tapSwitcher:function(tapEvent){var target=tapEvent.target;var tapElement=Mojo.View.getParentWithAttribute(target,"x-mojo-dashboard-target");var tapAttribute=tapElement.getAttribute("x-mojo-dashboard-target");var cb=this.callbacks[tapAttribute+"TapHandler"];if(cb)cb(this.content)},stopListening:function(){var ctrl=this.controller;ctrl.stopListening(ctrl.sceneElement,Mojo.Event.tap,this.tapSwitcher)},cleanup:function(){this.stopListening()}};Mojo.Animation={};Mojo.Animation.kAnimationDuration=0.1;Mojo.Animation.kAppMenuAnimationDuration=0.08;Mojo.Animation.kScrimAnimationDuration=Mojo.Animation.kAppMenuAnimationDuration*0.8;Mojo.Animation.kCSSAnimationDuration=0.1;Mojo.Animation.kCSSAnimationTimingFunction="ease-out";Mojo.Animation.kCSSAppMenuAnimationDuration=0.1;Mojo.Animation.kCSSAppMenuAnimationTimingFunction="ease-out";Mojo.Animation.kCSSScrimAnimationDuration=0.1;Mojo.Animation.kCSSScrimAnimationTimingFunction=undefined;) y1 |$ Q: L5 Z- m0 P
  12. @@ -432,12 +432,12 @@
    5 s" q; P3 }( s0 ]6 H3 I
  13. }};requireFunc.__logLevel="error";Mojo[requireName]=requireFunc;assertFunc=function(){var result;result=Mojo[privateName].apply(null,arguments);return result};assertFunc.__logLevel="warn";Mojo[assertName]=assertFunc});Mojo.Gesture={};Mojo.Gesture._isFeedbackDisabled=function(target){return target.getAttribute(Mojo.Gesture.selectionHighlightFeedbackAttribute)===Mojo.Gesture.disableFeedback};Mojo.Gesture.index=0;Mojo.Gesture.PASS_EVENT_ATTRIBUTE="x-palm-pass-event";Mojo.Gesture.gestureAttribute="x-mojo-gesture";Mojo.Gesture.selectionHighlightAttribute="x-mojo-tap-highlight";Mojo.Gesture.selectionHighlightFeedbackAttribute="x-mojo-touch-feedback";Mojo.Gesture.consumesEnterAttribute="x-mojo-consumes-enter";
    6 r/ G- g- @8 W. _8 i1 `5 z% F
  14. Mojo.Gesture.momentarySelection="momentary";Mojo.Gesture.immediateSelection="immediate";Mojo.Gesture.persistentSelection="persistent";Mojo.Gesture.immediateFeedback="immediate";Mojo.Gesture.spontaneousFeedback="spontaneous";Mojo.Gesture.disableFeedback="none";Mojo.Gesture.delayedFeedback="delayed";Mojo.Gesture.immediatePersistentFeedback="immediatePersistent";Mojo.Gesture.delayedPersistentFeedback="delayedPersistent";Mojo.Gesture.delimiter=/ +/;Mojo.Gesture._newSelectionFeedback="new";4 X7 v" ~$ P/ g/ X& c. j" y
  15. Mojo.Gesture._oldSelectionFeedback="deprecated";Mojo.Gesture.CONSUMED_EVENT="consume";Mojo.Gesture.ALLOW_EVENT="allow";Mojo.Gesture.IGNORED_EVENT=false;
    " L3 `$ e  z# y& }
  16. -Mojo.Gesture.setup=function(targetDocument){targetDocument.addEventListener("mousedown",Mojo.Gesture.mouseDownHandler,false);targetDocument.addEventListener("mousemove",Mojo.Gesture.mouseMoveHandler,false);targetDocument.addEventListener("mouseup",Mojo.Gesture.mouseUpHandler,false);targetDocument.addEventListener(Mojo.Event.dragStart,Mojo.Gesture.dragStartCaptureHandler,true);targetDocument.addEventListener(Mojo.Event.dragStart,Mojo.Gesture.dragStartHandler,false);if(Mojo.Gesture.translateReturnKey){targetDocument.addEventListener("keydown",8 p% @. M; {4 r( X
  17. +Mojo.Gesture.setup=function(targetDocument){this.hapticFeedback=false;this.hapticFeedbackRequest=new Mojo.Service.Request("palm://com.palm.systemservice/",{method:'getPreferences',parameters:{"keys":["hapticFeedback"],"subscribe":true},onSuccess:function(response){if(response&&response.hapticFeedback!=undefined){this.hapticFeedback=response.hapticFeedback;}}.bind(this)});targetDocument.addEventListener("mousedown",Mojo.Gesture.mouseDownHandler.bind(this),false);targetDocument.addEventListener("mousemove",Mojo.Gesture.mouseMoveHandler,false);targetDocument.addEventListener("mouseup",Mojo.Gesture.mouseUpHandler,false);targetDocument.addEventListener(Mojo.Event.dragStart,Mojo.Gesture.dragStartCaptureHandler,true);targetDocument.addEventListener(Mojo.Event.dragStart,Mojo.Gesture.dragStartHandler,false);if(Mojo.Gesture.translateReturnKey){targetDocument.addEventListener("keydown",
    - }5 Y* Y2 C% X1 l
  18. Mojo.Gesture.keydownHandler,true);targetDocument.addEventListener("keyup",Mojo.Gesture.keyupHandler,true)}};
    6 N- P. i. Q/ _) V" a
  19. Mojo.Gesture.cleanup=function(targetDocument){var currentGesture;targetDocument.removeEventListener("mousedown",Mojo.Gesture.mouseDownHandler,false);targetDocument.removeEventListener("mousemove",Mojo.Gesture.mouseMoveHandler,false);targetDocument.removeEventListener("mouseup",Mojo.Gesture.mouseUpHandler,false);targetDocument.removeEventListener(Mojo.Event.dragStart,Mojo.Gesture.dragStartCaptureHandler,true);targetDocument.removeEventListener(Mojo.Event.dragStart,Mojo.Gesture.dragStartHandler,false);9 c1 G/ A! ^' v* U* b
  20. -if(Mojo.Gesture.translateReturnKey){targetDocument.removeEventListener("keydown",Mojo.Gesture.keydownHandler,true);targetDocument.removeEventListener("keyup",Mojo.Gesture.keyupHandler,true)}currentGesture=Mojo.Gesture.gestureForWindow(targetDocument.defaultView);if(currentGesture){Mojo.Gesture.saveGesture(targetDocument.defaultView,undefined);currentGesture.finish()}};; `& W2 M+ W( ~
  21. +if(Mojo.Gesture.translateReturnKey){targetDocument.removeEventListener("keydown",Mojo.Gesture.keydownHandler,true);targetDocument.removeEventListener("keyup",Mojo.Gesture.keyupHandler,true)}currentGesture=Mojo.Gesture.gestureForWindow(targetDocument.defaultView);if(currentGesture){Mojo.Gesture.saveGesture(targetDocument.defaultView,undefined);currentGesture.finish()}if(this.hapticFeedbackRequest){this.hapticFeedbackRequest.cancel();}};
    & K' l+ p, a! m
  22. Mojo.Gesture.windowForEvent=function windowForEvent(uiEvent){var targetWindow;if(!uiEvent)return;targetWindow=uiEvent.view;if(!targetWindow.Mojo)targetWindow=undefined;return targetWindow};Mojo.Gesture.gestureForWindow=function gestureForWindow(targetWindow){var gesture;if(targetWindow)gesture=targetWindow.Mojo._mojoCurrentGesture;return gesture};Mojo.Gesture.gestureForEvent=function gestureForEvent(uiEvent){return Mojo.Gesture.gestureForWindow(Mojo.Gesture.windowForEvent(uiEvent))};
    7 [% q2 a) v9 {2 M& H
  23. -Mojo.Gesture.saveGesture=function saveGesture(targetWindow,gesture){if(targetWindow)targetWindow.Mojo._mojoCurrentGesture=gesture};Mojo.Gesture.mouseDownHandler=function(event){Mojo.Event._logEvent("got",event,event&&event.target);var currentGesture=Mojo.Gesture.gestureForEvent(event);if(event&&!Mojo.Gesture.disableEventHandling&&!currentGesture&&event.button===0){currentGesture=new Mojo.Gesture.Recognizer(event);Mojo.Gesture.saveGesture(Mojo.Gesture.windowForEvent(event),currentGesture)}};
    ' r& Y* B- O. Q4 R" w
  24. +Mojo.Gesture.saveGesture=function saveGesture(targetWindow,gesture){if(targetWindow)targetWindow.Mojo._mojoCurrentGesture=gesture};Mojo.Gesture.mouseDownHandler=function(event){Mojo.Event._logEvent("got",event,event&&event.target);var currentGesture=Mojo.Gesture.gestureForEvent(event);if(event&&!Mojo.Gesture.disableEventHandling&&!currentGesture&&event.button===0){currentGesture=new Mojo.Gesture.Recognizer(event,this.hapticFeedback);Mojo.Gesture.saveGesture(Mojo.Gesture.windowForEvent(event),currentGesture)}};8 D( G) h( ]5 W) ]+ o9 ~
  25. Mojo.Gesture.mouseMoveHandler=function(event){var currentGesture=Mojo.Gesture.gestureForEvent(event);if(event&&!Mojo.Gesture.disableEventHandling&&currentGesture&&event.button===0){Mojo.Event._logEvent("got",event,event.target);currentGesture.mouseMove(event)}};- x5 c8 A1 R# h" I3 T; t! s7 G4 r
  26. Mojo.Gesture.mouseUpHandler=function(event){Mojo.Event._logEvent("got",event,event&&event.target);var currentGesture=Mojo.Gesture.gestureForEvent(event);if(event&&!Mojo.Gesture.disableEventHandling&&currentGesture&&event.button===0){currentGesture.mouseUp(event);Mojo.Gesture.saveGesture(event.view,undefined)}};6 e  R' \" f% M6 ?) `7 w
  27. Mojo.Gesture.dragStartCaptureHandler=function(event){var ev=event.down;var currentGesture=Mojo.Gesture.gestureForEvent(ev);if(ev&&!Mojo.Gesture.disableEventHandling&&currentGesture&&ev.button===0){Mojo.Event._logEvent("got",ev,ev.target);currentGesture.dragStartCapture(ev)}};
    , n7 P( d' w* @+ V
  28. @@ -447,7 +447,7 @@
    1 ^1 C3 Z/ `$ q3 Z# A3 d* `$ a
  29. Mojo.Gesture.recordEvents=function(record){Mojo.Gesture.doRecordEvents=record;if(record)Mojo.Gesture.eventList=[];else delete Mojo.Gesture.eventList};Mojo.Gesture.calculateDistance=function(pt1,pt2){return{x:pt1.x-pt2.x,y:pt1.y-pt2.y}};Mojo.Gesture.calculateAbsDistance=function(pt1,pt2){return{x:Math.abs(pt1.x-pt2.x),y:Math.abs(pt1.y-pt2.y)}};Mojo.Gesture.shouldStopEventOnElement=function(element){var nativeEvent=element.getAttribute(Mojo.Gesture.PASS_EVENT_ATTRIBUTE);return nativeEvent===null};. [* Y1 p( E$ B* i
  30. Mojo.Gesture.simulateClick=function simulateClick(element,screenX,screenY){if(!PalmSystem.simulated){var targetWindow=element.ownerDocument.defaultView;Mojo.Gesture.withMouseEventHandlingDisabled(function(){targetWindow.PalmSystem.simulateMouseClick(screenX,screenY,true);targetWindow.PalmSystem.simulateMouseClick(screenX,screenY,false)})}};' r# V5 J9 I- K" C( s  @
  31. Mojo.Gesture.handlesReturnKey=function handlesReturnKey(node){if(node===undefined||node===null)return false;if(node.hasAttribute(Mojo.Gesture.consumesEnterAttribute))return true;if(node.tagName!=="TEXTAREA")return Mojo.Dom.getStyle(node,"-webkit-user-modify")==="read-write";return true};
    % u$ S* F1 w, K) U  ?
  32. -Mojo.Gesture.Recognizer=function(event){var tagName,downHighlightTarget,downHighlightMode,applySelectHighlightTimerHandler;this.downTarget=event.target;this.document=event.target&&event.target.ownerDocument;this.downShift=event.shiftKey;if(Mojo.Gesture.doRecordEvents)Mojo.Gesture.eventList=[event];this.originalPointer=Mojo.Event.pointer(event);this.lastPointer=this.originalPointer;this.filter={x:true,y:true};this.index=Mojo.Gesture.index;Mojo.Gesture.index+=1;this.holdTimer=_.delay(this.mouseHeld.bind(this),  q  ?& J2 e9 z; o9 U4 R
  33. +Mojo.Gesture.Recognizer=function(event,hapticFeedback){this.hapticFeedback=hapticFeedback;var tagName,downHighlightTarget,downHighlightMode,applySelectHighlightTimerHandler;this.downTarget=event.target;this.document=event.target&&event.target.ownerDocument;this.downShift=event.shiftKey;if(Mojo.Gesture.doRecordEvents)Mojo.Gesture.eventList=[event];this.originalPointer=Mojo.Event.pointer(event);this.lastPointer=this.originalPointer;this.filter={x:true,y:true};this.index=Mojo.Gesture.index;Mojo.Gesture.index+=1;this.holdTimer=_.delay(this.mouseHeld.bind(this),! [. X- V% M8 @
  34. this.kHoldTime*1E3);this.downEvent=_.extend({},event);this.velocityHistory=[];this.velocity={x:0,y:0};this.simulateFlick=PalmSystem.simulated;tagName=this.downTarget.tagName;this.preventTap=Mojo.Gesture.doPreventNextTap;Mojo.Gesture.doPreventNextTap=false;if(!PalmSystem.simulated)this.maybeStopEvent(event);else if(tagName!=="INPUT"&&tagName!=="TEXTAREA"&&tagName!=="OBJECT")this.maybeStopEvent(event);downHighlightTarget=Mojo.View.findParentByAttribute(this.downTarget,this.document,Mojo.Gesture.selectionHighlightFeedbackAttribute);' s( R8 a- Z0 K3 }( ^) i0 x8 {
  35. if(downHighlightTarget){this.downHighlightVersion=Mojo.Gesture._newSelectionFeedback;downHighlightMode=downHighlightTarget.getAttribute(Mojo.Gesture.selectionHighlightFeedbackAttribute);this.downMode=downHighlightMode;if(downHighlightMode===Mojo.Gesture.immediateFeedback||downHighlightMode===Mojo.Gesture.spontaneousFeedback||downHighlightMode===Mojo.Gesture.immediatePersistentFeedback)this.applySelectHighlight(downHighlightTarget);applySelectHighlightTimerHandler=this.applySelectHighlightFromTimer.bind(this);
    ' K' U) _2 |0 f# X! Q
  36. this.selectTimer=_.delay(applySelectHighlightTimerHandler,this.kSelectTime*1E3);this.clearSelected=this.clearSelected.bind(this)}else{downHighlightTarget=Mojo.View.findParentByAttribute(this.downTarget,this.document,Mojo.Gesture.selectionHighlightAttribute);if(downHighlightTarget){this.downHighlightVersion=Mojo.Gesture._oldSelectionFeedback;downHighlightMode=downHighlightTarget.getAttribute(Mojo.Gesture.selectionHighlightAttribute);if(downHighlightMode===Mojo.Gesture.immediateSelection)this.applySelectHighlight(downHighlightTarget)}applySelectHighlightTimerHandler=
    9 ^4 t: h$ [; `7 H8 a
  37. @@ -464,7 +464,7 @@4 B% U3 F' @  A- p9 w% [9 C7 ?
  38. highlightedElement.getAttribute(Mojo.Gesture.selectionHighlightFeedbackAttribute);if(downHighlightMode){this.downHighlightVersion=Mojo.Gesture._newSelectionFeedback;downHighlightMode=highlightedElement.getAttribute(Mojo.Gesture.selectionHighlightFeedbackAttribute);if(force||downHighlightMode!==Mojo.Gesture.immediatePersistentFeedback&&downHighlightMode!==Mojo.Gesture.delayedPersistentFeedback)Mojo.Dom.removeClassName(highlightedElement,Mojo.Gesture.kSelectedClassName);delete this.highlightedElement;
    & Z: r' j1 v1 E* w/ n, M9 e6 _+ A
  39. delete this.highlightTargetTime;delete Mojo.Gesture.highlightTarget;delete Mojo.Gesture.highlightTargetTime}else{downHighlightMode=highlightedElement.getAttribute(Mojo.Gesture.selectionHighlightAttribute);this.downHighlightVersion=Mojo.Gesture._oldSelectionFeedback;if(force||downHighlightMode!==Mojo.Gesture.persistentSelection)Mojo.Dom.removeClassName(highlightedElement,Mojo.Gesture.kSelectedClassName);delete this.highlightedElement;delete this.highlightTargetTime;delete Mojo.Gesture.highlightTarget;7 A( s- b, P  S2 d/ m
  40. delete Mojo.Gesture.highlightTargetTime}}},clearSelectedDelayed:function(){var win;if(this.downMode===Mojo.Gesture.spontaneousFeedback){win=Mojo.Gesture.windowForEvent(this.downEvent);if(win){win.setTimeout(this.clearSelected,100);return}}_.delay(this.clearSelected,200)},makeFocusedWidgetSendChanges:function(focusedElement,triggeringEvent){var widgetController,widgetAssistant;var enclosingWidget=Mojo.View.findParentByAttribute(focusedElement,focusedElement.ownerDocument,"x-mojo-element");if(enclosingWidget){widgetController=' q* ^7 ?- b8 |6 A+ ~0 t! I+ z4 ^' |
  41. -enclosingWidget._mojoController;if(widgetController){widgetAssistant=widgetController.assistant;if(widgetAssistant&&widgetAssistant.sendChanges)widgetAssistant.sendChanges(triggeringEvent)}}},sendTap:function(triggeringEvent){var tapEvent,focusedElement;focusedElement=Mojo.View.getFocusedElement(this.downTarget.ownerDocument.body);if(focusedElement)this.makeFocusedWidgetSendChanges(focusedElement,triggeringEvent);tapEvent=Mojo.Event.send(this.downTarget,Mojo.Event.tap,Mojo.Event.addModKeys(triggeringEvent,2 w: l/ W* g6 }
  42. +enclosingWidget._mojoController;if(widgetController){widgetAssistant=widgetController.assistant;if(widgetAssistant&&widgetAssistant.sendChanges)widgetAssistant.sendChanges(triggeringEvent)}}},sendTap:function(triggeringEvent){if(this.hapticFeedback){this.serviceRequest=new Mojo.Service.Request("palm://com.palm.vibrate/",{method:'vibrate',parameters:{'period':0,'duration':50}});}var tapEvent,focusedElement;focusedElement=Mojo.View.getFocusedElement(this.downTarget.ownerDocument.body);if(focusedElement)this.makeFocusedWidgetSendChanges(focusedElement,triggeringEvent);tapEvent=Mojo.Event.send(this.downTarget,Mojo.Event.tap,Mojo.Event.addModKeys(triggeringEvent,/ L8 \& {* f) C" `
  43. {down:this.downEvent,count:this.downEvent.detail,up:triggeringEvent}));if(!tapEvent.defaultPrevented&&Mojo.View.isTextField(this.downTarget))Mojo.Gesture.simulateClick(this.downTarget,this.downEvent.pageX,this.downEvent.pageY)},simulateMouseDown:function(screenX,screenY){if(!PalmSystem.simulated)Mojo.Gesture.withMouseEventHandlingDisabled(function(){PalmSystem.simulateMouseClick(screenX,screenY,true)})},notDraggingAndInSameTarget:function(uiEvent){var feedbackAttr=Mojo.Gesture.selectionHighlightFeedbackAttribute;
    % x  I7 D. s. E4 H( q
  44. var highlightAttr=Mojo.Gesture.selectionHighlightAttribute;var downHighlightTarget,upHighlightTarget;if(this.dragSentButNotHandled){downHighlightTarget=Mojo.View.findParentByAttribute(this.downTarget,this.document,feedbackAttr);if(downHighlightTarget||this.downHighlightVersion===Mojo.Gesture._newSelectionFeedback)upHighlightTarget=Mojo.View.findParentByAttribute(uiEvent.target,this.document,feedbackAttr)||uiEvent.target;else{downHighlightTarget=Mojo.View.findParentByAttribute(this.downTarget,this.document,9 R/ n5 |8 u- g3 @
  45. highlightAttr)||this.downTarget;upHighlightTarget=Mojo.View.findParentByAttribute(uiEvent.target,this.document,highlightAttr)||uiEvent.target}if(downHighlightTarget===upHighlightTarget)return true}return false},finish:function(event){var mojoEvent,sendFlick,currentPointer;this.stopSelectTimer();this.clearSelectedDelayed();window.clearTimeout(this.holdTimer);if(!event)return;currentPointer=Mojo.Event.pointer(event);if(this.simulateFlick){sendFlick=Math.abs(this.velocity.x)>this.kFlickThreshold||Math.abs(this.velocity.y)>
    8 N' S! }7 a+ P" U4 `
  46. @@ -505,7 +505,7 @@: a! |, l0 S7 c; n8 K7 d
  47. animate:function(){var pos,newPos,diff;if(!this.scroller)return;if(this.scrollDeltas.x||this.scrollDeltas.y){pos=this.scroller.mojo.getState();this.scroller.mojo.scrollTo(pos.left-this.scrollDeltas.x,pos.top-this.scrollDeltas.y);newPos=this.scroller.mojo.getState();if(!this.options.preventVertical){diff=pos.top-newPos.top;this.startTop-=diff;this.hitStartY-=diff;this.element.style.top=parseInt(this.element.style.top,10)-diff+"px"}if(!this.options.preventHorizontal){diff=pos.left-newPos.left;this.startLeft-=
    + ?# j8 V4 p; ?8 I
  48. diff;this.hitStartX-=diff;this.element.style.left=parseInt(this.element.style.left,10)-diff+"px"}this.checkContainer()}},findNewContainer:function(leftDelta,topDelta){var i;for(i=0;i<this.containers.length;i++)if(this.containers[i].dragDatatype==this.options.dragDatatype&&this.hitTestContainer(leftDelta,topDelta,this.containers[i])){this.startHovering(this.containers[i]);break}},startHovering:function(container){var dt=container.element._mojoDropTarget;if(this.currentContainer!==undefined)this.stopHovering();$ g& e; o0 q$ m0 ^6 T
  49. this.currentContainer=container;Mojo.Dom.addClassName(container.element,Mojo.Drag.kContainerClass);if(dt.dragEnter)try{dt.dragEnter(this.element)}catch(e){Mojo.Log.logException(e,"WARNING: Caught exception in dragndrop container.dragEnter(): ")}},stopHovering:function(dontLeave){var dt=this.currentContainer.element._mojoDropTarget;Mojo.Dom.removeClassName(this.currentContainer.element,Mojo.Drag.kContainerClass);this.currentContainer=undefined;if(dt.dragLeave&&!dontLeave)try{dt.dragLeave(this.element)}catch(e){Mojo.Log.logException(e,, y& d: _; _, r8 Q' x* L
  50. -"WARNING: Caught exception in dragndrop container.dragLeave(): ")}},tapEvent:function(event){this.dragEnd(event)},cleanup:function(){var element=this.element;var scene=this.scene;var self=this;Mojo.Event.stopListening(element,Mojo.Event.dragging,self.dragging);Mojo.Event.stopListening(element,Mojo.Event.dragEnd,self.dragEnd);Mojo.Event.stopListening(element,Mojo.Event.dragStart,self.dragStart);Mojo.Event.stopListening(element,Mojo.Event.tap,self.tapEvent);var f=function(){if(element&&element.parent)Mojo.Event.stopListening(element.parent,; I% K& K9 ]- T- q
  51. +"WARNING: Caught exception in dragndrop container.dragLeave(): ")}},tapEvent:function(event){if(this.hapticFeedback){this.serviceRequest=new Mojo.Service.Request("palm://com.palm.vibrate/",{method:'vibrate',parameters:{'period':0,'duration':75}});}this.dragEnd(event)},cleanup:function(){var element=this.element;var scene=this.scene;var self=this;Mojo.Event.stopListening(element,Mojo.Event.dragging,self.dragging);Mojo.Event.stopListening(element,Mojo.Event.dragEnd,self.dragEnd);Mojo.Event.stopListening(element,Mojo.Event.dragStart,self.dragStart);Mojo.Event.stopListening(element,Mojo.Event.tap,self.tapEvent);var f=function(){if(element&&element.parent)Mojo.Event.stopListening(element.parent,
    # Y1 A" j  u* q+ M" e1 p
  52. "click",self.clickAfterDrag,true);else Mojo.Event.stopListening(scene.document,"click",self.clickAfterDrag,true)};_.defer(f);if(self.scrollAnimating){self.queue.remove(self);self.scrollAnimating=false}if(!self.options.preventDropReset)self.resetElement()},resetElement:function(){Mojo.Dom.removeClassName(this.element,this.draggingClass);this.element.style.position=this.origPosition;this.element.style.cssText=this.origStyleCSSText},collectContainerInfo:function(container){var position=Mojo.Dom.viewportOffset(container);
    / I; t# l$ `0 |$ f6 q
  53. var containerInfo=Mojo.Dom.getDimensions(container);containerInfo.element=container;containerInfo.top=position.top;containerInfo.left=position.left;containerInfo.dragDatatype=container._mojoDropTarget.dragDatatype;return containerInfo},hitTestContainer:function(leftDelta,topDelta,container){var left=this.hitStartX+leftDelta;var top=this.hitStartY+topDelta;if(left<container.left||left>container.left+container.width||top<container.top||top>container.top+container.height)return false;return true},scrollCurve:[40,
    ! ]/ U; q& u) V# A( i5 }. p8 w( x
  54. 20,10,5,0,0,0,0,0,0,0,0,0,0,0,0,-5,-10,-20,-40],calcScrollDeltas:function(event){var yDelta=0;var xDelta=0;if(this.scroller){if(!this.options.preventVertical){yDelta=(event.move.y-this.scrollerPos.top)/(this.scrollerSize.height-this.scrollerPos.top);yDelta=Math.round(this.interpolate(yDelta,this.scrollCurve))}if(!this.options.preventHorizontal){xDelta=(event.move.x-this.scrollerPos.left)/(this.scrollerSize.width-this.scrollerPos.left);xDelta=Math.round(this.interpolate(xDelta,this.scrollCurve))}}return{x:xDelta,
复制代码

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?加入我们

×
回复 支持 反对

使用道具 举报

发表于 2011-4-9 13:22 | 显示全部楼层
回复 fisher88 的帖子
: G5 j+ [. _. o! L5 k  h- k) S. Q3 }( l9 Q% S* Z  J
难道这个就是我装了wbee后无法装perfs的原因?
回复 支持 反对

使用道具 举报

发表于 2011-4-15 11:29 | 显示全部楼层
被这个困扰很久了,原来如此哦
回复 支持 反对

使用道具 举报

发表于 2011-4-15 12:17 | 显示全部楼层
Begin* S% o0 I; }0 H6 e
没什么有趣的.
8 |' \: ~" l5 J" Z& G6 wDownload
5 b. i# r" v3 t* S9 M% Total % Received % Xferd Average Speed Time Time Time Current. o& d1 c9 P) z, L" ?+ Z5 p
62 59324 62 37195 0 0 12992 0 0:00:04 0:00:02 0:00:02 15388
0 X$ N! O7 D9 {+ P8 m8 y) e3 f100 59324 100 59324 0 0 15946 0 0:00:03 0:00:03 --:--:-- 18119% B7 z" U& D* N0 }% Y, `
Identify4 Z0 R* a6 ~2 F' v; Y
org.webosinternals.patches.advanced-system-prefs-framework
: A- y& Q, B+ i1 IInstall" V  x' `' A. O. H2 M
{"returnValue":true , "ticket":2, "subscribed":true}! G  G* |1 G- k' e
{ "ticket":2 , "status":"STARTING" }# D: k$ N1 E( j7 K
{ "ticket":2 , "status":"CREATE_TMP" }" i9 [6 r5 z0 w! u+ `
{ "ticket":2 , "status":"VERIFYING" }
' Y) y3 ~" v: q' M{ "ticket":2 , "status":"IPKG_INSTALL" }
' N6 u  X# o3 r! ^  a{ "ticket":2 , "status":"SUCCESS" }
9 @7 P, X* b5 j/ ]; tMkdir-Prerm3 u7 o& q3 d9 ]/ c. F5 t7 N
没什么有趣的.
8 o3 R( f0 s# o8 h, x. nInstall-Prerm" V$ @: y* b! s2 H1 Z) C/ m# K
没什么有趣的.
0 {5 v3 q# v2 o$ Y: ?Postinst
- y% M+ z( W7 V* X1 Q-1: Unable to run command: IPKG_OFFLINE_ROOT=/media/cryptofs/apps /bin/sh /media/cryptofs/apps/usr/lib/ipkg/info/org.webosinternals.patches.advanced-system-prefs-framework.postinst 2>&1
0 t7 @6 S, S( M" V. B. ]The text leading up to this was:
5 Z4 r2 b! p! T--------------------------8 t9 S) E& R0 {0 V, n1 T
|--- .orig/usr/palm/frameworks/contacts/submission/98contacts.js+ d; r$ [& V) D
|+++ /usr/palm/frameworks/contacts/submission/98contacts.js% q% N; T5 a$ N/ P1 S4 f8 [# I
--------------------------
( k* \8 i  ?3 H6 a  `$ D( b4 r9 HFile to patch:! R1 q6 o5 l( a& a$ F
Skip this patch? [y]$ m, m0 Y, M' @$ r
5 out of 5 hunks ignored
  t6 \) d8 I" h! E% r. {* l" r7 UThe text leading up to this was:$ v/ p5 K; _4 ?1 u5 b3 ]! {
--------------------------2 D- ]+ t3 G- G- W
|--- .orig/usr/palm/frameworks/contacts/submission/98/javascript/AppPrefs.js- Z# w5 q" ]9 L0 H% i! @
|+++ /usr/palm/frameworks/contacts/submission/98/javascript/AppPrefs.js
6 }) r, D! N& N--------------------------' y" S4 M/ M# u4 p" W8 z, s
File to patch:
- C- l4 \( M* i+ i4 HSkip this patch? [y]
" \+ U/ H. y% N+ _2 out of 2 hunks ignored2 O4 `# U/ o2 N. L
The text leading up to this was:) Y! [' ]2 l8 ^; W7 _
--------------------------4 f/ X" m% A' ~* }" R! x
|--- .orig/usr/palm/frameworks/contacts/submission/98/javascript/Person.js" k- e" ]0 Z% G
|+++ /usr/palm/frameworks/contacts/submission/98/javascript/Person.js
  i- Q7 }; v4 Z- i( V& I0 ]--------------------------  @8 o; G" P. O( I' ?
File to patch:
% O$ o7 n8 m4 ^- |Skip this patch? [y]% ^- s, s, W' t$ ]$ Q
3 out of 3 hunks ignored
% B( ~, {! h; \& n/ Q  s4 jThe text leading up to this was:
2 A+ X# x" f  X! w--------------------------
  M  p/ `7 m# ?8 L' l|--- .orig/usr/palm/frameworks/contacts/submission/98/manifest.json
" d' W3 a3 K. f: u0 _1 ~|+++ /usr/palm/frameworks/contacts/submission/98/manifest.json# {6 f8 \- r0 Q7 g' Z
--------------------------6 D- @0 U2 |% _. E& |
File to patch:- F4 m6 G. f" o
Skip this patch? [y]# T+ H' O  b; ]
2 out of 2 hunks ignored: @( [* i' n7 p. D2 z4 T" ^$ w
1 out of 5 hunks FAILED -- saving rejects to file usr/palm/frameworks/mojo/builtins/palmcontactsVersion1_0.js.rej8 f) }! `8 f) U2 D! s0 `
5 out of 5 hunks FAILED -- saving rejects to file usr/palm/frameworks/mojo/builtins/palmInitFramework298.js.rej
! c  D4 k& f# K) h9 l! i7 ^Remove% H# R# o$ Q, Z* {4 C. y
WARNING: Ignoring unknown configuration parameter: src/gz 0-treo8 http://feeds.treo8.com: A# g( ?; [4 ?: [& R1 M- }& n* D
WARNING: Ignoring unknown configuration parameter: src/gz all-treo8 http://feeds.treo8.com/soft/all
- D* V5 B5 ?$ ^, G' I4 @) O) I& gRemoving package org.webosinternals.patches.advanced-system-prefs-framework from root...
; Y5 K3 z% I& k  R$ U  P' q(offline root mode: not running org.webosinternals.patches.advanced-system-prefs-framework.prerm)1 s: x# k. _6 J
Delete( O- E" D7 j0 x, [; h+ F4 w
没什么有趣的.( u! h$ c1 T* v
Failed8 h+ U5 K: O6 i- J2 `% U& C6 a
没什么有趣的.
回复 支持 反对

使用道具 举报

发表于 2011-4-15 14:10 | 显示全部楼层
怪不得我升级不了,原来是因为输入法啊
回复 支持 反对

使用道具 举报

发表于 2011-8-7 01:28 | 显示全部楼层
我删除了wbee还是和palmInitFramework299.js冲突啊,怎么解决 veer webos 2.12
回复 支持 反对

使用道具 举报

发表于 2011-8-16 23:24 | 显示全部楼层
我说我也难怪呢
回复 支持 反对

使用道具 举报

头像被屏蔽
发表于 2011-10-26 20:43 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复 支持 反对

使用道具 举报

发表于 2011-11-19 15:25 | 显示全部楼层
junnia 发表于 2011-8-7 01:28 ; X. o6 Y- R- ~3 B  e
我删除了wbee还是和palmInitFramework299.js冲突啊,怎么解决 veer webos 2.12

( [& ^8 Y5 y3 b% A  j2 v同问,怎么解决啊?
回复 支持 反对

使用道具 举报

shenql 该用户已被删除
发表于 2011-11-25 16:51 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复 支持 反对

使用道具 举报

发表于 2011-11-26 16:28 | 显示全部楼层
一直装不上,原来是wbee,标记,等待解决方案
回复 支持 反对

使用道具 举报

发表于 2011-11-27 14:53 | 显示全部楼层
我只好用了aiitype2.0.0,不装wbee了。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 加入我们

本版积分规则

QQ|Archiver|手机版|小黑屋|吹友吧 ( 京ICP备05078561号 )

GMT+8, 2025-2-26 14:10 , Processed in 0.331341 second(s), 17 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表