找回密码
 加入我们

QQ登录

只需一步,快速开始

搜索
查看: 5486|回复: 12

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

[复制链接]
发表于 2011-3-31 22:36 | 显示全部楼层 |阅读模式
本帖最后由 fisher88 于 2011-3-31 22:47 编辑 ) U" Z0 h; Q1 c5 D1 N3 c  }

; @9 s/ A6 X& C) }' k# g安装advanced-system-prefs系列补丁,必须安装system-prefs-framework补丁。
# {3 Z) _( L; Q& q: C. m, ^8 Z' B+ w, O0 v
system-prefs-framework有两个版本,PRE2版和LEGACY版
  q2 e4 T: c8 f$ x; f& c4 `( ]- Y
LEGACY版应该就是2.1.0通用版1 r5 e, b0 ~1 d9 }( ^2 [

$ l$ u$ \; }0 d7 N" B! g( j% I现在发现这个问题。wbee输入法和system-prefs-framework-LEGACY版同时修改了下面这个文件
  1. /usr/palm/frameworks/mojo/builtins/palmInitFramework298.js
复制代码
system-prefs-framework的作用是修改联系人识别,增加陌生电话防火墙。9 X2 h" Z# J( |* _# G6 N
wbee输入法如果改palmInitFramework298.js,就没办法调出输入法。
' J- |+ \! F! H  M
  ?- ]0 `9 F  z: h/ Jadvanced-system-prefs是个重要补丁,想和wbee共存的话,建议:wbee输入法在刷完system-prefs-framework补丁的palmInitFramework298.js文件的基础上再来修改
  t1 q5 Y! H% N1 t; X$ f
* s$ A" I# l5 ~$ m+ C希望五月和chomper能看到。
回复

使用道具 举报

 楼主| 发表于 2011-3-31 22:43 | 显示全部楼层
本帖最后由 fisher88 于 2011-4-1 20:27 编辑 # Y7 s% r/ u. ]

7 E% a" `1 L+ C# x! K, O1 a上传了我备份的LEGACY版的3个palmInitFramework298.js文件  E4 @: N# V. N6 G' S2 j

$ X; Z/ ?3 l5 S- v+ c原始rom 刷完framework备份7 G; z4 N# d! J3 A
原始rom刷完wbee备份1 d# E+ `# P8 N# U; E! a
原始rom文件  M& h& L+ h3 x2 L& _
6 h. c4 \" h! R2 P  G
最新更新的system-prefs-framework52版3 G9 A; ]& v: i7 m

& u8 m+ l  z! b# L. V" S  h; L; v& o2 M( `
advanced-system-prefs-framework-pre_2.1.0-52 对palmInitFramework298.js的修改
  1. --- .orig/usr/palm/frameworks/mojo/builtins/palmInitFramework298.js
    " R/ M! M7 S$ b% I3 O9 }2 _! |
  2. +++ /usr/palm/frameworks/mojo/builtins/palmInitFramework298.js
    & K9 K- }+ S7 H+ g
  3. @@ -309,7 +309,7 @@
    * {9 D& Z: ~7 ], W) W
  4. 1];var jsonString=decodeURIComponent(matchingCookieValue);if(jsonString.length>0&&jsonString!=="undefined")result=JSON.parse(decodeURIComponent(matchingCookieValue))}}return result};
      |- z* [- ~% s) W( ^: K5 e6 P4 W. y$ d
  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(){};
      d3 _! u! D' ]; p9 H
  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=
    ; K0 y% P6 a" ^* L% b$ A9 R5 }) L
  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,9 z+ o5 k4 b$ g! {; s
  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,
    " ]$ A+ i4 t# y4 m7 T) G
  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};
    ! Z! z) @, g5 X
  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,
    8 @% ~/ K7 p/ a2 m& Y6 Z. E
  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;
    ( ?& o% b- a  m6 r! E
  12. @@ -432,12 +432,12 @@
    5 s* }# s* ?2 I" q
  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";5 Y3 e( B4 P! w& Q2 b  U2 B. Z
  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";
    : v! T$ j8 y' n' p3 Y, U  i% U* u
  15. Mojo.Gesture._oldSelectionFeedback="deprecated";Mojo.Gesture.CONSUMED_EVENT="consume";Mojo.Gesture.ALLOW_EVENT="allow";Mojo.Gesture.IGNORED_EVENT=false;" ]! e( B! n' S, Q) P7 K# G
  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",
    ) w+ Q" Q. c7 O/ N5 j
  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",
    8 a5 B: G) C: e. e, R$ A0 y
  18. Mojo.Gesture.keydownHandler,true);targetDocument.addEventListener("keyup",Mojo.Gesture.keyupHandler,true)}};9 K! D' J( \7 I- |# s( q$ g* P. F) j
  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);  d5 N& B, I+ L
  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()}};
    ) L1 k3 S/ f2 V9 q) `5 ]/ a, z: X
  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();}};
    3 P$ S* y. \; x0 s2 W9 S' ?
  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))};5 Q% w: R9 A% {1 V
  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)}};
    7 o; k  n2 }! {1 @
  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)}};! r5 b2 Y  s  ~1 E; B  F
  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)}};
    : i1 E/ k+ Z/ I6 e4 z& @) J
  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 R; i, [; K+ d: ]$ ]
  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)}};; {2 a  L1 S3 Y  Q; n  o
  28. @@ -447,7 +447,7 @@* h( N8 p/ A$ f! |; W" r- s4 m
  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};
    ' B7 ?, ^; b, P, [: \
  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)})}};; L: G1 q( i" @* @" C
  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};1 l, [3 s4 D3 J6 O0 m
  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),: L3 ^2 D, y* J7 u* V- e
  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),
    0 {( Q+ q9 Q3 H) b$ ^  x" Z
  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);
    + e) \/ y- p' J/ q- d: B
  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);
    $ c; {; D8 D$ q! U( t2 G/ b
  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=* q3 {" [( e. y. R. E# Y
  37. @@ -464,7 +464,7 @@
    ; g& g( \: J+ k" ^/ S( C; |
  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;! m& ?  F! b; n  X
  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;8 y+ M) c0 T8 ], }
  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=
    3 l/ |+ K4 a2 V" c' W2 H
  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,
    8 [) H5 R. {9 H& c5 R1 M
  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,
    6 X) d; s. m! v5 x1 [! U
  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;3 F; N/ S6 d+ A: c8 g3 ~. l
  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,
    1 U) C8 z: N) Z/ n3 n8 H$ M* t
  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)>
    9 P  t9 b) T& Y; [, R& z8 Z
  46. @@ -505,7 +505,7 @@
    ( _5 Z: d) r0 Y! b! ]! m: w
  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-=
    . F+ x& I5 Q) f7 R% b# w( \
  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();
    & q  y* q2 ~% }
  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,8 V3 Q* q# Q) u- Y+ E2 f
  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,
    ' {: t) d) m) P$ G
  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,1 X3 V9 G% T, H) I" z
  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);
    ' P) ^- r. K) l6 c% K
  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,
    / t: U7 a* Q: i) L- W2 J
  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 的帖子  F, R( y0 N0 N3 Y4 [
1 i1 Y: _* ^3 x; z( n
难道这个就是我装了wbee后无法装perfs的原因?
回复 支持 反对

使用道具 举报

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

使用道具 举报

发表于 2011-4-15 12:17 | 显示全部楼层
Begin
2 H( }/ u! a% k! f# B) `+ p没什么有趣的.
% i, i- n, [) ]! C$ b+ [Download( P/ _& Y! E% I) k1 c
% Total % Received % Xferd Average Speed Time Time Time Current! B2 z$ I% H# n: p, Y- U
62 59324 62 37195 0 0 12992 0 0:00:04 0:00:02 0:00:02 153883 H! T# n5 y& r0 ^9 V
100 59324 100 59324 0 0 15946 0 0:00:03 0:00:03 --:--:-- 18119
2 ?; ?" l+ C7 P' l+ g" f% e8 p( Q" [$ wIdentify; O* F  a9 f' H
org.webosinternals.patches.advanced-system-prefs-framework
& S) N6 k! N0 Y3 n: p, h% TInstall. O1 {  E/ m( V/ V/ ^
{"returnValue":true , "ticket":2, "subscribed":true}
) e) X( Y: v+ Q' ~) I7 W+ s) _{ "ticket":2 , "status":"STARTING" }0 [; k0 K9 s$ x1 }$ c
{ "ticket":2 , "status":"CREATE_TMP" }( D3 p. ]; k( A) r' H* I7 ?0 a0 ~
{ "ticket":2 , "status":"VERIFYING" }
) p: ~. m$ e; I6 Z{ "ticket":2 , "status":"IPKG_INSTALL" }6 V! C, ]* ^- f8 @7 m
{ "ticket":2 , "status":"SUCCESS" }
6 E" K4 j4 A7 h5 X) ]Mkdir-Prerm
, R, W% i# C' j# o( `没什么有趣的.( N1 Z* o1 c  n5 }
Install-Prerm
  }' ^1 A$ c9 P+ v1 Z  \没什么有趣的.3 p6 m9 f& R6 Q7 T& {+ h; s( S  i
Postinst
) R- S$ o& ~" O3 S+ v-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>&14 i1 V2 o9 ?" `& H/ O. y
The text leading up to this was:9 z( B6 A8 d3 s( I& P% _- H& d& \
--------------------------( h- {; ]5 p% o9 @9 n; {" D: _
|--- .orig/usr/palm/frameworks/contacts/submission/98contacts.js
+ w5 C$ o: z! {+ r/ l3 J, ?3 @1 ^|+++ /usr/palm/frameworks/contacts/submission/98contacts.js) R0 z9 I9 b- p8 G3 `
--------------------------
; O& E0 [/ `0 @7 \; ]5 w+ r& A# N; pFile to patch:! D7 L+ t! e6 J& Y' g8 K& F- H1 y7 \
Skip this patch? [y]# O+ Y, M! }6 ]6 j1 t1 i2 g( U8 ~
5 out of 5 hunks ignored. z, I% y- l0 D% j. w9 N% ^
The text leading up to this was:
: f! @& `0 _5 d' ?--------------------------
$ e$ k- A# ^9 C' ^0 B( t|--- .orig/usr/palm/frameworks/contacts/submission/98/javascript/AppPrefs.js, v3 X  X  Q; _' k% h9 G
|+++ /usr/palm/frameworks/contacts/submission/98/javascript/AppPrefs.js' [! w1 i" B% `/ P; ]
--------------------------
) F2 r' ^& r! c9 i1 r/ dFile to patch:3 A2 m! z# z' e% J0 O
Skip this patch? [y]& j4 a. g: ~: x- _1 |4 \3 n  [
2 out of 2 hunks ignored# M$ J! e5 \- r- a& C* |
The text leading up to this was:
9 d0 U: `7 Q3 Y. ]--------------------------5 `( ]' F; Z* \% d6 ]
|--- .orig/usr/palm/frameworks/contacts/submission/98/javascript/Person.js& [. W6 W: C# c! n
|+++ /usr/palm/frameworks/contacts/submission/98/javascript/Person.js9 o! g. \# M4 ^  O$ L3 X1 Y
--------------------------# o+ b- k; ~# Q9 F' y2 g
File to patch:+ Z; L( C5 r0 V
Skip this patch? [y]
) m, {6 Y9 B5 v; O/ D3 out of 3 hunks ignored0 g) S0 M8 ]# J! a  h
The text leading up to this was:+ Q# ]- O1 r& \1 K6 C
--------------------------
9 D) X. d+ \  ~4 Z' K|--- .orig/usr/palm/frameworks/contacts/submission/98/manifest.json0 [3 k: s" z* B3 i
|+++ /usr/palm/frameworks/contacts/submission/98/manifest.json
7 E8 w' V6 O' G* Z# n2 U--------------------------
3 h& K- d. p7 i! p. mFile to patch:1 t* x/ o5 `6 H( l: I3 M+ v
Skip this patch? [y]8 u" D3 n3 H% o9 {7 M. E
2 out of 2 hunks ignored
/ N$ S3 L7 S( O! |# k( r! D1 out of 5 hunks FAILED -- saving rejects to file usr/palm/frameworks/mojo/builtins/palmcontactsVersion1_0.js.rej  c' {1 V2 f! c4 c" C5 i, t
5 out of 5 hunks FAILED -- saving rejects to file usr/palm/frameworks/mojo/builtins/palmInitFramework298.js.rej
, N0 r! y1 S# ?0 _Remove  J: m: Q; F7 |, u3 L' |* E
WARNING: Ignoring unknown configuration parameter: src/gz 0-treo8 http://feeds.treo8.com' A6 v; G( n! E  D- `) M* N, H
WARNING: Ignoring unknown configuration parameter: src/gz all-treo8 http://feeds.treo8.com/soft/all1 f" I3 S  c& F3 S
Removing package org.webosinternals.patches.advanced-system-prefs-framework from root...
, R) M2 [% s* Y; m8 N4 _: }% I  j(offline root mode: not running org.webosinternals.patches.advanced-system-prefs-framework.prerm)# ]  k9 ?2 H( r3 A5 _" N( l
Delete
. |0 l1 h9 S- b! r8 {' a  u没什么有趣的.* L3 r  C, r* g( O( c
Failed
8 U* ?. E! Y" ]+ x3 n) ?没什么有趣的.
回复 支持 反对

使用道具 举报

发表于 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
  }2 y9 f) c# L/ _; {( v" M3 H我删除了wbee还是和palmInitFramework299.js冲突啊,怎么解决 veer webos 2.12
1 N; x) p% n# B5 n
同问,怎么解决啊?
回复 支持 反对

使用道具 举报

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:40 , Processed in 0.339144 second(s), 18 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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