Changeset 33399

Show
Ignore:
Timestamp:
05/18/09 18:40:26 (4 years ago)
Author:
thorikawa
Message:

merge Ver.1.1.4 and Ver.1.1.5

Location:
platform/firefox/FireMobileSimulator/trunk/src
Files:
7 modified

Legend:

Unmodified
Added
Removed
  • platform/firefox/FireMobileSimulator/trunk/src/chrome/content/about.xul

    r29906 r33399  
    2828<vbox> 
    2929  <label value="FireMobileSimulator" style="font-weight: bold; font-size: x-large;"/> 
    30   <label value="&version; 1.2.0pre"/> 
     30  <label value="&version; 1.2.0beta"/> 
    3131  <separator class="thin"/> 
    3232  <label value="&createdBy;" style="font-weight: bold;"/> 
  • platform/firefox/FireMobileSimulator/trunk/src/chrome/content/common/carrier.js

    r29838 r33399  
    121121firemobilesimulator.common.carrier.getDoCoMoUserAgent = function(useragent, id) { 
    122122        var type1 = firemobilesimulator.common.pref.copyUnicharPref("msim.devicelist."+id+".type1"); 
    123         var cache = firemobilesimulator.common.pref.copyUnicharPref("msim.devicelist."+id+".cache"); 
     123        var cache = firemobilesimulator.common.pref.copyUnicharPref("msim.devicelist."+id+".cache") || 100; 
    124124        if (firemobilesimulator.common.carrier.Type[firemobilesimulator.common.carrier.DOCOMO].DOCOMO_FOMA == type1) { 
    125125                //TODO ;TB;WxxHxxの部分も動的に組み立てられるようにする 
  • platform/firefox/FireMobileSimulator/trunk/src/chrome/content/contentHandler.js

    r29357 r33399  
    2828firemobilesimulator.contentHandler.factoryMap[firemobilesimulator.common.carrier.AU] = firemobilesimulator.contentHandler.au; 
    2929firemobilesimulator.contentHandler.factoryMap[firemobilesimulator.common.carrier.SOFTBANK] = firemobilesimulator.contentHandler.softbank; 
     30firemobilesimulator.contentHandler.factoryMap[firemobilesimulator.common.carrier.OTHER] = firemobilesimulator.contentHandler.common;  
    3031 
    3132firemobilesimulator.contentHandler.factory = function (carrier) { 
  • platform/firefox/FireMobileSimulator/trunk/src/chrome/content/contentHandler/common.js

    r29886 r33399  
    2727        filter : function (ndDocument, deviceId) { 
    2828                if (ndDocument.body) { 
    29                         //フォントを等幅に統一 
     29                        // フォントを等幅に統一 
    3030                        ndDocument.body.style.fontFamily = "monospace"; 
    3131 
    32                         //表示領域サイズの制御(現在は横幅のみ) 
     32                        // 禁則処理を無効化 
     33                        firemobilesimulator.contentHandler.common.recursiveParse(ndDocument.body);  
     34                         
     35                        // 表示領域サイズの制御(現在は横幅のみ) 
    3336                        var forceScreenWidth = firemobilesimulator.common.pref 
    3437                                        .getBoolPref("msim.config.general.force-screen-width"); 
     
    7881                        } 
    7982                }; 
     83        }, 
     84         
     85        recursiveParse : function (pNode) { 
     86                var childs = pNode.childNodes; 
     87                dump("parseChilds:"+childs.length+"\n"); 
     88                for (var i = 0; i < childs.length; i++) { 
     89                        var cNode = childs[i]; 
     90                        if (childs[i].nodeType == 1) { 
     91                                firemobilesimulator.contentHandler.common.recursiveParse(childs[i]); 
     92                        }else if(cNode.nodeType == 3) { 
     93                                if(cNode.nodeValue.match("[^\n ]")){ 
     94                                        var separator; 
     95                                        if(navigator.userAgent.indexOf('Firefox/2') != -1) { 
     96                                                separator = '<wbr />' 
     97                                        } else { 
     98                                                separator = String.fromCharCode(8203); 
     99                                        } 
     100                                        dump("word-break:replace textNode\n") 
     101                                        var chNode = document.createTextNode(cNode.nodeValue.split("").join(separator)); 
     102                                        dump(cNode.nodeValue.split("").join(separator) + "\n"); 
     103                                        cNode.parentNode.replaceChild(chNode,cNode); 
     104                                } 
     105                        } 
     106                } 
    80107        } 
    81108}; 
  • platform/firefox/FireMobileSimulator/trunk/src/chrome/content/contentHandler/docomo.js

    r29886 r33399  
    5252 
    5353                var anchorTags = ndDocument.getElementsByTagName("a"); 
    54                 for (var i = 0, l = anchorTags.length; i++) { 
     54                for (var i = 0, l = anchorTags.length; i < l; i++) { 
    5555                        var anchorTag = anchorTags[i]; 
    5656                        var utn = anchorTag.getAttribute("utn"); 
  • platform/firefox/FireMobileSimulator/trunk/src/chrome/content/options/dialogs/device.js

    r27274 r33399  
    106106                var carrier = firemobilesimulator.options.dialogs.device.carrier; 
    107107 
     108                var deviceName = document.getElementById("msim.options.device.label").value; 
     109                var userAgent = document.getElementById("msim.options.device.useragent").value; 
     110                var si = document.getElementById("msim.options.device.type.menulist").selectedItem;  
     111                var type1 = si ? si.getAttribute("label") : null; 
     112                var screenWidth = document.getElementById("msim.options.device.screen-width").value; 
     113                var screenHeight = document.getElementById("msim.options.device.screen-height").value; 
     114 
     115                // 入力チェック 
     116                if (!deviceName || !carrier || !userAgent) { 
     117                        dump("[msim]Warning : Required field is null.\n"); 
     118                        alert(firemobilesimulator.options.dialogs.device.stringBundle 
     119                                        .getString("msim_editDeviceRequirementValidation")); 
     120                        return false; 
     121                } 
     122                 
    108123                if (firemobilesimulator.options.dialogs.device.windowType == "add") { 
    109124                        // carrier = 
     
    116131                } 
    117132 
    118                 dump("save-carrier:" + carrier + "\n"); 
    119                 dump("save-id:" + saveId + "\n"); 
    120  
    121                 var deviceName = document.getElementById("msim.options.device.label").value; 
    122                 var userAgent = document.getElementById("msim.options.device.useragent").value; 
    123                 var type1 = document.getElementById("msim.options.device.type.menulist").selectedItem.getAttribute("label"); 
    124                 var screenWidth = document.getElementById("msim.options.device.screen-width").value; 
    125                 var screenHeight = document.getElementById("msim.options.device.screen-height").value; 
    126  
    127                 // 入力チェック 
    128                 if (!deviceName || !carrier || !userAgent) { 
    129                         dump("[msim]Warning : Required field is null.\n"); 
    130                         alert(firemobilesimulator.options.dialogs.device.stringBundle 
    131                                         .getString("msim_editDeviceRequirementValidation")); 
    132                         return false; 
    133                 } 
     133                //dump("save-carrier:" + carrier + "\n"); 
     134                //dump("save-id:" + saveId + "\n"); 
     135 
    134136                firemobilesimulator.common.pref.setUnicharPref("msim.devicelist." + saveId + ".label", deviceName); 
    135137                firemobilesimulator.common.pref.setUnicharPref("msim.devicelist." + saveId + ".carrier", carrier); 
  • platform/firefox/FireMobileSimulator/trunk/src/install.rdf

    r29907 r33399  
    55    <em:id>{77cc852e-6b45-11dd-929f-d30256d89593}</em:id> 
    66    <em:name>FireMobileSimulator</em:name> 
    7     <em:version>1.2.0pre</em:version> 
     7    <em:version>1.2.0beta</em:version> 
    88    <em:creator>Takahiro Horikawa</em:creator> 
    99    <em:aboutURL>chrome://msim/content/about.xul</em:aboutURL> 
     
    1313        <em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id> <!-- Firefox --> 
    1414        <em:minVersion>2.0</em:minVersion> 
    15         <em:maxVersion>3.1.*</em:maxVersion> 
     15        <em:maxVersion>3.5.*</em:maxVersion> 
    1616      </Description> 
    1717    </em:targetApplication> 
    1818    <em:description>携帯端末のHTTPリクエスト、絵文字表示をシミュレートします。</em:description> 
    1919    <em:homepageURL>http://firemobilesimulator.org/</em:homepageURL> 
    20     <em:updateURL>https://ss1.xrea.com/poly.s49.xrea.com/dev/firefox/fms/update.xml</em:updateURL> 
     20    <em:updateURL>https://ss1.xrea.com/poly.s49.xrea.com/dev/firefox/fms/update2.xml</em:updateURL> 
    2121    <em:iconURL>chrome://msim/skin/msim_icon.png</em:iconURL> 
    2222  </Description>