├── .csslintrc ├── .gitignore ├── .gitmodules ├── .jshintignore ├── .jshintrc ├── Jakefile ├── LICENSE ├── README.md ├── build ├── btest.js ├── btest │ └── test.html ├── build.js ├── build │ ├── app.js │ ├── chromestore.js │ ├── chromium.js │ ├── clean.js │ ├── compress.js │ ├── conf.js │ ├── pack.js │ ├── quotes.js │ ├── utils.js │ └── web.js ├── deploy.js ├── lint.js ├── lint │ └── reporter.js ├── scripts │ ├── build.sh │ └── runTestsInNode ├── stats.js ├── test.js └── test │ └── jasmine-node.js ├── configure ├── doc ├── CHANGELOG.md └── gpx.md ├── ext ├── app │ ├── blackberry.xml │ ├── build.xml │ ├── lib │ │ ├── ant-contrib │ │ │ ├── LICENSE.txt │ │ │ └── ant-contrib-1.0b3.jar │ │ └── cordova.1.5.0 │ │ │ ├── ext-air │ │ │ └── Cordova_Network │ │ │ │ ├── library.xml │ │ │ │ └── src │ │ │ │ └── org │ │ │ │ └── apache │ │ │ │ └── cordova │ │ │ │ └── network │ │ │ │ └── Network.as │ │ │ ├── ext │ │ │ └── cordova.1.5.0.jar │ │ │ └── javascript │ │ │ ├── cordova-1.5.0.js │ │ │ └── playbook │ │ │ └── cordova-1.5.0.js │ ├── playbook.xml │ ├── project.properties │ └── www │ │ ├── config.xml │ │ ├── cordova-1.5.0.js │ │ ├── ext-air │ │ └── Cordova_Network │ │ │ ├── library.xml │ │ │ └── src │ │ │ └── org │ │ │ └── apache │ │ │ └── cordova │ │ │ └── network │ │ │ └── Network.as │ │ ├── ext │ │ └── cordova.1.5.0.jar │ │ ├── playbook │ │ └── cordova-1.5.0.js │ │ └── plugins.xml ├── assets │ ├── beep.wav │ ├── browserCheck.html │ ├── dbsamples │ │ ├── dbapplication.xml │ │ ├── dbcontent.xml │ │ └── dbpackage.xml │ ├── images │ │ ├── AboutLogo.png │ │ ├── Colt-Landscape.png │ │ ├── Colt.png │ │ ├── Icon_128x128.png │ │ ├── Icon_150x150.png │ │ ├── Icon_16x16.png │ │ ├── Icon_48x48.png │ │ ├── NOTICE │ │ ├── README.md │ │ ├── about_Tizen_Simulator_logo.png │ │ ├── arrow.png │ │ ├── back.png │ │ ├── bluetooth.png │ │ ├── chromeToolsIcon.png │ │ ├── circle.png │ │ ├── closedArrowIcon.png │ │ ├── compass.png │ │ ├── configPanelIcon.png │ │ ├── contact-icon.png │ │ ├── dontPanic.png │ │ ├── downArrowIcon.png │ │ ├── forward.png │ │ ├── getstarted.png │ │ ├── infoIcon.png │ │ ├── leftArrowIcon.png │ │ ├── load2.gif │ │ ├── loadIcon.png │ │ ├── map_marker.png │ │ ├── marker_icon.png │ │ ├── menuDraggerIcon.png │ │ ├── openArrowIcon.png │ │ ├── panelsIcon.png │ │ ├── pause.png │ │ ├── phoneMap_tDiffuse.png │ │ ├── phoneMap_tNormal.png │ │ ├── play.png │ │ ├── refreshIcon.png │ │ ├── rightArrowIcon.png │ │ ├── saveIcon.png │ │ ├── settingsIcon.png │ │ ├── sideCollapseIconLeftSide.png │ │ ├── sideCollapseIconRightSide.png │ │ ├── tizen-sdk-menu.png │ │ ├── tizen-title.png │ │ ├── tizen-wave.gif │ │ ├── tizenAboutLogo.png │ │ ├── tizenlogo.png │ │ ├── tizenlogo_large.png │ │ └── ui-bg-hashed.png │ ├── index.html │ ├── phoneModel.js │ ├── ripple.css │ └── themes │ │ ├── dark │ │ ├── images │ │ │ ├── device.png │ │ │ ├── ui-bg_flat_25_222222_40x100.png │ │ │ ├── ui-bg_flat_30_cccccc_40x100.png │ │ │ ├── ui-bg_flat_50_1e1e1e_40x100.png │ │ │ ├── ui-bg_glass_40_ffc73d_1x400.png │ │ │ ├── ui-bg_highlight-hard_30_5871a3_1x100.png │ │ │ ├── ui-bg_highlight-soft_0_333333_1x100.png │ │ │ ├── ui-bg_highlight-soft_10_333333_1x100.png │ │ │ ├── ui-bg_highlight-soft_20_333333_1x100.png │ │ │ ├── ui-bg_highlight-soft_50_1e1e1e_1x100.png │ │ │ ├── ui-icons_222222_256x240.png │ │ │ ├── ui-icons_5871a3_256x240.png │ │ │ ├── ui-icons_a83300_256x240.png │ │ │ ├── ui-icons_cccccc_256x240.png │ │ │ └── ui-icons_ffffff_256x240.png │ │ └── theme.css │ │ └── light │ │ ├── images │ │ ├── device.png │ │ ├── ui-anim_basic_16x16.gif │ │ ├── ui-bg_flat_0_aaaaaa_40x100.png │ │ ├── ui-bg_flat_75_ffffff_40x100.png │ │ ├── ui-bg_glass_55_fbf9ee_1x400.png │ │ ├── ui-bg_glass_65_ffffff_1x400.png │ │ ├── ui-bg_glass_75_dadada_1x400.png │ │ ├── ui-bg_glass_75_e6e6e6_1x400.png │ │ ├── ui-bg_glass_95_fef1ec_1x400.png │ │ ├── ui-bg_highlight-soft_75_cccccc_1x100.png │ │ ├── ui-icons_222222_256x240.png │ │ ├── ui-icons_2e83ff_256x240.png │ │ ├── ui-icons_454545_256x240.png │ │ ├── ui-icons_888888_256x240.png │ │ └── ui-icons_cd0a0a_256x240.png │ │ └── theme.css ├── cache.manifest ├── chromestore │ ├── controllers │ │ ├── Background.js │ │ └── PopUp.js │ ├── manifest.json │ └── views │ │ ├── background.html │ │ └── popup.html └── chromium │ ├── bootstrap.js │ ├── controllers │ ├── Background.js │ ├── Insertion.js │ ├── PopUp.js │ ├── frame.js │ └── jquery.js │ ├── manifest.json │ ├── styles │ └── extension.css │ ├── updates.xml │ └── views │ ├── background.html │ ├── popup.html │ └── update.html ├── lib ├── ripple.js └── ripple │ ├── accelerometer.js │ ├── app.js │ ├── appcache.js │ ├── bootstrap.js │ ├── bus.js │ ├── console.js │ ├── constants.js │ ├── db.js │ ├── dbfs.js │ ├── deviceMotionEmulator.js │ ├── deviceSettings.js │ ├── devices.js │ ├── devices │ ├── Bold9700.js │ ├── Bold9700 │ │ └── skin.css │ ├── Bold9900.js │ ├── Bold9900 │ │ └── skin.css │ ├── Colt.js │ ├── Colt │ │ └── skin.css │ ├── Curve9300.js │ ├── Curve9300 │ │ └── skin.css │ ├── Curve9350-9360-9370.js │ ├── Curve9350-9360-9370 │ │ └── skin.css │ ├── FWVGA.js │ ├── G1.js │ ├── HD.js │ ├── HPPre3.js │ ├── HPVeer.js │ ├── HVGA.js │ ├── Legend.js │ ├── Nexus.js │ ├── Nexus7.js │ ├── NexusGalaxy.js │ ├── NexusS.js │ ├── NokiaN8.js │ ├── NokiaN97.js │ ├── PalmPre.js │ ├── PalmPre2.js │ ├── Pearl9100.js │ ├── Pearl9100 │ │ └── skin.css │ ├── Playbook.js │ ├── Playbook │ │ └── skin.css │ ├── QVGA.js │ ├── Style9670.js │ ├── Style9670 │ │ └── skin.css │ ├── Tattoo.js │ ├── Torch9800.js │ ├── Torch9800 │ │ └── skin.css │ ├── Torch9810.js │ ├── Torch9810 │ │ └── skin.css │ ├── Torch9860-9850.js │ ├── Torch9860-9850 │ │ └── skin.css │ ├── WQVGA.js │ ├── WSVGA.js │ ├── WVGA.js │ ├── Wave.js │ ├── custom.js │ ├── iPad.js │ ├── iPhone3.js │ ├── tizen-HD.js │ └── tizen-WVGA.js │ ├── documentEventListener.js │ ├── emulatorBridge.js │ ├── event.js │ ├── exception.js │ ├── fileSystem.js │ ├── fs.js │ ├── geo.js │ ├── honeypot.js │ ├── hwKeyEmulator.js │ ├── notifications.js │ ├── omgwtf.js │ ├── platform.js │ ├── platform │ ├── builder.js │ ├── cordova │ │ └── 2.0.0 │ │ │ ├── JavaPluginManager.js │ │ │ ├── MediaError.js │ │ │ ├── bridge.js │ │ │ ├── bridge │ │ │ ├── accelerometer.js │ │ │ ├── app.js │ │ │ ├── camera.js │ │ │ ├── capture.js │ │ │ ├── compass.js │ │ │ ├── console.js │ │ │ ├── contacts.js │ │ │ ├── device.js │ │ │ ├── file.js │ │ │ ├── geolocation.js │ │ │ ├── media.js │ │ │ ├── network.js │ │ │ └── notification.js │ │ │ ├── logger.js │ │ │ ├── spec.js │ │ │ └── spec │ │ │ ├── config.js │ │ │ ├── device.js │ │ │ ├── events.js │ │ │ └── ui.js │ ├── phonegap │ │ └── 1.0.0 │ │ │ ├── AVCodecsAttributes.js │ │ │ ├── Acceleration.js │ │ │ ├── AudioCodecAttributes.js │ │ │ ├── AudioDeviceAttributes.js │ │ │ ├── BrailleDeviceAttributes.js │ │ │ ├── CPUAttributes.js │ │ │ ├── CameraAttributes.js │ │ │ ├── Connection.js │ │ │ ├── ConnectionAttributes.js │ │ │ ├── Contact.js │ │ │ ├── ContactAccount.js │ │ │ ├── ContactAddress.js │ │ │ ├── ContactError.js │ │ │ ├── ContactField.js │ │ │ ├── ContactFindOptions.js │ │ │ ├── ContactName.js │ │ │ ├── ContactOrganization.js │ │ │ ├── DisplayDeviceAttributes.js │ │ │ ├── InputDevicesAttributes.js │ │ │ ├── KeyboardAttributes.js │ │ │ ├── MicrophoneAttributes.js │ │ │ ├── NetworkAttributes.js │ │ │ ├── NetworkStatus.js │ │ │ ├── OutputDevicesAttributes.js │ │ │ ├── PhoneGap.js │ │ │ ├── PointerAttributes.js │ │ │ ├── PowerAttributes.js │ │ │ ├── PrintingDeviceAttributes.js │ │ │ ├── SensorAttributes.js │ │ │ ├── StorageUnitAttributes.js │ │ │ ├── SystemInfoOptions.js │ │ │ ├── ThermalAttributes.js │ │ │ ├── VideoCodecAttributes.js │ │ │ ├── accelerometer.js │ │ │ ├── camera.js │ │ │ ├── compass.js │ │ │ ├── contacts.js │ │ │ ├── device.js │ │ │ ├── map.js │ │ │ ├── navigator.js │ │ │ ├── network.js │ │ │ ├── notification.js │ │ │ ├── orientation.js │ │ │ ├── service.js │ │ │ ├── sms.js │ │ │ ├── spec.js │ │ │ ├── spec │ │ │ ├── config.js │ │ │ ├── device.js │ │ │ ├── events.js │ │ │ └── ui.js │ │ │ ├── system.js │ │ │ └── telephony.js │ ├── spec.js │ ├── tizen │ │ └── 2.0 │ │ │ ├── AccountBase.js │ │ │ ├── AccountService.js │ │ │ ├── AlarmAbsolute.js │ │ │ ├── AlarmBase.js │ │ │ ├── AlarmRelative.js │ │ │ ├── ApplicationControl.js │ │ │ ├── ApplicationControlData.js │ │ │ ├── AttributeFilter.js │ │ │ ├── AttributeRangeFilter.js │ │ │ ├── BluetoothClass.js │ │ │ ├── BluetoothClassDeviceMajor.js │ │ │ ├── BluetoothClassDeviceMinor.js │ │ │ ├── BluetoothClassDeviceService.js │ │ │ ├── BluetoothDevice.js │ │ │ ├── BluetoothServiceHandler.js │ │ │ ├── BluetoothSocket.js │ │ │ ├── BookmarkFolder.js │ │ │ ├── BookmarkItem.js │ │ │ ├── CalendarAlarm.js │ │ │ ├── CalendarAttendee.js │ │ │ ├── CalendarEvent.js │ │ │ ├── CalendarEventId.js │ │ │ ├── CalendarItem.js │ │ │ ├── CalendarRecurrenceRule.js │ │ │ ├── CalendarTask.js │ │ │ ├── CompositeFilter.js │ │ │ ├── ContactAddress.js │ │ │ ├── ContactAnniversary.js │ │ │ ├── ContactBase.js │ │ │ ├── ContactEmailAddress.js │ │ │ ├── ContactGroup.js │ │ │ ├── ContactName.js │ │ │ ├── ContactOrganization.js │ │ │ ├── ContactPhoneNumber.js │ │ │ ├── ContactRef.js │ │ │ ├── ContactWebSite.js │ │ │ ├── Conversation.js │ │ │ ├── DeviceMotionEvent.js │ │ │ ├── DeviceOrientationEvent.js │ │ │ ├── DownloadRequest.js │ │ │ ├── EventBase.js │ │ │ ├── GeoCircleBounds.js │ │ │ ├── GeoPolyBounds.js │ │ │ ├── GeoRectBounds.js │ │ │ ├── GeocodeOptions.js │ │ │ ├── GeocodeResult.js │ │ │ ├── GeometryFilter.js │ │ │ ├── Message.js │ │ │ ├── MessageBody.js │ │ │ ├── MessageFolder.js │ │ │ ├── MessageStorage.js │ │ │ ├── MessagingService.js │ │ │ ├── NDEFMessage.js │ │ │ ├── NDEFRecord.js │ │ │ ├── NDEFRecordInternal.js │ │ │ ├── NDEFRecordMedia.js │ │ │ ├── NDEFRecordText.js │ │ │ ├── NDEFRecordURI.js │ │ │ ├── NotificationBase.js │ │ │ ├── NotificationDetailInfo.js │ │ │ ├── POIBase.js │ │ │ ├── POIFilter.js │ │ │ ├── POIGeometry.js │ │ │ ├── PackageInformation.js │ │ │ ├── PrivMessage.js │ │ │ ├── ReverseGeocodeOptions.js │ │ │ ├── SimpleCoordinates.js │ │ │ ├── SortMode.js │ │ │ ├── StatusNotification.js │ │ │ ├── SyncInfo.js │ │ │ ├── SyncProfileInfo.js │ │ │ ├── SyncServiceInfo.js │ │ │ ├── SyncStatistics.js │ │ │ ├── TZDate.js │ │ │ ├── TimeDuration.js │ │ │ ├── WebAPIError.js │ │ │ ├── WebAPIException.js │ │ │ ├── account.js │ │ │ ├── alarm.js │ │ │ ├── application.js │ │ │ ├── battery.js │ │ │ ├── bluetooth.js │ │ │ ├── bookmark.js │ │ │ ├── calendar.js │ │ │ ├── callHistory.js │ │ │ ├── contact.js │ │ │ ├── content.js │ │ │ ├── datacontrol.js │ │ │ ├── datasync.js │ │ │ ├── dbfs.js │ │ │ ├── dbinit.js │ │ │ ├── decorator.js │ │ │ ├── download.js │ │ │ ├── errorcode.js │ │ │ ├── filesystem.js │ │ │ ├── geoBackend_local.js │ │ │ ├── geoBackend_nominatim.js │ │ │ ├── geocoder.js │ │ │ ├── lbs_utils.js │ │ │ ├── map.js │ │ │ ├── messaging.js │ │ │ ├── msg_utils.js │ │ │ ├── navigator.js │ │ │ ├── networkbearerselection.js │ │ │ ├── nfc.js │ │ │ ├── notification.js │ │ │ ├── package.js │ │ │ ├── pendingObject.js │ │ │ ├── pendingoperation.js │ │ │ ├── poi.js │ │ │ ├── poiBackend_openmapquest.js │ │ │ ├── power.js │ │ │ ├── push.js │ │ │ ├── route.js │ │ │ ├── routeBackend_local.js │ │ │ ├── routeBackend_navigation.js │ │ │ ├── sensors.js │ │ │ ├── spec.js │ │ │ ├── spec │ │ │ ├── btdevices.js │ │ │ ├── config.js │ │ │ ├── device.js │ │ │ ├── sensor.js │ │ │ └── ui.js │ │ │ ├── syncml-js-lib │ │ │ ├── adapter.js │ │ │ ├── agent.js │ │ │ ├── base64.js │ │ │ ├── codec.js │ │ │ ├── common.js │ │ │ ├── constant.js │ │ │ ├── context.js │ │ │ ├── ctype.js │ │ │ ├── devinfo.js │ │ │ ├── elementtree.js │ │ │ ├── item.js │ │ │ ├── localadapter.js │ │ │ ├── matcher.js │ │ │ ├── protocol.js │ │ │ ├── remoteadapter.js │ │ │ ├── router.js │ │ │ ├── stablematch.js │ │ │ ├── state.js │ │ │ ├── storage.js │ │ │ ├── store.js │ │ │ ├── synchronizer.js │ │ │ └── useragent.js │ │ │ ├── systeminfo.js │ │ │ ├── systemsetting.js │ │ │ ├── time.js │ │ │ ├── timezone_info.js │ │ │ ├── tizen1_utils.js │ │ │ ├── touchEvent.js │ │ │ ├── typecast.js │ │ │ ├── typecoerce.js │ │ │ ├── typedef.js │ │ │ └── vibration.js │ ├── w3c │ │ └── 1.0 │ │ │ ├── Acceleration.js │ │ │ ├── Coordinates.js │ │ │ ├── Position.js │ │ │ ├── PositionError.js │ │ │ ├── Rotation.js │ │ │ ├── SensorConnection.js │ │ │ ├── geolocation.js │ │ │ └── navigator.js │ ├── wac │ │ ├── 1.0 │ │ │ ├── AccelerometerInfo.js │ │ │ ├── Account.js │ │ │ ├── AccountInfo.js │ │ │ ├── AddressBookItem.js │ │ │ ├── ApplicationTypes.js │ │ │ ├── Attachment.js │ │ │ ├── AudioPlayer.js │ │ │ ├── CalendarItem.js │ │ │ ├── CallRecord.js │ │ │ ├── CallRecordTypes.js │ │ │ ├── Camera.js │ │ │ ├── Config.js │ │ │ ├── DataNetworkConnectionTypes.js │ │ │ ├── DataNetworkInfo.js │ │ │ ├── Device.js │ │ │ ├── DeviceInfo.js │ │ │ ├── DeviceStateInfo.js │ │ │ ├── EventRecurrenceTypes.js │ │ │ ├── Exception.js │ │ │ ├── ExceptionTypes.js │ │ │ ├── File.js │ │ │ ├── Message.js │ │ │ ├── MessageFolderTypes.js │ │ │ ├── MessageQuantities.js │ │ │ ├── MessageTypes.js │ │ │ ├── Messaging.js │ │ │ ├── Multimedia.js │ │ │ ├── PIM.js │ │ │ ├── PositionInfo.js │ │ │ ├── PowerInfo.js │ │ │ ├── RadioInfo.js │ │ │ ├── RadioSignalSourceTypes.js │ │ │ ├── Telephony.js │ │ │ ├── VideoPlayer.js │ │ │ ├── Widget.js │ │ │ ├── WidgetManager.js │ │ │ ├── spec.js │ │ │ └── spec │ │ │ │ ├── config.js │ │ │ │ ├── device.js │ │ │ │ ├── events.js │ │ │ │ └── ui.js │ │ └── 2.0 │ │ │ ├── AUTHORS │ │ │ ├── README │ │ │ ├── accelerometer.js │ │ │ ├── calendar.js │ │ │ ├── camera.js │ │ │ ├── contact.js │ │ │ ├── contactfilter.js │ │ │ ├── dbfs.js │ │ │ ├── deviceapierror.js │ │ │ ├── deviceapis.js │ │ │ ├── deviceinteraction.js │ │ │ ├── devicestatus.js │ │ │ ├── errorcode.js │ │ │ ├── filesystem.js │ │ │ ├── geolocation.js │ │ │ ├── messagefilter.js │ │ │ ├── messaging.js │ │ │ ├── orientation.js │ │ │ ├── pendingObject.js │ │ │ ├── pendingoperation.js │ │ │ ├── spec.js │ │ │ ├── spec │ │ │ ├── config.js │ │ │ ├── device.js │ │ │ └── ui.js │ │ │ ├── task.js │ │ │ ├── typecoerce.js │ │ │ └── wac2_utils.js │ ├── web │ │ └── default │ │ │ ├── device.js │ │ │ ├── spec.js │ │ │ └── spec │ │ │ └── ui.js │ ├── webworks.bb10 │ │ └── 1.0.0 │ │ │ ├── app.js │ │ │ ├── connection.js │ │ │ ├── device.js │ │ │ ├── dialog.js │ │ │ ├── event.js │ │ │ ├── identity.js │ │ │ ├── invoke.js │ │ │ ├── navigator.js │ │ │ ├── spec.js │ │ │ ├── spec │ │ │ ├── config.js │ │ │ ├── device.js │ │ │ ├── events.js │ │ │ └── ui.js │ │ │ └── system.js │ ├── webworks.core │ │ └── 2.0.0 │ │ │ ├── XMLHttpRequest.js │ │ │ ├── client │ │ │ ├── FileProperties.js │ │ │ ├── dialog.js │ │ │ ├── events.js │ │ │ ├── io │ │ │ │ ├── dir.js │ │ │ │ └── file.js │ │ │ ├── system.js │ │ │ ├── transport.js │ │ │ └── utils.js │ │ │ ├── fsCache.js │ │ │ ├── select.js │ │ │ ├── server │ │ │ ├── dialog.js │ │ │ ├── io │ │ │ │ ├── dir.js │ │ │ │ └── file.js │ │ │ └── system.js │ │ │ └── spec │ │ │ ├── config.js │ │ │ └── events.js │ ├── webworks.handset │ │ └── 2.0.0 │ │ │ ├── XMLHttpRequest.js │ │ │ ├── client │ │ │ ├── Address.js │ │ │ ├── AddressBookArguments.js │ │ │ ├── Appointment.js │ │ │ ├── Attendee.js │ │ │ ├── AudioPlayer.js │ │ │ ├── BrowserArguments.js │ │ │ ├── CalendarArguments.js │ │ │ ├── CallLog.js │ │ │ ├── CameraArguments.js │ │ │ ├── Contact.js │ │ │ ├── FilterExpression.js │ │ │ ├── JavaArguments.js │ │ │ ├── MapsArguments.js │ │ │ ├── Memo.js │ │ │ ├── MemoArguments.js │ │ │ ├── MenuItem.js │ │ │ ├── Message.js │ │ │ ├── MessageArguments.js │ │ │ ├── Phone.js │ │ │ ├── PhoneArguments.js │ │ │ ├── PhoneCall.js │ │ │ ├── PhoneLogs.js │ │ │ ├── PushData.js │ │ │ ├── Recurrence.js │ │ │ ├── Reminder.js │ │ │ ├── SearchArguments.js │ │ │ ├── Task.js │ │ │ ├── TaskArguments.js │ │ │ ├── app.js │ │ │ ├── appEvent.js │ │ │ ├── audio.js │ │ │ ├── blackberry.js │ │ │ ├── category.js │ │ │ ├── identity.js │ │ │ ├── identity │ │ │ │ ├── Service.js │ │ │ │ ├── Transport.js │ │ │ │ └── phone.js │ │ │ ├── invoke.js │ │ │ ├── io │ │ │ │ └── dir.js │ │ │ ├── menu.js │ │ │ ├── messaging.js │ │ │ ├── pim.js │ │ │ ├── push.js │ │ │ ├── sms.js │ │ │ ├── system.js │ │ │ └── systemEvent.js │ │ │ ├── server.js │ │ │ ├── server │ │ │ ├── Task.js │ │ │ ├── app.js │ │ │ ├── appEvent.js │ │ │ ├── appointment.js │ │ │ ├── audioPlayer.js │ │ │ ├── category.js │ │ │ ├── contact.js │ │ │ ├── identity.js │ │ │ ├── identity │ │ │ │ └── phone.js │ │ │ ├── invoke.js │ │ │ ├── io │ │ │ │ └── dir.js │ │ │ ├── memo.js │ │ │ ├── menu.js │ │ │ ├── message.js │ │ │ ├── phone.js │ │ │ ├── push.js │ │ │ ├── sms.js │ │ │ └── systemEvent.js │ │ │ ├── spec.js │ │ │ └── spec │ │ │ ├── device.js │ │ │ ├── events.js │ │ │ └── ui.js │ └── webworks.tablet │ │ └── 2.0.0 │ │ ├── XMLHttpRequest.js │ │ ├── client │ │ ├── BrowserArguments.js │ │ ├── CameraArguments.js │ │ ├── app.js │ │ ├── appEvent.js │ │ ├── identity.js │ │ ├── invoke.js │ │ ├── io │ │ │ └── dir.js │ │ ├── system.js │ │ └── systemEvent.js │ │ ├── server.js │ │ ├── server │ │ ├── app.js │ │ ├── appEvent.js │ │ ├── identity.js │ │ ├── invoke.js │ │ └── systemEvent.js │ │ ├── spec.js │ │ └── spec │ │ ├── device.js │ │ ├── events.js │ │ └── ui.js │ ├── resizer.js │ ├── sensorSettings.js │ ├── touchEventEmulator.js │ ├── ui.js │ ├── ui │ ├── plugins │ │ ├── HWKeys.js │ │ ├── HWKeys │ │ │ └── hwkeysPanel.html │ │ ├── about-dialog.js │ │ ├── about-dialog │ │ │ └── dialog.html │ │ ├── accelerometer.js │ │ ├── accelerometer │ │ │ └── panel.html │ │ ├── app-dialog │ │ │ └── app-dialog.html │ │ ├── application.js │ │ ├── audioPlayer.js │ │ ├── background │ │ │ └── overlay.html │ │ ├── build.js │ │ ├── build │ │ │ └── panel.html │ │ ├── call.js │ │ ├── call │ │ │ └── panel.html │ │ ├── camera.js │ │ ├── camera │ │ │ └── overlay.html │ │ ├── communication.js │ │ ├── communication │ │ │ └── panel.html │ │ ├── communicationResponse │ │ │ └── overlay.html │ │ ├── configWindow.js │ │ ├── configWindow │ │ │ ├── configPanels.html │ │ │ └── configWindow.html │ │ ├── deviceSettings.js │ │ ├── devices.js │ │ ├── devices │ │ │ └── panel.html │ │ ├── dialog │ │ │ └── overlay.html │ │ ├── download.js │ │ ├── download │ │ │ └── panel.html │ │ ├── eulaCheck.js │ │ ├── exec-dialog.js │ │ ├── exec-dialog │ │ │ └── dialog.html │ │ ├── fileSystem.js │ │ ├── fileSystem │ │ │ └── panel.html │ │ ├── firstRunCheck.js │ │ ├── geoDB.js │ │ ├── geoDB │ │ │ └── panel.html │ │ ├── geoView.js │ │ ├── geoView │ │ │ └── panel.html │ │ ├── goodVibrations.js │ │ ├── information.js │ │ ├── information │ │ │ └── panel.html │ │ ├── invoke.js │ │ ├── invoke │ │ │ └── panel.html │ │ ├── layout.js │ │ ├── lockScreen │ │ │ └── overlay.html │ │ ├── menu │ │ │ └── overlay.html │ │ ├── messaging.js │ │ ├── messaging │ │ │ └── panel.html │ │ ├── multimedia.js │ │ ├── multimedia │ │ │ └── panel.html │ │ ├── network.js │ │ ├── network │ │ │ └── panel.html │ │ ├── nfc.js │ │ ├── nfc │ │ │ └── panel.html │ │ ├── notifications.js │ │ ├── notifications │ │ │ └── panel.html │ │ ├── omnibar.js │ │ ├── options.js │ │ ├── package.js │ │ ├── package │ │ │ └── panel.html │ │ ├── panelCollapse.js │ │ ├── phone.js │ │ ├── phone │ │ │ └── panel.html │ │ ├── platform.js │ │ ├── platformEvents.js │ │ ├── platformEvents │ │ │ └── panel.html │ │ ├── power.js │ │ ├── power │ │ │ └── panel.html │ │ ├── push.js │ │ ├── push │ │ │ └── panel.html │ │ ├── sensorSettings.js │ │ ├── sensorSettings │ │ │ └── panel.html │ │ ├── sensors.js │ │ ├── sensors │ │ │ └── panel.html │ │ ├── settings-dialog.js │ │ ├── settings-dialog │ │ │ └── dialog.html │ │ ├── settings-menu.js │ │ ├── settings-menu │ │ │ └── panel.html │ │ ├── settings.js │ │ ├── settings │ │ │ └── panel.html │ │ ├── storage.js │ │ ├── storage │ │ │ └── panel.html │ │ ├── themeSwitcher.js │ │ ├── time.js │ │ ├── time │ │ │ └── panel.html │ │ ├── tooltip.js │ │ ├── tooltips.js │ │ ├── touchEvent.js │ │ ├── touchEvent │ │ │ └── panel.html │ │ ├── videoPlayer.js │ │ ├── widgetConfig.js │ │ └── widgetConfig │ │ │ └── panel.html │ └── themes.js │ ├── utils.js │ ├── widgetConfig.js │ ├── xhr.js │ └── xhr │ ├── base.js │ ├── cors.js │ ├── helpers.js │ └── jsonp.js ├── package.json ├── snapshot ├── packageUpdate ├── sdk-wrt-options.txt ├── simulator.bat ├── simulator.sh ├── web-simulator-190912.tar.gz └── web-simulator-190912.zip ├── test ├── assets │ └── config │ │ ├── config.xml │ │ ├── config_multiple_name_nodes.xml │ │ ├── config_multiple_name_nodes_unique.xml │ │ ├── config_multiple_nested_features.xml │ │ ├── config_no_namespaces.xml │ │ ├── config_no_widget_node.xml │ │ ├── config_wac_2.0.xml │ │ ├── config_with_bad_url_email_attributes.xml │ │ └── config_with_missing_attributes.xml ├── integration │ └── webworks.tablet │ │ └── systemEvent.js └── unit │ ├── accelerometer.js │ ├── console.js │ ├── cordova │ ├── accelerometer.js │ ├── camera.js │ ├── capture.js │ ├── compass.js │ ├── console.js │ ├── contacts.js │ ├── device.js │ ├── file.js │ ├── geolocation.js │ ├── media.js │ ├── network.js │ └── notification.js │ ├── db.js │ ├── deviceMotionEmulator.js │ ├── device_settings.js │ ├── devices.js │ ├── emulatorBridge.js │ ├── event.js │ ├── exception.js │ ├── fs.js │ ├── geo.js │ ├── honeypot.js │ ├── notifications.js │ ├── phonegap │ ├── accelerometer.js │ ├── camera.js │ ├── compass.js │ ├── contacts.js │ ├── device.js │ ├── events.js │ ├── navigator.js │ ├── network.js │ └── notification.js │ ├── platform.builder.js │ ├── platform.js │ ├── resizer.js │ ├── thirdparty │ └── jQuery.js │ ├── tizen │ └── 1.0 │ │ ├── alarm.js │ │ ├── contact.js │ │ ├── geocoder.js │ │ ├── messaging.js │ │ ├── systeminfo.js │ │ └── tizen1_utils.js │ ├── tooltip.js │ ├── ui.js │ ├── utils.js │ ├── w3c │ ├── geolocation.js │ └── navigator.js │ ├── wac │ └── 2.0 │ │ ├── accelerometer.js │ │ ├── calendar.js │ │ ├── camera.js │ │ ├── contact.js │ │ ├── deviceapis.js │ │ ├── devicestatus.js │ │ ├── filesystem.js │ │ ├── geolocation.js │ │ └── orientation.js │ ├── web │ └── geolocation.js │ ├── webworks.handset │ ├── io │ │ └── dir.js │ └── system.js │ ├── webworks.tablet │ ├── app.js │ ├── appEvent.js │ ├── identity │ │ └── identity.js │ └── systemEvent.js │ ├── webworks │ ├── Address.js │ ├── Attendee.js │ ├── Message.js │ ├── Recurrence.js │ ├── Task.js │ ├── XMLHttpRequest.js │ ├── app.js │ ├── appEvent.js │ ├── appointment.js │ ├── audioPlayer.js │ ├── blackberry.js │ ├── category.js │ ├── config.js │ ├── contact.js │ ├── dialog.js │ ├── fsCache.js │ ├── identity │ │ ├── Service.js │ │ ├── Transport.js │ │ ├── identity.js │ │ └── phone.js │ ├── invoke.js │ ├── io │ │ ├── dir.js │ │ └── file.js │ ├── memo.js │ ├── menu.js │ ├── phone.js │ ├── push.js │ ├── select.js │ ├── sms.js │ ├── system.js │ ├── systemEvent.js │ ├── transport.js │ └── utils.js │ ├── widgetConfig.js │ └── xhr.js └── thirdparty ├── 3d.js ├── Math.uuid.js ├── OpenLayers.js ├── ShaderSkin.js ├── almond.js ├── async.js ├── browser-require ├── README.md ├── example │ ├── bar │ │ └── something.js │ ├── embedded.html │ ├── foo.js │ ├── load-local.html │ ├── load-remote-multi.html │ └── load-remote.html ├── require.js └── test │ ├── index.html │ ├── test-require.js │ └── test.js ├── draw.js ├── dredd.txt ├── fail.txt ├── jWorkflow ├── .gitignore ├── LICENSE ├── README.rdoc ├── Rakefile ├── jworkflow-min-0.4.0.js ├── lib │ └── jWorkflow.js ├── package.json └── test │ ├── test.html │ ├── test_jworkflow.js │ └── vendor │ ├── jquery.js │ ├── qunit.css │ └── qunit.js ├── jXHR.js ├── jasmine ├── .gitignore ├── .gitmodules ├── Gemfile ├── HowToRelease.markdown ├── MIT.LICENSE ├── README.markdown ├── Rakefile ├── images │ └── jasmine_favicon.png ├── jasmine-core.gemspec ├── jsdoc-template │ ├── allclasses.tmpl │ ├── allfiles.tmpl │ ├── class.tmpl │ ├── index.tmpl │ ├── publish.js │ ├── static │ │ ├── default.css │ │ ├── header.html │ │ └── index.html │ └── symbol.tmpl ├── jshint │ ├── jshint.js │ └── run.js ├── lib │ ├── jasmine-core.rb │ └── jasmine-core │ │ ├── example │ │ ├── SpecRunner.html │ │ ├── spec │ │ │ ├── PlayerSpec.js │ │ │ └── SpecHelper.js │ │ └── src │ │ │ ├── Player.js │ │ │ └── Song.js │ │ ├── jasmine-html.js │ │ ├── jasmine.css │ │ ├── jasmine.js │ │ ├── json2.js │ │ └── version.rb ├── spec │ ├── console │ │ └── TrivialConsoleReporterSpec.js │ ├── core │ │ ├── BaseSpec.js │ │ ├── CustomMatchersSpec.js │ │ ├── EnvSpec.js │ │ ├── ExceptionsSpec.js │ │ ├── JsApiReporterSpec.js │ │ ├── MatchersSpec.js │ │ ├── MockClockSpec.js │ │ ├── MultiReporterSpec.js │ │ ├── NestedResultsSpec.js │ │ ├── PrettyPrintSpec.js │ │ ├── QueueSpec.js │ │ ├── ReporterSpec.js │ │ ├── RunnerSpec.js │ │ ├── SpecRunningSpec.js │ │ ├── SpecSpec.js │ │ ├── SpySpec.js │ │ ├── SuiteSpec.js │ │ ├── UtilSpec.js │ │ └── WaitsForBlockSpec.js │ ├── html │ │ ├── MatchersHtmlSpec.js │ │ ├── PrettyPrintHtmlSpec.js │ │ └── TrivialReporterSpec.js │ ├── node_suite.js │ └── runner.html └── src │ ├── SourcesList.json │ ├── console │ └── TrivialConsoleReporter.js │ ├── core │ ├── Block.js │ ├── Env.js │ ├── JsApiReporter.js │ ├── Matchers.js │ ├── MultiReporter.js │ ├── NestedResults.js │ ├── PrettyPrinter.js │ ├── Queue.js │ ├── Reporter.js │ ├── Runner.js │ ├── Spec.js │ ├── Suite.js │ ├── WaitsBlock.js │ ├── WaitsForBlock.js │ ├── base.js │ ├── mock-timeout.js │ ├── util.js │ └── version.json │ └── html │ ├── TrivialReporter.js │ └── jasmine.css ├── jquery.js ├── jquery.tooltip.js ├── jquery.ui.js ├── node-XMLHttpRequest ├── README.md ├── XMLHttpRequest.js ├── autotest.watchr ├── demo.js ├── package.json └── tests │ ├── test-constants.js │ ├── test-headers.js │ └── test-request.js ├── redblack ├── .npmignore ├── LICENSE ├── README.md ├── TODO.txt ├── package.json └── redblack.js ├── three.js └── underscore-min.js /.csslintrc: -------------------------------------------------------------------------------- 1 | [ 2 | "floats", 3 | "overqualified-elements", 4 | "zero-units", 5 | "universal-selector", 6 | "import", 7 | "font-faces", 8 | "vendor-prefix", 9 | "text-indent", 10 | "gradients", 11 | "compatible-vendor-prefixes", 12 | "adjoining-classes", 13 | "known-properties", 14 | "empty-rules", 15 | "duplicate-properties", 16 | "display-property-grouping" 17 | ] 18 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .idea/* 2 | node_modules/ 3 | build/.idea/* 4 | solution/.idea/* 5 | .project 6 | .settings 7 | *.DS_Store 8 | tags 9 | *.*~ 10 | *.swp 11 | www/* 12 | build_output/ 13 | pkg 14 | /plugins 15 | services 16 | -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "thirdparty/jasmine"] 2 | path = thirdparty/jasmine 3 | url = http://github.com/pivotal/jasmine.git 4 | [submodule "thirdparty/node-XMLHttpRequest"] 5 | path = thirdparty/node-XMLHttpRequest 6 | url = http://github.com/driverdan/node-XMLHttpRequest.git 7 | [submodule "thirdparty/jWorkflow"] 8 | path = thirdparty/jWorkflow 9 | url = https://github.com/tinyhippos/jWorkflow.git 10 | -------------------------------------------------------------------------------- /.jshintignore: -------------------------------------------------------------------------------- 1 | .git 2 | node_modules 3 | thirdparty 4 | ext 5 | pkg 6 | snapshot 7 | test 8 | lib/ripple/platform/wac/ 9 | lib/ripple/platform/tizen/2.0/syncml-js-lib 10 | -------------------------------------------------------------------------------- /build/build/clean.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | var childProcess = require('child_process'), 17 | _c = require('./conf'); 18 | 19 | module.exports = function (prev, baton) { 20 | baton.take(); 21 | 22 | var cmd = 'rm -rf ' + _c.DEPLOY + ' && ' + 23 | 'mkdir ' + _c.DEPLOY; 24 | 25 | childProcess.exec(cmd, baton.pass); 26 | }; 27 | -------------------------------------------------------------------------------- /build/scripts/build.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Copyright 2011 Research In Motion Limited. 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | 17 | #declare the paths relative to the root 18 | OUTPUT=build_output 19 | PKG=pkg 20 | BUILD_OUTPUT=../../$OUTPUT 21 | RIPPLE_BUILD=../../$PKG 22 | 23 | #clear build_output directory 24 | rm -fr $BUILD_OUTPUT 25 | mkdir $BUILD_OUTPUT 26 | 27 | #call jake 28 | jake deploy > $BUILD_OUTPUT/jake.txt 29 | export BUILD_STATUS=$? 30 | 31 | #if build was good then package zip 32 | if [ $BUILD_STATUS = 0 ]; then 33 | cd ../.. 34 | zip -9 -r $OUTPUT/ripple_ui.zip $PKG 35 | fi 36 | exit $BUILD_STATUS 37 | -------------------------------------------------------------------------------- /build/scripts/runTestsInNode: -------------------------------------------------------------------------------- 1 | // This is here for a reason. 2 | // This is so you can do things like `NODE_PATH=/path/to/ripple/lib node external_script`. 3 | // This gets around that pesky forcing of relative requires in Node (these days). 4 | // See the `jakefile` for how this is used in this project. 5 | require('./../test')(); 6 | -------------------------------------------------------------------------------- /configure: -------------------------------------------------------------------------------- 1 | npm install -g jake jshint csslint uglify-js 2 | npm install 3 | -------------------------------------------------------------------------------- /doc/gpx.md: -------------------------------------------------------------------------------- 1 | 2 | GPX is a platform-independent serialization schema that we have used to allow Ripple to simulate 3 | geolocation routes. There are several ways you can generate GPX files for use with Ripple, here 4 | are three examples: 5 | 6 | 1. Record an actual route using the Endomondo mobile app (http://endomondo.com). After you have 7 | recorded the route, log into the Endomondo site and download the route as a GPX file using the 8 | export feature in the RH navigation pane. 9 | 2. Create a route by requesting driving directions at http://yournavigation.org. Select the 'Export' 10 | feature and select GPX format 11 | 3. If you prefer Google maps, follow these instructions: http://www.elsewhere.org/journal/gmaptogpx/ 12 | 13 | -------------------------------------------------------------------------------- /ext/app/lib/ant-contrib/ant-contrib-1.0b3.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intel/web-simulator/51fc660b7da78c90789d06e007daa392cb69e025/ext/app/lib/ant-contrib/ant-contrib-1.0b3.jar -------------------------------------------------------------------------------- /ext/app/lib/cordova.1.5.0/ext-air/Cordova_Network/library.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | org.apache.cordova.network.Network 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /ext/app/lib/cordova.1.5.0/ext/cordova.1.5.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intel/web-simulator/51fc660b7da78c90789d06e007daa392cb69e025/ext/app/lib/cordova.1.5.0/ext/cordova.1.5.0.jar -------------------------------------------------------------------------------- /ext/app/www/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | 7 | Ripple 8 | 9 | 10 | Ripple Mobile Environment Emulator 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /ext/app/www/ext-air/Cordova_Network/library.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | org.apache.cordova.network.Network 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /ext/app/www/ext/cordova.1.5.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intel/web-simulator/51fc660b7da78c90789d06e007daa392cb69e025/ext/app/www/ext/cordova.1.5.0.jar -------------------------------------------------------------------------------- /ext/app/www/plugins.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /ext/assets/beep.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intel/web-simulator/51fc660b7da78c90789d06e007daa392cb69e025/ext/assets/beep.wav -------------------------------------------------------------------------------- /ext/assets/images/AboutLogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intel/web-simulator/51fc660b7da78c90789d06e007daa392cb69e025/ext/assets/images/AboutLogo.png -------------------------------------------------------------------------------- /ext/assets/images/Colt-Landscape.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intel/web-simulator/51fc660b7da78c90789d06e007daa392cb69e025/ext/assets/images/Colt-Landscape.png -------------------------------------------------------------------------------- /ext/assets/images/Colt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intel/web-simulator/51fc660b7da78c90789d06e007daa392cb69e025/ext/assets/images/Colt.png -------------------------------------------------------------------------------- /ext/assets/images/Icon_128x128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intel/web-simulator/51fc660b7da78c90789d06e007daa392cb69e025/ext/assets/images/Icon_128x128.png -------------------------------------------------------------------------------- /ext/assets/images/Icon_150x150.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intel/web-simulator/51fc660b7da78c90789d06e007daa392cb69e025/ext/assets/images/Icon_150x150.png -------------------------------------------------------------------------------- /ext/assets/images/Icon_16x16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intel/web-simulator/51fc660b7da78c90789d06e007daa392cb69e025/ext/assets/images/Icon_16x16.png -------------------------------------------------------------------------------- /ext/assets/images/Icon_48x48.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intel/web-simulator/51fc660b7da78c90789d06e007daa392cb69e025/ext/assets/images/Icon_48x48.png -------------------------------------------------------------------------------- /ext/assets/images/NOTICE: -------------------------------------------------------------------------------- 1 | All logos, trademarks and other brand features contained in this project are and remain the property of their respective owners. No licenses or other rights in or to such logos and/or trademarks and/or other brand features are granted. Please see the linked, pertinent guideline[https://www.tizen.org/about/tizen-brand-guidelines]. 2 | -------------------------------------------------------------------------------- /ext/assets/images/README.md: -------------------------------------------------------------------------------- 1 | # License 2 | 3 | The assets in this directory are excluded from the Apache Software License v.2.0. Please see the NOTICE file in this directory for more details. 4 | 5 | -------------------------------------------------------------------------------- /ext/assets/images/about_Tizen_Simulator_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intel/web-simulator/51fc660b7da78c90789d06e007daa392cb69e025/ext/assets/images/about_Tizen_Simulator_logo.png -------------------------------------------------------------------------------- /ext/assets/images/arrow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intel/web-simulator/51fc660b7da78c90789d06e007daa392cb69e025/ext/assets/images/arrow.png -------------------------------------------------------------------------------- /ext/assets/images/back.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intel/web-simulator/51fc660b7da78c90789d06e007daa392cb69e025/ext/assets/images/back.png -------------------------------------------------------------------------------- /ext/assets/images/bluetooth.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intel/web-simulator/51fc660b7da78c90789d06e007daa392cb69e025/ext/assets/images/bluetooth.png -------------------------------------------------------------------------------- /ext/assets/images/chromeToolsIcon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intel/web-simulator/51fc660b7da78c90789d06e007daa392cb69e025/ext/assets/images/chromeToolsIcon.png -------------------------------------------------------------------------------- /ext/assets/images/circle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intel/web-simulator/51fc660b7da78c90789d06e007daa392cb69e025/ext/assets/images/circle.png -------------------------------------------------------------------------------- /ext/assets/images/closedArrowIcon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intel/web-simulator/51fc660b7da78c90789d06e007daa392cb69e025/ext/assets/images/closedArrowIcon.png -------------------------------------------------------------------------------- /ext/assets/images/compass.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intel/web-simulator/51fc660b7da78c90789d06e007daa392cb69e025/ext/assets/images/compass.png -------------------------------------------------------------------------------- /ext/assets/images/configPanelIcon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intel/web-simulator/51fc660b7da78c90789d06e007daa392cb69e025/ext/assets/images/configPanelIcon.png -------------------------------------------------------------------------------- /ext/assets/images/contact-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intel/web-simulator/51fc660b7da78c90789d06e007daa392cb69e025/ext/assets/images/contact-icon.png -------------------------------------------------------------------------------- /ext/assets/images/dontPanic.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intel/web-simulator/51fc660b7da78c90789d06e007daa392cb69e025/ext/assets/images/dontPanic.png -------------------------------------------------------------------------------- /ext/assets/images/downArrowIcon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intel/web-simulator/51fc660b7da78c90789d06e007daa392cb69e025/ext/assets/images/downArrowIcon.png -------------------------------------------------------------------------------- /ext/assets/images/forward.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intel/web-simulator/51fc660b7da78c90789d06e007daa392cb69e025/ext/assets/images/forward.png -------------------------------------------------------------------------------- /ext/assets/images/getstarted.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intel/web-simulator/51fc660b7da78c90789d06e007daa392cb69e025/ext/assets/images/getstarted.png -------------------------------------------------------------------------------- /ext/assets/images/infoIcon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intel/web-simulator/51fc660b7da78c90789d06e007daa392cb69e025/ext/assets/images/infoIcon.png -------------------------------------------------------------------------------- /ext/assets/images/leftArrowIcon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intel/web-simulator/51fc660b7da78c90789d06e007daa392cb69e025/ext/assets/images/leftArrowIcon.png -------------------------------------------------------------------------------- /ext/assets/images/load2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intel/web-simulator/51fc660b7da78c90789d06e007daa392cb69e025/ext/assets/images/load2.gif -------------------------------------------------------------------------------- /ext/assets/images/loadIcon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intel/web-simulator/51fc660b7da78c90789d06e007daa392cb69e025/ext/assets/images/loadIcon.png -------------------------------------------------------------------------------- /ext/assets/images/map_marker.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intel/web-simulator/51fc660b7da78c90789d06e007daa392cb69e025/ext/assets/images/map_marker.png -------------------------------------------------------------------------------- /ext/assets/images/marker_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intel/web-simulator/51fc660b7da78c90789d06e007daa392cb69e025/ext/assets/images/marker_icon.png -------------------------------------------------------------------------------- /ext/assets/images/menuDraggerIcon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intel/web-simulator/51fc660b7da78c90789d06e007daa392cb69e025/ext/assets/images/menuDraggerIcon.png -------------------------------------------------------------------------------- /ext/assets/images/openArrowIcon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intel/web-simulator/51fc660b7da78c90789d06e007daa392cb69e025/ext/assets/images/openArrowIcon.png -------------------------------------------------------------------------------- /ext/assets/images/panelsIcon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intel/web-simulator/51fc660b7da78c90789d06e007daa392cb69e025/ext/assets/images/panelsIcon.png -------------------------------------------------------------------------------- /ext/assets/images/pause.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intel/web-simulator/51fc660b7da78c90789d06e007daa392cb69e025/ext/assets/images/pause.png -------------------------------------------------------------------------------- /ext/assets/images/phoneMap_tDiffuse.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intel/web-simulator/51fc660b7da78c90789d06e007daa392cb69e025/ext/assets/images/phoneMap_tDiffuse.png -------------------------------------------------------------------------------- /ext/assets/images/phoneMap_tNormal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intel/web-simulator/51fc660b7da78c90789d06e007daa392cb69e025/ext/assets/images/phoneMap_tNormal.png -------------------------------------------------------------------------------- /ext/assets/images/play.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intel/web-simulator/51fc660b7da78c90789d06e007daa392cb69e025/ext/assets/images/play.png -------------------------------------------------------------------------------- /ext/assets/images/refreshIcon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intel/web-simulator/51fc660b7da78c90789d06e007daa392cb69e025/ext/assets/images/refreshIcon.png -------------------------------------------------------------------------------- /ext/assets/images/rightArrowIcon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intel/web-simulator/51fc660b7da78c90789d06e007daa392cb69e025/ext/assets/images/rightArrowIcon.png -------------------------------------------------------------------------------- /ext/assets/images/saveIcon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intel/web-simulator/51fc660b7da78c90789d06e007daa392cb69e025/ext/assets/images/saveIcon.png -------------------------------------------------------------------------------- /ext/assets/images/settingsIcon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intel/web-simulator/51fc660b7da78c90789d06e007daa392cb69e025/ext/assets/images/settingsIcon.png -------------------------------------------------------------------------------- /ext/assets/images/sideCollapseIconLeftSide.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intel/web-simulator/51fc660b7da78c90789d06e007daa392cb69e025/ext/assets/images/sideCollapseIconLeftSide.png -------------------------------------------------------------------------------- /ext/assets/images/sideCollapseIconRightSide.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intel/web-simulator/51fc660b7da78c90789d06e007daa392cb69e025/ext/assets/images/sideCollapseIconRightSide.png -------------------------------------------------------------------------------- /ext/assets/images/tizen-sdk-menu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intel/web-simulator/51fc660b7da78c90789d06e007daa392cb69e025/ext/assets/images/tizen-sdk-menu.png -------------------------------------------------------------------------------- /ext/assets/images/tizen-title.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intel/web-simulator/51fc660b7da78c90789d06e007daa392cb69e025/ext/assets/images/tizen-title.png -------------------------------------------------------------------------------- /ext/assets/images/tizen-wave.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intel/web-simulator/51fc660b7da78c90789d06e007daa392cb69e025/ext/assets/images/tizen-wave.gif -------------------------------------------------------------------------------- /ext/assets/images/tizenAboutLogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intel/web-simulator/51fc660b7da78c90789d06e007daa392cb69e025/ext/assets/images/tizenAboutLogo.png -------------------------------------------------------------------------------- /ext/assets/images/tizenlogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intel/web-simulator/51fc660b7da78c90789d06e007daa392cb69e025/ext/assets/images/tizenlogo.png -------------------------------------------------------------------------------- /ext/assets/images/tizenlogo_large.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intel/web-simulator/51fc660b7da78c90789d06e007daa392cb69e025/ext/assets/images/tizenlogo_large.png -------------------------------------------------------------------------------- /ext/assets/images/ui-bg-hashed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intel/web-simulator/51fc660b7da78c90789d06e007daa392cb69e025/ext/assets/images/ui-bg-hashed.png -------------------------------------------------------------------------------- /ext/assets/themes/dark/images/device.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intel/web-simulator/51fc660b7da78c90789d06e007daa392cb69e025/ext/assets/themes/dark/images/device.png -------------------------------------------------------------------------------- /ext/assets/themes/dark/images/ui-bg_flat_25_222222_40x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intel/web-simulator/51fc660b7da78c90789d06e007daa392cb69e025/ext/assets/themes/dark/images/ui-bg_flat_25_222222_40x100.png -------------------------------------------------------------------------------- /ext/assets/themes/dark/images/ui-bg_flat_30_cccccc_40x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intel/web-simulator/51fc660b7da78c90789d06e007daa392cb69e025/ext/assets/themes/dark/images/ui-bg_flat_30_cccccc_40x100.png -------------------------------------------------------------------------------- /ext/assets/themes/dark/images/ui-bg_flat_50_1e1e1e_40x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intel/web-simulator/51fc660b7da78c90789d06e007daa392cb69e025/ext/assets/themes/dark/images/ui-bg_flat_50_1e1e1e_40x100.png -------------------------------------------------------------------------------- /ext/assets/themes/dark/images/ui-bg_glass_40_ffc73d_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intel/web-simulator/51fc660b7da78c90789d06e007daa392cb69e025/ext/assets/themes/dark/images/ui-bg_glass_40_ffc73d_1x400.png -------------------------------------------------------------------------------- /ext/assets/themes/dark/images/ui-bg_highlight-hard_30_5871a3_1x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intel/web-simulator/51fc660b7da78c90789d06e007daa392cb69e025/ext/assets/themes/dark/images/ui-bg_highlight-hard_30_5871a3_1x100.png -------------------------------------------------------------------------------- /ext/assets/themes/dark/images/ui-bg_highlight-soft_0_333333_1x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intel/web-simulator/51fc660b7da78c90789d06e007daa392cb69e025/ext/assets/themes/dark/images/ui-bg_highlight-soft_0_333333_1x100.png -------------------------------------------------------------------------------- /ext/assets/themes/dark/images/ui-bg_highlight-soft_10_333333_1x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intel/web-simulator/51fc660b7da78c90789d06e007daa392cb69e025/ext/assets/themes/dark/images/ui-bg_highlight-soft_10_333333_1x100.png -------------------------------------------------------------------------------- /ext/assets/themes/dark/images/ui-bg_highlight-soft_20_333333_1x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intel/web-simulator/51fc660b7da78c90789d06e007daa392cb69e025/ext/assets/themes/dark/images/ui-bg_highlight-soft_20_333333_1x100.png -------------------------------------------------------------------------------- /ext/assets/themes/dark/images/ui-bg_highlight-soft_50_1e1e1e_1x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intel/web-simulator/51fc660b7da78c90789d06e007daa392cb69e025/ext/assets/themes/dark/images/ui-bg_highlight-soft_50_1e1e1e_1x100.png -------------------------------------------------------------------------------- /ext/assets/themes/dark/images/ui-icons_222222_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intel/web-simulator/51fc660b7da78c90789d06e007daa392cb69e025/ext/assets/themes/dark/images/ui-icons_222222_256x240.png -------------------------------------------------------------------------------- /ext/assets/themes/dark/images/ui-icons_5871a3_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intel/web-simulator/51fc660b7da78c90789d06e007daa392cb69e025/ext/assets/themes/dark/images/ui-icons_5871a3_256x240.png -------------------------------------------------------------------------------- /ext/assets/themes/dark/images/ui-icons_a83300_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intel/web-simulator/51fc660b7da78c90789d06e007daa392cb69e025/ext/assets/themes/dark/images/ui-icons_a83300_256x240.png -------------------------------------------------------------------------------- /ext/assets/themes/dark/images/ui-icons_cccccc_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intel/web-simulator/51fc660b7da78c90789d06e007daa392cb69e025/ext/assets/themes/dark/images/ui-icons_cccccc_256x240.png -------------------------------------------------------------------------------- /ext/assets/themes/dark/images/ui-icons_ffffff_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intel/web-simulator/51fc660b7da78c90789d06e007daa392cb69e025/ext/assets/themes/dark/images/ui-icons_ffffff_256x240.png -------------------------------------------------------------------------------- /ext/assets/themes/light/images/device.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intel/web-simulator/51fc660b7da78c90789d06e007daa392cb69e025/ext/assets/themes/light/images/device.png -------------------------------------------------------------------------------- /ext/assets/themes/light/images/ui-anim_basic_16x16.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intel/web-simulator/51fc660b7da78c90789d06e007daa392cb69e025/ext/assets/themes/light/images/ui-anim_basic_16x16.gif -------------------------------------------------------------------------------- /ext/assets/themes/light/images/ui-bg_flat_0_aaaaaa_40x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intel/web-simulator/51fc660b7da78c90789d06e007daa392cb69e025/ext/assets/themes/light/images/ui-bg_flat_0_aaaaaa_40x100.png -------------------------------------------------------------------------------- /ext/assets/themes/light/images/ui-bg_flat_75_ffffff_40x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intel/web-simulator/51fc660b7da78c90789d06e007daa392cb69e025/ext/assets/themes/light/images/ui-bg_flat_75_ffffff_40x100.png -------------------------------------------------------------------------------- /ext/assets/themes/light/images/ui-bg_glass_55_fbf9ee_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intel/web-simulator/51fc660b7da78c90789d06e007daa392cb69e025/ext/assets/themes/light/images/ui-bg_glass_55_fbf9ee_1x400.png -------------------------------------------------------------------------------- /ext/assets/themes/light/images/ui-bg_glass_65_ffffff_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intel/web-simulator/51fc660b7da78c90789d06e007daa392cb69e025/ext/assets/themes/light/images/ui-bg_glass_65_ffffff_1x400.png -------------------------------------------------------------------------------- /ext/assets/themes/light/images/ui-bg_glass_75_dadada_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intel/web-simulator/51fc660b7da78c90789d06e007daa392cb69e025/ext/assets/themes/light/images/ui-bg_glass_75_dadada_1x400.png -------------------------------------------------------------------------------- /ext/assets/themes/light/images/ui-bg_glass_75_e6e6e6_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intel/web-simulator/51fc660b7da78c90789d06e007daa392cb69e025/ext/assets/themes/light/images/ui-bg_glass_75_e6e6e6_1x400.png -------------------------------------------------------------------------------- /ext/assets/themes/light/images/ui-bg_glass_95_fef1ec_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intel/web-simulator/51fc660b7da78c90789d06e007daa392cb69e025/ext/assets/themes/light/images/ui-bg_glass_95_fef1ec_1x400.png -------------------------------------------------------------------------------- /ext/assets/themes/light/images/ui-bg_highlight-soft_75_cccccc_1x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intel/web-simulator/51fc660b7da78c90789d06e007daa392cb69e025/ext/assets/themes/light/images/ui-bg_highlight-soft_75_cccccc_1x100.png -------------------------------------------------------------------------------- /ext/assets/themes/light/images/ui-icons_222222_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intel/web-simulator/51fc660b7da78c90789d06e007daa392cb69e025/ext/assets/themes/light/images/ui-icons_222222_256x240.png -------------------------------------------------------------------------------- /ext/assets/themes/light/images/ui-icons_2e83ff_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intel/web-simulator/51fc660b7da78c90789d06e007daa392cb69e025/ext/assets/themes/light/images/ui-icons_2e83ff_256x240.png -------------------------------------------------------------------------------- /ext/assets/themes/light/images/ui-icons_454545_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intel/web-simulator/51fc660b7da78c90789d06e007daa392cb69e025/ext/assets/themes/light/images/ui-icons_454545_256x240.png -------------------------------------------------------------------------------- /ext/assets/themes/light/images/ui-icons_888888_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intel/web-simulator/51fc660b7da78c90789d06e007daa392cb69e025/ext/assets/themes/light/images/ui-icons_888888_256x240.png -------------------------------------------------------------------------------- /ext/assets/themes/light/images/ui-icons_cd0a0a_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intel/web-simulator/51fc660b7da78c90789d06e007daa392cb69e025/ext/assets/themes/light/images/ui-icons_cd0a0a_256x240.png -------------------------------------------------------------------------------- /ext/cache.manifest: -------------------------------------------------------------------------------- 1 | CACHE MANIFEST 2 | NETWORK: 3 | * 4 | CACHE: 5 | package.json 6 | -------------------------------------------------------------------------------- /ext/chromestore/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "", 3 | "name": "Ripple Emulator (Beta)", 4 | "background_page":"views/background.html", 5 | "icons":{ 6 | "16":"images/Icon_16x16.png", 7 | "128":"images/Icon_128x128.png", 8 | "48":"images/Icon_48x48.png" 9 | }, 10 | "browser_action":{ 11 | "popup":"views/popup.html", 12 | "default_icon":"images/Icon_48x48.png", 13 | "default_title":"Ripple" 14 | }, 15 | "content_scripts":[{ 16 | "run_at": "document_start", 17 | "js": ["controllers/Insertion.js"], 18 | "matches": ["http://*/*","https://*/*","file://*"] 19 | }, 20 | { 21 | "run_at": "document_start", 22 | "js": ["controllers/frame.js"], 23 | "matches": ["http://*/*","https://*/*","file://*"], 24 | "all_frames": true 25 | }], 26 | "permissions": ["tabs", "unlimitedStorage", "notifications", "contextMenus", "webRequest", ""], 27 | "description": "A browser based html5 mobile application development and testing tool" 28 | } 29 | -------------------------------------------------------------------------------- /ext/chromestore/views/background.html: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /ext/chromium/bootstrap.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | if (!window.tinyHippos) { 17 | window.tinyHippos = {}; 18 | var _panel = th_panel; 19 | 20 | (function () { 21 | var injection = _panel.LAYOUT_HTML.replace(/#URL_PREFIX#/g, rippleExtensionId); 22 | 23 | document.open(); 24 | document.write(injection); 25 | 26 | window.setTimeout(function () { 27 | document.close(); 28 | }, 100); 29 | }()); 30 | 31 | } 32 | 33 | delete window.th_panel; 34 | -------------------------------------------------------------------------------- /ext/chromium/controllers/frame.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | if (!document.getElementById("emulator-booting") && !document.getElementById("tinyhippos-injected")) { 17 | var script = document.createElement("script"); 18 | script.id = "tinyhippos-injected"; 19 | script.innerText = 'if (window.top.require) { window.top.require("ripple/bootstrap").inject(window, document); }'; 20 | document.documentElement.appendChild(script); 21 | } 22 | -------------------------------------------------------------------------------- /ext/chromium/updates.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /ext/chromium/views/background.html: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /lib/ripple/appcache.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | module.exports = { 17 | initialize: function () { 18 | window.addEventListener('load', function (e) { 19 | window.applicationCache.addEventListener('updateready', function (e) { 20 | if (window.applicationCache.status === window.applicationCache.UPDATEREADY) { 21 | window.applicationCache.swapCache(); 22 | window.location.reload(); 23 | } 24 | }, false); 25 | }, false); 26 | } 27 | }; 28 | -------------------------------------------------------------------------------- /lib/ripple/console.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | var _self; 17 | 18 | function _log(msg, method) { 19 | try { 20 | console[method](_self.prefix ? _self.prefix + " :: " + msg : msg); 21 | } catch (e) { 22 | // silent 23 | } 24 | } 25 | 26 | _self = { 27 | log: function (msg) { 28 | _log(msg, "log"); 29 | }, 30 | 31 | warn: function (msg) { 32 | _log(msg, "warn"); 33 | }, 34 | 35 | error: function (msg) { 36 | _log(msg, "error"); 37 | } 38 | }; 39 | 40 | module.exports = _self; 41 | -------------------------------------------------------------------------------- /lib/ripple/platform/cordova/2.0.0/JavaPluginManager.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | exec: function () { 3 | throw "this really shouldn't be called. like ever!"; 4 | }, 5 | resume: function () { 6 | throw "this shouldn't be called"; 7 | }, 8 | pause: function () { 9 | throw "this shouldn't be called"; 10 | }, 11 | destroy: function () { 12 | throw "this shouldn't be called"; 13 | } 14 | }; 15 | -------------------------------------------------------------------------------- /lib/ripple/platform/cordova/2.0.0/MediaError.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | var MediaError = function (code, msg) { 17 | this.code = (code !== undefined ? code : null); 18 | this.message = msg || ""; 19 | }; 20 | 21 | MediaError.MEDIA_ERR_NONE_ACTIVE = 0; 22 | MediaError.MEDIA_ERR_ABORTED = 1; 23 | MediaError.MEDIA_ERR_NETWORK = 2; 24 | MediaError.MEDIA_ERR_DECODE = 3; 25 | MediaError.MEDIA_ERR_NONE_SUPPORTED = 4; 26 | 27 | module.exports = MediaError; 28 | -------------------------------------------------------------------------------- /lib/ripple/platform/cordova/2.0.0/bridge/app.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | var camera = require('ripple/ui/plugins/camera'), 17 | event = require('ripple/event'); 18 | 19 | module.exports = { 20 | show: function (success, error, args) { 21 | return success && success(); 22 | } 23 | }; 24 | -------------------------------------------------------------------------------- /lib/ripple/platform/cordova/2.0.0/bridge/camera.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | var camera = require('ripple/ui/plugins/camera'), 17 | event = require('ripple/event'); 18 | 19 | module.exports = { 20 | takePicture: function (success, error, args) { 21 | event.once("captured-image", function (uri, file) { 22 | success(uri); 23 | }); 24 | camera.show(); 25 | }, 26 | cleanup: function (success, error, args) { 27 | success(); 28 | } 29 | }; 30 | -------------------------------------------------------------------------------- /lib/ripple/platform/cordova/2.0.0/bridge/capture.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | var camera = require('ripple/ui/plugins/camera'), 18 | event = require('ripple/event'); 19 | 20 | module.exports = { 21 | captureImage: function (success, error, args) { 22 | event.once("captured-image", function (uri, file) { 23 | file.fullPath = uri; 24 | success([file]); 25 | }); 26 | camera.show(); 27 | } 28 | }; 29 | -------------------------------------------------------------------------------- /lib/ripple/platform/cordova/2.0.0/bridge/console.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | module.exports = { 18 | log: function (win, fail, args) { 19 | console.log(args[0]); 20 | } 21 | }; 22 | -------------------------------------------------------------------------------- /lib/ripple/platform/cordova/2.0.0/bridge/device.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | var devices = require('ripple/devices'); 17 | 18 | module.exports = { 19 | getDeviceInfo: function (success, fail, args) { 20 | var device = devices.getCurrentDevice(); 21 | 22 | success({ 23 | available: true, 24 | platform: device.osName, 25 | version: device.osVersion, 26 | name: device.name, 27 | uuid: device.uuid, 28 | cordova: "2.0.0" 29 | }); 30 | } 31 | }; 32 | -------------------------------------------------------------------------------- /lib/ripple/platform/cordova/2.0.0/bridge/network.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | var deviceSettings = require('ripple/deviceSettings'), 18 | event = require('ripple/event'), 19 | _success; 20 | 21 | event.on("ConnectionChanged", function () { 22 | return _success && _success(deviceSettings.retrieve("NetworkStatus.connectionType")); 23 | }); 24 | 25 | module.exports = { 26 | getConnectionInfo: function (success, fail, args) { 27 | _success = success; 28 | success(deviceSettings.retrieve("NetworkStatus.connectionType")); 29 | } 30 | }; 31 | -------------------------------------------------------------------------------- /lib/ripple/platform/cordova/2.0.0/logger.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | log: function (msg) { 3 | console.log(msg); 4 | } 5 | }; 6 | -------------------------------------------------------------------------------- /lib/ripple/platform/cordova/2.0.0/spec/ui.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | module.exports = { 17 | plugins: [ 18 | "accelerometer", 19 | "deviceSettings", 20 | "geoView", 21 | "widgetConfig", 22 | "platformEvents" 23 | ] 24 | }; 25 | -------------------------------------------------------------------------------- /lib/ripple/platform/phonegap/1.0.0/AVCodecsAttributes.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | module.exports = function (info, id, audioCodecs, videoCodecs) { 17 | return { 18 | info: info, 19 | id: id, 20 | audioCodecs: audioCodecs, 21 | videoCodecs: videoCodecs 22 | }; 23 | }; 24 | -------------------------------------------------------------------------------- /lib/ripple/platform/phonegap/1.0.0/Acceleration.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | module.exports = function (x, y, z) { 17 | return { 18 | x: x || 0, 19 | y: y || 0, 20 | z: z || 0, 21 | timestamp: new Date().getTime() 22 | }; 23 | }; 24 | -------------------------------------------------------------------------------- /lib/ripple/platform/phonegap/1.0.0/AudioCodecAttributes.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | module.exports = function (info, id, compFormats, encode, decode) { 17 | return { 18 | info: info, 19 | id: id, 20 | compFormats: compFormats, 21 | encode: encode, 22 | decode: decode 23 | }; 24 | }; 25 | -------------------------------------------------------------------------------- /lib/ripple/platform/phonegap/1.0.0/AudioDeviceAttributes.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | module.exports = function (type, freqRangeLow, freqRangeHigh, volumeLevel, info) { 17 | return { 18 | type: type, 19 | freqRangeLow: freqRangeLow, 20 | freqRangeHigh: freqRangeHigh, 21 | volumeLevel: volumeLevel, 22 | info: info 23 | }; 24 | 25 | }; 26 | -------------------------------------------------------------------------------- /lib/ripple/platform/phonegap/1.0.0/BrailleDeviceAttributes.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | module.exports = function (nbCells, info) { 17 | return { 18 | nbCells: nbCells, 19 | info: info 20 | }; 21 | 22 | }; 23 | -------------------------------------------------------------------------------- /lib/ripple/platform/phonegap/1.0.0/CPUAttributes.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | module.exports = function (info, id, usage) { 17 | return { 18 | info: info, 19 | id: id, 20 | usage: usage 21 | }; 22 | }; 23 | -------------------------------------------------------------------------------- /lib/ripple/platform/phonegap/1.0.0/CameraAttributes.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | module.exports = function (supportsVideo, hasFlash, sensorPixels, maxZoomFactor) { 17 | return { 18 | supportsVideo: supportsVideo, 19 | hasFlash: hasFlash, 20 | sensorPixels: sensorPixels, 21 | maxZoomFactor: maxZoomFactor 22 | }; 23 | 24 | }; 25 | -------------------------------------------------------------------------------- /lib/ripple/platform/phonegap/1.0.0/Connection.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | module.exports = { 17 | UNKNOWN: "unknown", 18 | ETHERNET: "ethernet", 19 | WIFI: "wifi", 20 | CELL_2G: "2g", 21 | CELL_3G: "3g", 22 | CELL_4G: "4g", 23 | NONE: "none" 24 | }; 25 | -------------------------------------------------------------------------------- /lib/ripple/platform/phonegap/1.0.0/ContactAccount.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | module.exports = function (domain, username, userid) { 17 | return { 18 | domain: domain, 19 | username: username, 20 | userid: userid 21 | }; 22 | }; 23 | -------------------------------------------------------------------------------- /lib/ripple/platform/phonegap/1.0.0/ContactAddress.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | module.exports = function (pref, type, formatted, streetAddress, locality, region, postalCode, country, id) { 17 | return { 18 | pref: pref || null, 19 | type: type || null, 20 | formatted: formatted || null, 21 | streetAddress: streetAddress || null, 22 | locality: locality || null, 23 | region: region || null, 24 | postalCode: postalCode || null, 25 | country: country || null, 26 | id: id || null 27 | }; 28 | }; 29 | -------------------------------------------------------------------------------- /lib/ripple/platform/phonegap/1.0.0/ContactError.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | function ContactError(code) { 17 | this.code = code || null; 18 | } 19 | 20 | ContactError.UNKNOWN_ERROR = 0; 21 | ContactError.INVALID_ARGUMENT_ERROR = 1; 22 | ContactError.NOT_FOUND_ERROR = 2; 23 | ContactError.TIMEOUT_ERROR = 3; 24 | ContactError.PENDING_OPERATION_ERROR = 4; 25 | ContactError.IO_ERROR = 5; 26 | ContactError.NOT_SUPPORTED_ERROR = 6; 27 | ContactError.PERMISSION_DENIED_ERROR = 20; 28 | 29 | module.exports = ContactError; 30 | -------------------------------------------------------------------------------- /lib/ripple/platform/phonegap/1.0.0/ContactField.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | module.exports = function (type, value, pref) { 17 | return { 18 | type: type, 19 | value: value, 20 | pref: pref || false 21 | }; 22 | }; 23 | -------------------------------------------------------------------------------- /lib/ripple/platform/phonegap/1.0.0/ContactFindOptions.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | module.exports = function (filter, multiple, updatedSince) { 17 | return { 18 | filter: filter || "", 19 | multiple: multiple || false, 20 | updatedSince: updatedSince || "" 21 | }; 22 | }; 23 | -------------------------------------------------------------------------------- /lib/ripple/platform/phonegap/1.0.0/ContactName.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | module.exports = function (formatted, familyName, givenName, middleName, honorificPrefix, honorificSuffix) { 17 | return { 18 | formatted: formatted, 19 | familyName: familyName, 20 | givenName: givenName, 21 | middleName: middleName, 22 | honorificPrefix: honorificPrefix, 23 | honorificSuffix: honorificSuffix 24 | }; 25 | }; 26 | -------------------------------------------------------------------------------- /lib/ripple/platform/phonegap/1.0.0/ContactOrganization.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | module.exports = function (pref, type, name, dept, title) { 17 | return { 18 | pref: pref || null, 19 | type: type || null, 20 | name: name || null, 21 | department: dept || null, 22 | title: title || null 23 | }; 24 | }; 25 | -------------------------------------------------------------------------------- /lib/ripple/platform/phonegap/1.0.0/DisplayDeviceAttributes.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | module.exports = function (orientation, brightness, contrast, blanked, dotsPerInchW, dotsPerInchH, physicalWidth, physicalHeight, info) { 17 | return { 18 | orientation: orientation, 19 | brightness: brightness, 20 | contrast: contrast, 21 | blanked: blanked, 22 | dotsPerInchW: dotsPerInchW, 23 | dotsPerInchH: dotsPerInchH, 24 | physicalWidth: physicalWidth, 25 | physicalHeight: physicalHeight, 26 | info: info 27 | }; 28 | }; 29 | -------------------------------------------------------------------------------- /lib/ripple/platform/phonegap/1.0.0/KeyboardAttributes.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | module.exports = function (type, isHardware, info) { 17 | return { 18 | type: type, 19 | isHardware: isHardware, 20 | info: info 21 | }; 22 | }; 23 | -------------------------------------------------------------------------------- /lib/ripple/platform/phonegap/1.0.0/MicrophoneAttributes.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | module.exports = function (type, freqRangeLow, freqRangeHigh, info, name, types) { 17 | return { 18 | type: type, 19 | freqRangeLow: freqRangeLow, 20 | freqRangeHigh: freqRangeHigh, 21 | info: info, 22 | name: name, 23 | types: types 24 | }; 25 | }; 26 | -------------------------------------------------------------------------------- /lib/ripple/platform/phonegap/1.0.0/NetworkAttributes.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | module.exports = function (info, id, activeConnections) { 17 | return { 18 | info: info, 19 | id: id, 20 | activeConnections: activeConnections || [] 21 | }; 22 | }; 23 | -------------------------------------------------------------------------------- /lib/ripple/platform/phonegap/1.0.0/NetworkStatus.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | module.exports = { 17 | NOT_REACHABLE: 0, 18 | REACHABLE_VIA_CARRIER_DATA_NETWORK: 1, 19 | REACHABLE_VIA_WIFI_NETWORK: 2 20 | }; 21 | -------------------------------------------------------------------------------- /lib/ripple/platform/phonegap/1.0.0/PhoneGap.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | module.exports = { 17 | available: true 18 | }; 19 | -------------------------------------------------------------------------------- /lib/ripple/platform/phonegap/1.0.0/PointerAttributes.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | module.exports = function (type, supportsMultiTouch, info) { 17 | return { 18 | type: type, 19 | supportsMultiTouch: supportsMultiTouch, 20 | info: info 21 | }; 22 | }; 23 | -------------------------------------------------------------------------------- /lib/ripple/platform/phonegap/1.0.0/PowerAttributes.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | module.exports = function (info, id, level, timeRemaining, isBattery, isCharging) { 17 | return { 18 | info: info, 19 | id: id, 20 | level: level, 21 | timeRemaining: timeRemaining, 22 | isBattery: isBattery, 23 | isCharging: isCharging 24 | }; 25 | }; 26 | -------------------------------------------------------------------------------- /lib/ripple/platform/phonegap/1.0.0/PrintingDeviceAttributes.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | module.exports = function (type, resolution, color, info) { 17 | return { 18 | type: type, 19 | resolution: resolution, 20 | color: color, 21 | info: info 22 | }; 23 | }; 24 | -------------------------------------------------------------------------------- /lib/ripple/platform/phonegap/1.0.0/SensorAttributes.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | module.exports = function (value, min, max, normalizedValue) { 17 | return { 18 | value: value, 19 | min: min, 20 | max: max, 21 | normalizedValue: normalizedValue 22 | }; 23 | }; 24 | -------------------------------------------------------------------------------- /lib/ripple/platform/phonegap/1.0.0/StorageUnitAttributes.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | module.exports = function (info, id, type, isWritable, capacity, availableCapacity, isRemoveable) { 17 | return { 18 | info: info, 19 | id: id, 20 | type: type, 21 | isWritable: isWritable, 22 | capacity: capacity, 23 | availableCapacity: availableCapacity, 24 | isRemoveable: isRemoveable 25 | }; 26 | }; 27 | -------------------------------------------------------------------------------- /lib/ripple/platform/phonegap/1.0.0/SystemInfoOptions.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | module.exports = function (highThreshold, lowThreshold, thresholdTarget, timeout, id) { 17 | return { 18 | highThreshold: highThreshold, 19 | lowThreshold: lowThreshold, 20 | thresholdTarget: thresholdTarget, 21 | timeout: timeout, 22 | id: id 23 | }; 24 | }; 25 | -------------------------------------------------------------------------------- /lib/ripple/platform/phonegap/1.0.0/ThermalAttributes.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | module.exports = function (info, id, state) { 17 | return { 18 | info: info, 19 | id: id, 20 | state: state 21 | }; 22 | }; 23 | -------------------------------------------------------------------------------- /lib/ripple/platform/phonegap/1.0.0/VideoCodecAttributes.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | module.exports = function (info, id, compFormats, containerFormats, hwAccel, profiles, frameTypes, rateTypes) { 17 | return { 18 | info: info, 19 | id: id, 20 | compFormats: compFormats, 21 | containerFormats: containerFormats, 22 | hwAccel: hwAccel, 23 | profiles: profiles, 24 | frameTypes: frameTypes, 25 | rateTypes: rateTypes 26 | }; 27 | }; 28 | -------------------------------------------------------------------------------- /lib/ripple/platform/phonegap/1.0.0/camera.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | module.exports = { 17 | getPicture: function (cameraSuccess, cameraError, cameraOptions) { 18 | if (cameraError) { 19 | cameraError.apply(null, ["not implemented"]); 20 | } 21 | else { 22 | throw "not implemented"; 23 | } 24 | } 25 | }; 26 | -------------------------------------------------------------------------------- /lib/ripple/platform/phonegap/1.0.0/map.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | module.exports = { 17 | show: function () { 18 | throw "not implemented"; 19 | } 20 | }; 21 | -------------------------------------------------------------------------------- /lib/ripple/platform/phonegap/1.0.0/network.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | var deviceSettings = require('ripple/deviceSettings'), 17 | _self = { 18 | connection: { 19 | } 20 | }; 21 | 22 | _self.connection.__defineGetter__("type", function () { 23 | return deviceSettings.retrieve("NetworkStatus.connectionType"); 24 | }); 25 | 26 | module.exports = _self; 27 | -------------------------------------------------------------------------------- /lib/ripple/platform/phonegap/1.0.0/orientation.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | module.exports = { 17 | currentOrientation: null, 18 | getCurrentOrientation: function (onSuccess, onFail) { 19 | throw "not implemented"; 20 | }, 21 | watchOrientation: function () { 22 | throw "not implemented"; 23 | } 24 | }; 25 | -------------------------------------------------------------------------------- /lib/ripple/platform/phonegap/1.0.0/service.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | // for form, but could probably just delete 17 | module.exports = {}; 18 | -------------------------------------------------------------------------------- /lib/ripple/platform/phonegap/1.0.0/sms.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | module.exports = { 17 | send: function () { 18 | throw "not implemented"; 19 | } 20 | }; 21 | -------------------------------------------------------------------------------- /lib/ripple/platform/phonegap/1.0.0/spec/events.js: -------------------------------------------------------------------------------- 1 | function _fires(name, data) { 2 | return function () { 3 | var doc = require("ripple/emulatorBridge").document(), 4 | evt = doc.createEvent("Events"); 5 | 6 | evt.initEvent(name, true, false); 7 | doc.dispatchEvent(evt); 8 | }; 9 | } 10 | 11 | module.exports = { 12 | "deviceready": { 13 | callback: _fires("deviceready") 14 | }, 15 | "backbutton": { 16 | callback: _fires("backbutton") 17 | }, 18 | "menubutton": { 19 | callback: _fires("menubutton") 20 | }, 21 | "pause": { 22 | callback: _fires("pause") 23 | }, 24 | "resume": { 25 | callback: _fires("resume") 26 | }, 27 | "searchbutton": { 28 | callback: _fires("searchbutton") 29 | }, 30 | "online": { 31 | callback: _fires("online") 32 | }, 33 | "offline": { 34 | callback: _fires("offline") 35 | } 36 | }; 37 | -------------------------------------------------------------------------------- /lib/ripple/platform/phonegap/1.0.0/spec/ui.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | module.exports = { 17 | plugins: [ 18 | "accelerometer", 19 | "deviceSettings", 20 | "geoView", 21 | "widgetConfig", 22 | "platformEvents" 23 | ] 24 | }; 25 | -------------------------------------------------------------------------------- /lib/ripple/platform/phonegap/1.0.0/system.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | get: function () { 3 | throw "not implemented"; 4 | }, 5 | has: function () { 6 | throw "not implemented"; 7 | }, 8 | monitor: function () { 9 | throw "not implemented"; 10 | } 11 | }; 12 | -------------------------------------------------------------------------------- /lib/ripple/platform/phonegap/1.0.0/telephony.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | module.exports = { 17 | send: function () { 18 | throw "not implemented"; 19 | } 20 | }; 21 | -------------------------------------------------------------------------------- /lib/ripple/platform/tizen/2.0/AccountBase.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 Intel Corporation. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | module.exports = function (appId, userName, displayName, service) { 18 | var _self, 19 | _id = Math.uuid(null, 16); 20 | 21 | _self = { 22 | appId : appId || "", 23 | userName : userName || "", 24 | displayName : displayName || "", 25 | service : service || {} 26 | }; 27 | 28 | _self.__defineGetter__("id", function () { 29 | return _id; 30 | }); 31 | 32 | return _self; 33 | }; 34 | -------------------------------------------------------------------------------- /lib/ripple/platform/tizen/2.0/AlarmBase.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 Intel Corporation. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | module.exports = function (self) { 18 | self = self || this; 19 | 20 | self.__defineGetter__("id", function () { 21 | return null; 22 | }); 23 | }; 24 | -------------------------------------------------------------------------------- /lib/ripple/platform/tizen/2.0/BookmarkFolder.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2013 Intel Corporation. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | var t = require('ripple/platform/tizen/2.0/typecast'), 18 | BookmarkFolder; 19 | 20 | BookmarkFolder = function (title) { 21 | t.BookmarkFolder(arguments, this); 22 | 23 | this.__defineGetter__("parent", function () { 24 | return undefined; 25 | }); 26 | 27 | this.__defineGetter__("title", function () { 28 | return title; 29 | }); 30 | }; 31 | 32 | module.exports = BookmarkFolder; 33 | -------------------------------------------------------------------------------- /lib/ripple/platform/tizen/2.0/BookmarkItem.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2013 Intel Corporation. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | var t = require('ripple/platform/tizen/2.0/typecast'), 18 | BookmarkItem; 19 | 20 | BookmarkItem = function (title, url) { 21 | t.BookmarkItem(arguments, this); 22 | 23 | this.__defineGetter__("parent", function () { 24 | return undefined; 25 | }); 26 | this.__defineGetter__("title", function () { 27 | return title; 28 | }); 29 | this.__defineGetter__("url", function () { 30 | return url; 31 | }); 32 | }; 33 | 34 | module.exports = BookmarkItem; 35 | -------------------------------------------------------------------------------- /lib/ripple/platform/tizen/2.0/GeoCircleBounds.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 Intel Corporation. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | module.exports = function (_center, _radius) { 18 | var center, radius; 19 | center = _center || null; 20 | radius = _radius || 0; 21 | 22 | this.__defineGetter__("center", function () { 23 | return center; 24 | }); 25 | 26 | this.__defineGetter__("radius", function () { 27 | return radius; 28 | }); 29 | }; 30 | -------------------------------------------------------------------------------- /lib/ripple/platform/tizen/2.0/GeoPolyBounds.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 Intel Corporation. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | module.exports = function (_points) { 18 | var points = _points || []; 19 | 20 | this.__defineGetter__("points", function () { 21 | return points; 22 | }); 23 | }; 24 | -------------------------------------------------------------------------------- /lib/ripple/platform/tizen/2.0/GeoRectBounds.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 Intel Corporation. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | module.exports = function (_southWest, _northEast) { 18 | var southWest, northEast; 19 | southWest = _southWest || null; 20 | northEast = _northEast || null; 21 | 22 | this.__defineGetter__("southWest", function () { 23 | return southWest; 24 | }); 25 | 26 | this.__defineGetter__("northEast", function () { 27 | return northEast; 28 | }); 29 | }; 30 | -------------------------------------------------------------------------------- /lib/ripple/platform/tizen/2.0/GeometryFilter.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 Intel Corporation. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | module.exports = function (criteria, geometry) { 18 | var _self; 19 | 20 | _self = { 21 | criteria: criteria, 22 | geometry: geometry 23 | }; 24 | 25 | return _self; 26 | }; 27 | -------------------------------------------------------------------------------- /lib/ripple/platform/tizen/2.0/MessageBody.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 Intel Corporation. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | module.exports = function (id, isloaded, _plainbody, _htmlbody, inlineattachments) { 18 | var msgbody, _id = id, _loaded = isloaded; 19 | msgbody = { 20 | plainBody: _plainbody, 21 | htmlBody: _htmlbody, 22 | inlineAttachments: [] // TODO: not support attachment yet 23 | }; 24 | msgbody.__defineGetter__("messageId", function () { 25 | return _id; 26 | }); 27 | msgbody.__defineGetter__("loaded", function () { 28 | return _loaded; 29 | }); 30 | return msgbody; 31 | }; 32 | -------------------------------------------------------------------------------- /lib/ripple/platform/tizen/2.0/NDEFRecordInternal.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2013 Intel Corporation 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | module.exports = function (tnf, type, payload, id) { 18 | this.__defineGetter__("tnf", function () { 19 | return tnf; 20 | }); 21 | 22 | this.__defineGetter__("type", function () { 23 | return type; 24 | }); 25 | 26 | this.__defineGetter__("id", function () { 27 | return id; 28 | }); 29 | 30 | this.__defineGetter__("payload", function () { 31 | return payload; 32 | }); 33 | }; 34 | -------------------------------------------------------------------------------- /lib/ripple/platform/tizen/2.0/POIFilter.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 Intel Corporation. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | module.exports = function (attributeName, value) { 18 | var _self; 19 | 20 | _self = { 21 | attributeName: attributeName, 22 | value: value 23 | }; 24 | 25 | return _self; 26 | }; 27 | -------------------------------------------------------------------------------- /lib/ripple/platform/tizen/2.0/pendingObject.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Intel Corporation. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | module.exports = function (pendingObj) { 18 | var cancelFlag = true; 19 | this.setCancelFlag = function (flag) { 20 | cancelFlag = flag; 21 | }; 22 | this.getCancelFlag = function () { 23 | return cancelFlag; 24 | }; 25 | this.userCancel = null; 26 | this.pendingID = null; 27 | }; 28 | -------------------------------------------------------------------------------- /lib/ripple/platform/tizen/2.0/spec/ui.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Intel Corporation. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | module.exports = { 17 | plugins: [ 18 | "sensors", 19 | "communication", 20 | "geoView", 21 | "widgetConfig", 22 | "deviceSettings", 23 | "application", 24 | "network", 25 | "power", 26 | "download", 27 | "package" 28 | ] 29 | }; 30 | -------------------------------------------------------------------------------- /lib/ripple/platform/tizen/2.0/syncml-js-lib/item.js: -------------------------------------------------------------------------------- 1 | // -*- coding: utf-8 -*- 2 | //----------------------------------------------------------------------------- 3 | // file: $Id$ 4 | // lib: syncml-js.item 5 | // auth: griffin 6 | // date: 2012/11/30 7 | // copy: (C) CopyLoose 2012 UberDev , No Rights Reserved. 8 | //----------------------------------------------------------------------------- 9 | 10 | var common = require('ripple/platform/tizen/2.0/syncml-js-lib/common'); 11 | 12 | var _self = (function () { 13 | var exports = {}; 14 | 15 | //--------------------------------------------------------------------------- 16 | exports.Item = common.Base.extend({ 17 | 18 | //: the unique identifier (within the context of a SyncML datastore) 19 | //: of the current SyncML item. 20 | id: null, 21 | 22 | compare: function(other) { 23 | return ( other === this ? 0 : 1 ); 24 | } 25 | 26 | }); 27 | 28 | return exports; 29 | 30 | })(); 31 | 32 | module.exports = _self; 33 | -------------------------------------------------------------------------------- /lib/ripple/platform/w3c/1.0/Acceleration.js: -------------------------------------------------------------------------------- 1 | module.exports = function (x, y, z) { 2 | return { 3 | x: x || 0, //Acceleration in the 'x' expressed in m/s^2. (Number) 4 | y: y || 0, //Acceleration in the 'y' expressed in m/s^2. (Number) 5 | z: z || 0 //Acceleration in the 'z' expressed in m/s^2. (Number) 6 | }; 7 | }; 8 | -------------------------------------------------------------------------------- /lib/ripple/platform/w3c/1.0/Position.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | var Coordinates = require('ripple/platform/w3c/1.0/Coordinates'); 17 | 18 | module.exports = function () { 19 | return { 20 | coords: new Coordinates(), 21 | timestamp: new Date().getTime() 22 | }; 23 | }; 24 | -------------------------------------------------------------------------------- /lib/ripple/platform/w3c/1.0/PositionError.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | var _self = function () { 17 | return { 18 | code: undefined, 19 | message: undefined 20 | }; 21 | }; 22 | 23 | _self.PERMISSION_DENIED = "PERMISSION_DENIED"; 24 | _self.POSITION_UNAVAILABLE = "POSITION_UNAVAILABLE"; 25 | _self.TIMEOUT = "TIMEOUT"; 26 | 27 | module.exports = _self; 28 | -------------------------------------------------------------------------------- /lib/ripple/platform/w3c/1.0/Rotation.js: -------------------------------------------------------------------------------- 1 | module.exports = function (alpha, beta, gamma) { 2 | return { 3 | alpha: alpha || 0, //Rotation about the 'z' axis expressed in degrees [0, 360]. (Number) 4 | beta: beta || 0, //Rotation about the 'x' axis expressed in degrees [-180, 180]. (Number) 5 | gamma: gamma || 0 //Rotation about the 'y' axis expressed in degrees [-90, 90]. (Number) 6 | }; 7 | }; 8 | -------------------------------------------------------------------------------- /lib/ripple/platform/wac/1.0/AccelerometerInfo.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | var accelerometer = require('ripple/accelerometer'), 17 | _self = {}; 18 | 19 | _self.__defineGetter__("xAxis", function () { 20 | return accelerometer.getInfo().accelerationIncludingGravity.x; 21 | }); 22 | 23 | _self.__defineGetter__("yAxis", function () { 24 | return accelerometer.getInfo(true).accelerationIncludingGravity.y; 25 | }); 26 | 27 | _self.__defineGetter__("zAxis", function () { 28 | return accelerometer.getInfo(true).accelerationIncludingGravity.z; 29 | }); 30 | 31 | module.exports = _self; 32 | -------------------------------------------------------------------------------- /lib/ripple/platform/wac/1.0/Account.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | var deviceSettings = require('ripple/deviceSettings'), 17 | _self; 18 | 19 | _self = { 20 | accountName: undefined, 21 | accountId: undefined 22 | }; 23 | 24 | _self.__defineGetter__("accountName", function () { 25 | return deviceSettings.retrieve("Account.accountName"); 26 | }); 27 | 28 | _self.__defineGetter__("accountId", function () { 29 | return deviceSettings.retrieve("Account.accountId"); 30 | }); 31 | 32 | module.exports = _self; 33 | -------------------------------------------------------------------------------- /lib/ripple/platform/wac/1.0/ApplicationTypes.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | var utils = require('ripple/utils'), 17 | constants = require('ripple/constants'), 18 | _self = {}; 19 | 20 | utils.forEach(constants.PLATFORMS.WAC.APPLICATIONS, function (application) { 21 | _self.__defineGetter__(application, function () { 22 | return application; 23 | }); 24 | }); 25 | 26 | module.exports = _self; 27 | -------------------------------------------------------------------------------- /lib/ripple/platform/wac/1.0/Attachment.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | module.exports = function () { 17 | this.fileName = ""; 18 | this.MIMEType = ""; 19 | this.size = 0; 20 | }; 21 | -------------------------------------------------------------------------------- /lib/ripple/platform/wac/1.0/CallRecord.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | module.exports = function () { 17 | this.callRecordType = undefined; 18 | this.callRecordId = undefined; 19 | this.callRecordAddress = undefined; 20 | this.callRecordName = undefined; 21 | this.durationSeconds = undefined; 22 | this.startTime = undefined; 23 | }; 24 | -------------------------------------------------------------------------------- /lib/ripple/platform/wac/1.0/CallRecordTypes.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | module.exports = { 17 | RECEIVED: "received", 18 | OUTGOING: "outgoing", 19 | MISSED: "missed" 20 | }; 21 | -------------------------------------------------------------------------------- /lib/ripple/platform/wac/1.0/EventRecurrenceTypes.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | module.exports = { 17 | NOT_REPEAT: "NOT_REPEAT", 18 | DAILY: "DAILY", 19 | EVERY_WEEKDAY: "EVERY_WEEKDAY", 20 | WEEKLY_ON_DAY: "WEEKLY_ON_DAY", 21 | MONTHLY_ON_DAY: "MONTHLY_ON_DAY", 22 | MONTHLY_ON_DAY_COUNT: "MONTHLY_ON_DAY_COUNT", 23 | YEARLY: "YEARLY" 24 | }; 25 | -------------------------------------------------------------------------------- /lib/ripple/platform/wac/1.0/Exception.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | module.exports = function () { 17 | this.message = ""; 18 | this.type = ""; 19 | 20 | this.toString = function () { 21 | var result = this.type + ': "' + this.message + '"'; 22 | 23 | if (this.stack) { 24 | result += "\n" + this.stack; 25 | } 26 | return result; 27 | }; 28 | }; 29 | -------------------------------------------------------------------------------- /lib/ripple/platform/wac/1.0/ExceptionTypes.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | var _self = {}; 17 | 18 | _self.__defineGetter__("INVALID_PARAMETER", function () { 19 | return "invalid_parameter"; 20 | }); 21 | 22 | _self.__defineGetter__("SECURITY", function () { 23 | return "security"; 24 | }); 25 | 26 | _self.__defineGetter__("UNKNOWN", function () { 27 | return "unknown"; 28 | }); 29 | 30 | _self.__defineGetter__("UNSUPPORTED", function () { 31 | return "unsupported"; 32 | }); 33 | 34 | module.exports = _self; 35 | -------------------------------------------------------------------------------- /lib/ripple/platform/wac/1.0/File.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | module.expots = function () { 17 | this.createDate = undefined; 18 | this.fileName = undefined; 19 | this.filePath = undefined; 20 | this.fileSize = undefined; 21 | this.isDirectory = undefined; 22 | this.lastModifyDate = undefined; 23 | }; 24 | -------------------------------------------------------------------------------- /lib/ripple/platform/wac/1.0/MessageFolderTypes.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | module.exports = { 17 | DRAFTS: "drafts", 18 | INBOX: "inbox", 19 | OUTBOX: "outbox", 20 | SENTBOX: "sentbox" 21 | }; 22 | -------------------------------------------------------------------------------- /lib/ripple/platform/wac/1.0/MessageQuantities.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | module.exports = { 17 | totalMessageCnt: undefined, 18 | totalMessageReadCnt: undefined, 19 | totalMessageUnreadCnt: undefined 20 | }; 21 | -------------------------------------------------------------------------------- /lib/ripple/platform/wac/1.0/MessageTypes.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | module.exports = { 17 | EmailMessage: "email", 18 | MMSMessage: "mms", 19 | SMSMessage: "sms" 20 | }; 21 | -------------------------------------------------------------------------------- /lib/ripple/platform/wac/1.0/RadioSignalSourceTypes.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | var _self, 17 | utils = require('ripple/utils'); 18 | 19 | _self = { 20 | "CDMA": undefined, 21 | "GSM": undefined, 22 | "LTE": undefined, 23 | "TDSCDMA": undefined, 24 | "WCDMA": undefined 25 | }; 26 | 27 | utils.forEach(_self, function (value, property) { 28 | _self.__defineGetter__(property, function () { 29 | return property; 30 | }); 31 | }); 32 | 33 | module.exports = _self; 34 | -------------------------------------------------------------------------------- /lib/ripple/platform/wac/1.0/WidgetManager.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | var exception = require('ripple/exception'), 17 | ExceptionTypes = require('ripple/platform/wac/1.0/ExceptionTypes'), 18 | Exception = require('ripple/platform/wac/1.0/Exception'); 19 | 20 | module.exports = { 21 | // This method is used to check the installation status of a specific widget. 22 | checkWidgetInstallationStatus: function () { 23 | 24 | exception.raise(ExceptionTypes.UNSUPPORTED, "WidgetManager.checkWidgetInstallationStatus not supported", new Exception()); 25 | } 26 | }; 27 | -------------------------------------------------------------------------------- /lib/ripple/platform/wac/1.0/spec/ui.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | module.exports = { 17 | plugins: [ 18 | "accelerometer", 19 | //"deviceSettings", 20 | "fileSystem", 21 | "geoView", 22 | /* 23 | "multimedia", 24 | "audioPlayer", 25 | "telephony", 26 | */ 27 | "platformEvents", 28 | "storage", 29 | "widgetConfig" 30 | ] 31 | }; 32 | -------------------------------------------------------------------------------- /lib/ripple/platform/wac/2.0/AUTHORS: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | name : Haitao Feng 4 | email : haitao.feng@intel.com 5 | task : accelerometer, orientation, filesystem 6 | }, 7 | { 8 | name : Jason Hu 9 | email : jia-cheng.hu@intel.com 10 | task : deviceapis, camera, pim.calendar 11 | }, 12 | { 13 | name : Wenchao Wang 14 | email : wenchao.wang@intel.com 15 | task : geolocation, messaging, pim.contact 16 | }, 17 | { 18 | name : Hongbo Liu 19 | email : hongbo.liu@intel.com 20 | task : deviceinteraction 21 | }, 22 | { 23 | name : Ziv Chang 24 | email : ziv.chang@intel.com 25 | task : pim.task 26 | }, 27 | { 28 | name : Franky Yang 29 | email : franky.yang@intel.com 30 | task : devicestatus 31 | }, 32 | { 33 | name : Jun Tian 34 | email : jun.j.tian@intel.com 35 | task : device zooming in/out 36 | } 37 | ] 38 | -------------------------------------------------------------------------------- /lib/ripple/platform/wac/2.0/pendingObject.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Intel Corporation. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | module.exports = function (pendingObj) { 18 | var cancelFlag = true; 19 | this.setCancelFlag = function (flag) { 20 | cancelFlag = flag; 21 | }; 22 | this.getCancelFlag = function () { 23 | return cancelFlag; 24 | }; 25 | this.userCancel = null; 26 | this.pendingID = null; 27 | }; 28 | -------------------------------------------------------------------------------- /lib/ripple/platform/wac/2.0/spec/ui.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Intel Corporation. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | module.exports = { 17 | plugins: [ 18 | "accelerometer", 19 | "messaging", 20 | "geoView", 21 | "widgetConfig", 22 | "deviceSettings" 23 | ] 24 | }; 25 | -------------------------------------------------------------------------------- /lib/ripple/platform/web/default/device.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | window.addEventListener("load", function () { 17 | var event = require('ripple/event'); 18 | 19 | event.on("HardwareKey", function (key) { 20 | event.trigger("HardwareKeyDefault", [key]); 21 | }); 22 | 23 | //HACK: Remove this guy from namespace since we are just hacking this in as a bootstrapper 24 | delete window.device; 25 | }); 26 | -------------------------------------------------------------------------------- /lib/ripple/platform/web/default/spec/ui.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | plugins: [ 3 | "accelerometer", 4 | "geoView" 5 | ] 6 | }; 7 | -------------------------------------------------------------------------------- /lib/ripple/platform/webworks.bb10/1.0.0/device.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | var devices = require('ripple/devices'), 17 | _self = {}; 18 | 19 | _self.__defineGetter__("softwareVersion", function () { 20 | return devices.getCurrentDevice().osVersion; 21 | }); 22 | 23 | _self.__defineGetter__("hardwareId", function () { 24 | return devices.getCurrentDevice().hardwareId; 25 | }); 26 | module.exports = _self; 27 | -------------------------------------------------------------------------------- /lib/ripple/platform/webworks.bb10/1.0.0/identity.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | var deviceSettings = require('ripple/deviceSettings'), 17 | _self = {}; 18 | 19 | _self.__defineGetter__("uuid", function () { 20 | return deviceSettings.retrieve("identity.uuid"); 21 | }); 22 | 23 | module.exports = _self; 24 | -------------------------------------------------------------------------------- /lib/ripple/platform/webworks.bb10/1.0.0/navigator.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | var nav = require('ripple/platform/w3c/1.0/navigator'), 17 | utils = require('ripple/utils'), 18 | deviceSettings = require('ripple/deviceSettings'), 19 | _self = {}; 20 | 21 | utils.mixin(nav, _self); 22 | 23 | _self.__defineGetter__("language", function () { 24 | return deviceSettings.retrieve("system.language"); 25 | }); 26 | 27 | module.exports = _self; 28 | -------------------------------------------------------------------------------- /lib/ripple/platform/webworks.bb10/1.0.0/spec/events.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | var _self, 17 | event = require('ripple/event'); 18 | 19 | module.exports = { 20 | "blackberry.event.swipedown": { 21 | callback: function () { 22 | event.trigger("AppSwipeDown"); 23 | } 24 | }, 25 | "blackberry.event.resume": { 26 | callback: function () { 27 | event.trigger("AppResume"); 28 | } 29 | }, 30 | "blackberry.event.pause": { 31 | callback: function () { 32 | event.trigger("AppPause"); 33 | } 34 | } 35 | }; 36 | -------------------------------------------------------------------------------- /lib/ripple/platform/webworks.bb10/1.0.0/spec/ui.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | module.exports = { 17 | plugins: [ 18 | "accelerometer", 19 | "deviceSettings", 20 | "geoView", 21 | "platformEvents", 22 | "widgetConfig", 23 | "build", 24 | "invoke" 25 | ] 26 | }; 27 | -------------------------------------------------------------------------------- /lib/ripple/platform/webworks.core/2.0.0/spec/events.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | var event = require('ripple/event'); 17 | 18 | module.exports = { 19 | "app.event.onBackground": { 20 | callback: function () { 21 | event.trigger("AppRequestBackground"); 22 | } 23 | }, 24 | "app.event.onForeground": { 25 | callback: function () { 26 | event.trigger("AppRequestForeground"); 27 | } 28 | } 29 | }; 30 | -------------------------------------------------------------------------------- /lib/ripple/platform/webworks.handset/2.0.0/XMLHttpRequest.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | var xhr = require("ripple/platform/webworks.core/2.0.0/XMLHttpRequest"); 18 | module.exports = xhr.create("ripple/platform/webworks.handset/2.0.0/server"); 19 | -------------------------------------------------------------------------------- /lib/ripple/platform/webworks.handset/2.0.0/client/BrowserArguments.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | //blackberry.invoke.BrowserArguments ( url : String , [transport : blackberry.identity.Transport ] ) 17 | module.exports = function (url, transport) { 18 | return { 19 | url: url 20 | }; 21 | }; 22 | -------------------------------------------------------------------------------- /lib/ripple/platform/webworks.handset/2.0.0/client/CameraArguments.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | //blackberry.invoke.CameraArguments ( ) 17 | var _self = function () { 18 | return { 19 | //readwrite property Number view 20 | view: 0 21 | }; 22 | }; 23 | 24 | //const Number VIEW_CAMERA = 0 25 | _self.__defineGetter__("VIEW_CAMERA", function () { 26 | return 0; 27 | }); 28 | //const Number VIEW_RECORDER = 1 29 | _self.__defineGetter__("VIEW_RECORDER", function () { 30 | return 1; 31 | }); 32 | 33 | module.exports = _self; 34 | -------------------------------------------------------------------------------- /lib/ripple/platform/webworks.handset/2.0.0/client/JavaArguments.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | //blackberry.invoke.JavaArguments ( uri : String , [params : String [ ] ] ) 17 | var _self = function (uri, params) { 18 | return { 19 | uri: uri, 20 | params: params, 21 | args: arguments 22 | }; 23 | }; 24 | 25 | module.exports = _self; 26 | -------------------------------------------------------------------------------- /lib/ripple/platform/webworks.handset/2.0.0/client/MapsArguments.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | //blackberry.invoke.MapsArguments ( ) 17 | //blackberry.invoke.MapsArguments ( latitude : Number , longitude : Number ) 18 | //blackberry.invoke.MapsArguments ( locationDocument : Document ) - Supported in 5.0.0 only 19 | //blackberry.invoke.MapsArguments ( locationDocument : String ) - Supported in 6.0.0 only 20 | //blackberry.invoke.MapsArguments ( address : blackberry.pim.Address ) 21 | var _self = function () { 22 | return {}; 23 | }; 24 | 25 | module.exports = _self; 26 | -------------------------------------------------------------------------------- /lib/ripple/platform/webworks.handset/2.0.0/client/MemoArguments.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | //blackberry.invoke.MemoArguments ( [memo : blackberry.pim.Memo ] ) 17 | var _self = function (memo) { 18 | return { 19 | memo: memo, 20 | view: 0 21 | }; 22 | }; 23 | 24 | //const Number VIEW_NEW = 0 25 | _self.__defineGetter__("VIEW_NEW", function () { 26 | return 0; 27 | }); 28 | //const Number VIEW_EDIT = 1 29 | _self.__defineGetter__("VIEW_EDIT", function () { 30 | return 1; 31 | }); 32 | 33 | module.exports = _self; 34 | -------------------------------------------------------------------------------- /lib/ripple/platform/webworks.handset/2.0.0/client/PhoneCall.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | function PhoneCall(onhold) { 17 | return { 18 | //Boolean isOnHold ( ) 19 | //readonly property Boolean outgoing 20 | //readonly property String recipientName 21 | //readonly property String recipientNumber 22 | 23 | outgoing: false, 24 | recipientName: null, 25 | recipientNumber: null, 26 | 27 | isOnHold: function () { 28 | return onhold; 29 | } 30 | }; 31 | } 32 | 33 | module.exports = PhoneCall; 34 | -------------------------------------------------------------------------------- /lib/ripple/platform/webworks.handset/2.0.0/client/SearchArguments.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | //blackberry.invoke.SearchArguments ( ) 17 | //blackberry.invoke.SearchArguments ( text : String , name : String ) 18 | var _self = function (text, name) { 19 | 20 | return { 21 | text: text, 22 | name: name 23 | }; 24 | 25 | }; 26 | 27 | module.exports = _self; 28 | -------------------------------------------------------------------------------- /lib/ripple/platform/webworks.handset/2.0.0/client/TaskArguments.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | //blackberry.invoke.TaskArguments ( [task : blackberry.pim.Task ] ) 17 | var _self = function (task) { 18 | return { 19 | view: 0, 20 | task: task 21 | }; 22 | }; 23 | 24 | //const Number VIEW_NEW = 0 25 | _self.__defineGetter__("VIEW_NEW", function () { 26 | return 0; 27 | }); 28 | //const Number VIEW_EDIT = 1 29 | _self.__defineGetter__("VIEW_EDIT", function () { 30 | return 1; 31 | }); 32 | 33 | module.exports = _self; 34 | -------------------------------------------------------------------------------- /lib/ripple/platform/webworks.handset/2.0.0/client/audio.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | module.exports = { 17 | supportedContentTypes: function (protocol) { 18 | return protocol === 'rtsp' ? 19 | ['audio/amr', 'audio/mp4', 'audio/aac'] : 20 | ['audio/midi', 'mpeg', 'x-wav', 'amr', 'basic', 'x-gsm', 'mp4', 'aac', 'x-ms-wma', 'flac', 'ogg']; 21 | }, 22 | supportedProtocols: function (contentType) { 23 | return ['http', 'file', 'rtsp']; 24 | } 25 | }; 26 | -------------------------------------------------------------------------------- /lib/ripple/platform/webworks.handset/2.0.0/client/blackberry.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | var blackberry = {}, 17 | transport = require('ripple/platform/webworks.core/2.0.0/client/transport'); 18 | 19 | blackberry.__defineGetter__("network", function () { 20 | return transport.call("blackberry/system/network"); 21 | }); 22 | 23 | module.exports = blackberry; 24 | -------------------------------------------------------------------------------- /lib/ripple/platform/webworks.handset/2.0.0/client/identity/Service.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | function Service() { 17 | return { 18 | emailAddress: null, 19 | isDefault: null, 20 | name: null, 21 | type: null 22 | }; 23 | } 24 | 25 | Service.__defineGetter__("TYPE_EMAIL", function () { 26 | return 0; 27 | }); 28 | 29 | Service.__defineGetter__("TYPE_CALENDAR", function () { 30 | return 1; 31 | }); 32 | 33 | Service.__defineGetter__("TYPE_CONTACT", function () { 34 | return 2; 35 | }); 36 | 37 | module.exports = Service; 38 | -------------------------------------------------------------------------------- /lib/ripple/platform/webworks.handset/2.0.0/client/identity/Transport.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | function Transport(name, type) { 17 | this.__defineGetter__("name", function () { 18 | return name || ""; 19 | }); 20 | this.__defineGetter__("type", function () { 21 | return type || ""; 22 | }); 23 | } 24 | 25 | module.exports = Transport; 26 | -------------------------------------------------------------------------------- /lib/ripple/platform/webworks.handset/2.0.0/client/messaging.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | module.exports = {}; 17 | -------------------------------------------------------------------------------- /lib/ripple/platform/webworks.handset/2.0.0/client/pim.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | module.exports = {}; 17 | -------------------------------------------------------------------------------- /lib/ripple/platform/webworks.handset/2.0.0/spec/ui.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | module.exports = { 17 | plugins: [ 18 | "accelerometer", 19 | "deviceSettings", 20 | "geoView", 21 | "platformEvents", 22 | "widgetConfig", 23 | "messaging", 24 | "push", 25 | "phone", 26 | "build" 27 | ] 28 | }; 29 | -------------------------------------------------------------------------------- /lib/ripple/platform/webworks.tablet/2.0.0/XMLHttpRequest.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | var xhr = require("ripple/platform/webworks.core/2.0.0/XMLHttpRequest"); 18 | module.exports = xhr.create("ripple/platform/webworks.tablet/2.0.0/server"); 19 | -------------------------------------------------------------------------------- /lib/ripple/platform/webworks.tablet/2.0.0/client/BrowserArguments.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | //blackberry.invoke.BrowserArguments ( url : String , [transport : blackberry.identity.Transport ] ) 17 | module.exports = function (url, transport) { 18 | return { 19 | url: url 20 | }; 21 | }; 22 | -------------------------------------------------------------------------------- /lib/ripple/platform/webworks.tablet/2.0.0/client/CameraArguments.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | //blackberry.invoke.CameraArguments ( ) 17 | var _self = function () { 18 | return { 19 | //readwrite property Number view 20 | view: 0 21 | }; 22 | }; 23 | 24 | //const Number VIEW_CAMERA = 0 25 | _self.__defineGetter__("VIEW_CAMERA", function () { 26 | return 0; 27 | }); 28 | //const Number VIEW_RECORDER = 1 29 | _self.__defineGetter__("VIEW_RECORDER", function () { 30 | return 1; 31 | }); 32 | 33 | module.exports = _self; 34 | -------------------------------------------------------------------------------- /lib/ripple/platform/webworks.tablet/2.0.0/client/identity.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | var transport = require('ripple/platform/webworks.core/2.0.0/client/transport'), 17 | _uri = "blackberry/identity/", 18 | _self = {}; 19 | 20 | _self.__defineGetter__("PIN", function () { 21 | return transport.call(_uri + "PIN"); 22 | }); 23 | 24 | module.exports = _self; 25 | -------------------------------------------------------------------------------- /lib/ripple/platform/webworks.tablet/2.0.0/client/system.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | var utils = require('ripple/utils'), 17 | transport = require('ripple/platform/webworks.core/2.0.0/client/transport'), 18 | system = require('ripple/platform/webworks.core/2.0.0/client/system'), 19 | _uri = "blackberry/system/"; 20 | 21 | system.__defineGetter__("scriptApiVersion", function () { 22 | return transport.call(_uri + "softwareVersion"); 23 | }); 24 | 25 | 26 | module.exports = system; 27 | -------------------------------------------------------------------------------- /lib/ripple/platform/webworks.tablet/2.0.0/server/identity.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | var deviceSettings = require('ripple/deviceSettings'); 17 | 18 | module.exports = { 19 | PIN: function () { 20 | return {code: 1, data: deviceSettings.retrieve("identity.PIN")}; 21 | } 22 | }; 23 | -------------------------------------------------------------------------------- /lib/ripple/platform/webworks.tablet/2.0.0/spec/ui.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | module.exports = { 17 | plugins: [ 18 | "accelerometer", 19 | "deviceSettings", 20 | "geoView", 21 | "platformEvents", 22 | "widgetConfig", 23 | "build" 24 | ] 25 | }; 26 | -------------------------------------------------------------------------------- /lib/ripple/ui/plugins/about-dialog/dialog.html: -------------------------------------------------------------------------------- 1 |
2 |
3 | 4 |
Version: 20130514
5 |
May 14, 2013
6 |

7 | Based on the Ripple Mobile Emulator
8 | Copyright 2013 Intel Corporation. All rights reserved 9 | https://01.org/projects/web-simulator 10 |

11 |
12 | -------------------------------------------------------------------------------- /lib/ripple/ui/plugins/background/overlay.html: -------------------------------------------------------------------------------- 1 | 16 |
17 |

The app is currently in the background

18 | 21 |
22 | -------------------------------------------------------------------------------- /lib/ripple/ui/plugins/dialog/overlay.html: -------------------------------------------------------------------------------- 1 | 16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 | -------------------------------------------------------------------------------- /lib/ripple/ui/plugins/exec-dialog/dialog.html: -------------------------------------------------------------------------------- 1 |
2 |

3 | . 4 |

5 |

We seem to be missing some stuff :(

6 |

7 | What is kinda cool though you can fill in the textarea to 8 | pass a json object to the callback you want to execute 9 |

10 | 11 | 12 | 13 |
14 | 15 | 16 |
17 | -------------------------------------------------------------------------------- /lib/ripple/ui/plugins/lockScreen/overlay.html: -------------------------------------------------------------------------------- 1 | 16 |
17 |
The screen is locked, please unlock it by un-checking "Lock Screen" in the "Configuration->SYSTEM SETTINGS".
18 |
19 | -------------------------------------------------------------------------------- /lib/ripple/ui/plugins/menu/overlay.html: -------------------------------------------------------------------------------- 1 | 16 | 21 | -------------------------------------------------------------------------------- /lib/ripple/ui/plugins/settings-dialog/dialog.html: -------------------------------------------------------------------------------- 1 |
2 |
3 | 6 |
7 |
8 |
9 | 10 |
11 | -------------------------------------------------------------------------------- /lib/ripple/ui/plugins/settings-menu/panel.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intel/web-simulator/51fc660b7da78c90789d06e007daa392cb69e025/lib/ripple/ui/plugins/settings-menu/panel.html -------------------------------------------------------------------------------- /lib/ripple/ui/themes.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | //module.exports = ["dark", "light"]; 17 | module.exports = ["light"]; 18 | -------------------------------------------------------------------------------- /lib/ripple/xhr/helpers.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | var constants = require('ripple/constants'), 17 | db = require('ripple/db'); 18 | 19 | module.exports = { 20 | isLocalRequest: function (url) { 21 | return (!!(url.match(constants.REGEX.LOCAL_URI)) || !url.match(constants.REGEX.EXTERNAL_URI)) || 22 | !!(location.host && url.match(location.host)); 23 | }, 24 | 25 | proxyEnabled: function () { 26 | var isDisabled = db.retrieve(constants.XHR.PROXY_DISABLED_BUTTON); 27 | return !isDisabled || isDisabled === "false" ? true : false; 28 | } 29 | }; 30 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ripple", 3 | "version": "0.9.8", 4 | "description": "A browser based html5 mobile application development and testing tool", 5 | "homepage": "http://github.com/blackberry/Rippe-UI", 6 | "author": { 7 | "name": "Research In Motion", 8 | "url": "http://github.com/blackberry/Ripple-UI" 9 | }, 10 | "licenses": [{ 11 | "type": "Apache 2.0", 12 | "url": "http://www.apache.org/licenses/LICENSE-2.0" 13 | }], 14 | "bin": { "ripple": "./bin/ripple" }, 15 | "main": "lib/index", 16 | "dependencies": { 17 | "connect": "2.3.6", 18 | "jsdom": "0.2.14", 19 | "jWorkflow": "*" 20 | }, 21 | "bundledDependencies": [ 22 | "connect", 23 | "argsparser" 24 | ], 25 | "files": [ 26 | "pkg/web", 27 | "node_modules", 28 | "README.md", 29 | "LICENSE", 30 | "lib", 31 | "bin" 32 | ], 33 | "private": true 34 | } 35 | -------------------------------------------------------------------------------- /snapshot/packageUpdate: -------------------------------------------------------------------------------- 1 | NAME='web-simulator' 2 | CURRENT_DATE=`date +%d%m%y` 3 | rm -rf $NAME* 4 | mkdir $NAME 5 | cp -r ../pkg/web $NAME 6 | cp ../README $NAME 7 | cp ../LICENSE $NAME 8 | cp simulator.bat $NAME 9 | cp sdk-wrt-options.txt $NAME 10 | zip -qr $NAME-$CURRENT_DATE.zip $NAME 11 | 12 | rm $NAME/simulator.bat 13 | cp simulator.sh $NAME 14 | tar cfa $NAME-$CURRENT_DATE.tar.gz $NAME 15 | 16 | md5sum $NAME-$CURRENT_DATE.* 17 | -------------------------------------------------------------------------------- /snapshot/sdk-wrt-options.txt: -------------------------------------------------------------------------------- 1 | --allow-file-access-from-files --disable-web-security --start-maximized 2 | -------------------------------------------------------------------------------- /snapshot/simulator.bat: -------------------------------------------------------------------------------- 1 | ver | find "Version 6" && set DIR=%LOCALAPPDATA%|| set DIR=%APPDATA% 2 | set CHROME=%DIR%\Google\Chrome\Application\chrome.exe 3 | set /p OPTIONS= <%CD%\sdk-wrt-options.txt 4 | start %CHROME% %OPTIONS% --app="file://%CD%/web/index.html" --user-data-dir=%CD%/sdk-profile-data/ 5 | -------------------------------------------------------------------------------- /snapshot/simulator.sh: -------------------------------------------------------------------------------- 1 | CUR=$(cd $(dirname $0) && pwd) 2 | CHROME=google-chrome 3 | if [ "$OS" == "darwin" ] || [ "$(uname)" == "Darwin" ]; then 4 | CHROME_PATH=/Applications 5 | CHROME="$CHROME_PATH/Google Chrome.app/Contents/MacOS/Google Chrome" 6 | if ! test -e "$CHROME"; then 7 | CHROME_PATH=~/Desktop 8 | CHROME="$CHROME_PATH/Google Chrome.app/Contents/MacOS/Google Chrome" 9 | fi 10 | fi 11 | 12 | "$CHROME" $(cat $CUR/sdk-wrt-options.txt) --app=file://$CUR/web/index.html --user-data-dir=./sdk-profile-data/ 13 | -------------------------------------------------------------------------------- /snapshot/web-simulator-190912.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intel/web-simulator/51fc660b7da78c90789d06e007daa392cb69e025/snapshot/web-simulator-190912.tar.gz -------------------------------------------------------------------------------- /snapshot/web-simulator-190912.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intel/web-simulator/51fc660b7da78c90789d06e007daa392cb69e025/snapshot/web-simulator-190912.zip -------------------------------------------------------------------------------- /test/assets/config/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | PhoneGap: Getting Started 8 | 9 | 10 | A template for getting started with PhoneGap development and build.phonegap.com 11 | 12 | 13 | 15 | Ripple UI 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /test/assets/config/config_no_namespaces.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 11 | ConfigTest 12 | This is my first Widget. 13 | Example license Copyright (c) 2008. 14 | myname 16 | 17 | -------------------------------------------------------------------------------- /test/assets/config/config_no_widget_node.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | foobar 4 | 5 | -------------------------------------------------------------------------------- /test/assets/config/config_with_bad_url_email_attributes.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | ConfigTest 19 | This is my first Widget. 20 | Example license Copyright (c) 2008. 21 | myname 23 | 24 | -------------------------------------------------------------------------------- /test/assets/config/config_with_missing_attributes.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | PhoneGap: Getting Started 8 | 9 | 10 | A template for getting started with PhoneGap development and build.phonegap.com 11 | 12 | 13 | 15 | Ripple UI 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /test/unit/cordova/console.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | describe("Cordova 2.0 Console bridge", function () { 17 | var _console = require('ripple/platform/cordova/2.0.0/bridge/console'); 18 | 19 | describe("when logging", function () { 20 | it("calls the log method", function () { 21 | spyOn(console, "log"); 22 | _console.log(null, null, ["beavers!!!"]); 23 | expect(console.log).toHaveBeenCalledWith("beavers!!!"); 24 | }); 25 | }); 26 | }); 27 | -------------------------------------------------------------------------------- /test/unit/phonegap/network.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | describe("phonegap_network", function () { 17 | var deviceSettings = require('ripple/deviceSettings'), 18 | network = require('ripple/platform/phonegap/1.0.0/network'); 19 | 20 | it("returns the value from deviceSettings", function () { 21 | spyOn(deviceSettings, "retrieve").andReturn("tin_cans"); 22 | expect(network.connection.type).toBe("tin_cans"); 23 | }); 24 | }); 25 | -------------------------------------------------------------------------------- /test/unit/webworks/identity/Service.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 Research In Motion Limited. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | describe("webworks identity.Service", function () { 17 | var spec = require('ripple/platform/webworks.handset/2.0.0/spec'); 18 | 19 | describe("in spec", function () { 20 | it("includes Service module according to proper object structure", function () { 21 | expect(spec.objects.blackberry.children.identity.children.Service.path) 22 | .toEqual("webworks.handset/2.0.0/client/identity/Service"); 23 | }); 24 | }); 25 | }); 26 | -------------------------------------------------------------------------------- /thirdparty/browser-require/example/bar/something.js: -------------------------------------------------------------------------------- 1 | var foo = require('../foo'); 2 | exports.hello = 'hello from the something module'; 3 | exports.helloFromFoo = foo.hello; 4 | exports.myUri = module.uri; 5 | -------------------------------------------------------------------------------- /thirdparty/browser-require/example/embedded.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | require example 6 | 7 | 17 | 18 | 19 |

untitled

20 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /thirdparty/browser-require/example/foo.js: -------------------------------------------------------------------------------- 1 | 2 | exports.hello = 'hello from the foo module'; 3 | 4 | exports.format = function (template) { 5 | var re = /%[sdfo]/g, m, buf = '', prevIndex = 0, i = 1, v; 6 | while ((m = re.exec(template))) { 7 | if (m[0] === '%s') v = String(arguments[i++]); 8 | else if (m[0] === '%d') v = parseInt(arguments[i++]); 9 | else if (m[0] === '%f') v = parseFloat(arguments[i++]); 10 | else if (m[0] === '%o') v = JSON.stringify(arguments[i++]); 11 | buf += template.substring(prevIndex, m.index) + v; 12 | prevIndex = m.index + m[0].length; 13 | } 14 | buf += template.substring(prevIndex); 15 | return buf; 16 | } 17 | -------------------------------------------------------------------------------- /thirdparty/browser-require/example/load-local.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | require example 6 | 7 | 8 | 9 | 10 | 11 |

untitled

12 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /thirdparty/browser-require/example/load-remote.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | require example 6 | 7 | 21 | 22 | 23 |

untitled

24 | 25 | 26 | -------------------------------------------------------------------------------- /thirdparty/browser-require/test/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Test 6 | 9 | 10 | 11 | 12 | 13 |

Running tests...

14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /thirdparty/dredd.txt: -------------------------------------------------------------------------------- 1 | ______ 2 | ,-~ _ ^^~-., 3 | ,^ -,____ ^, ,/\/\/\, 4 | / (____) | S~ ~7 5 | ; .---._ | | || _| S I AM THE Z 6 | | | ~-.,\ | |!/ | /_ LAW! _\ 7 | ( | ~<-.,_^\|_7^ ,| _//_ _\ 8 | | | ", 77> (T/| _/' \/\/\/ 9 | | \_ )/<,/^\)i(| 10 | ( ^~-, |________|| 11 | ^!,_ / /, ,'^~^',!!_,..---. 12 | \_ "-./ / (-~^~-))' =,__,..>-, 13 | ^-,__/#w,_ '^' /~-,_/^\ ) 14 | /\ ( <_ ^~~--T^ ~=, \ \_,-=~^\ 15 | .-==, _,=^_,.-"_ ^~*.(_ /_) \ \,=\ ) 16 | /-~; \,-~ .-~ _,/ \ ___[8]_ \ T_),--~^^) 17 | _/ \,,..==~^_,.=,\ _.-~O ~ \_\_\_,.-=} 18 | ,{ _,.-<~^\ \ \\ () .=~^^~=. \_\_,./ 19 | ,{ ^T^ _ / \ \ \ \ \) [| \oDREDD > 20 | ^T~ ^ { \ \ _\.-|=-T~\\ () ()\<||>,' ) 21 | + \ |=~T ! Y [|() \ ,' / -naughty 22 | -------------------------------------------------------------------------------- /thirdparty/fail.txt: -------------------------------------------------------------------------------- 1 | ▄██████████████▄▐█▄▄▄▄█▌ 2 | ██████▌▄▌▄▐▐▌███▌▀▀██▀▀ 3 | ████▄█▌▄▌▄▐▐▌▀███▄▄█▌ 4 | ▄▄▄▄▄██████████████▀ 5 | 6 | 7 | -------------------------------------------------------------------------------- /thirdparty/jWorkflow/.gitignore: -------------------------------------------------------------------------------- 1 | .redcar 2 | -------------------------------------------------------------------------------- /thirdparty/jWorkflow/LICENSE: -------------------------------------------------------------------------------- 1 | ** Licensed Under ** 2 | 3 | The MIT License 4 | http://www.opensource.org/licenses/mit-license.php 5 | 6 | Copyright (c) 2010 all contributors: 7 | 8 | Gord Tanner 9 | tinyHippos Inc. 10 | -------------------------------------------------------------------------------- /thirdparty/jWorkflow/Rakefile: -------------------------------------------------------------------------------- 1 | require 'rubygems' 2 | require 'closure-compiler' 3 | 4 | task :default => [:build] 5 | 6 | desc "Use the Closure Compiler to compress jWorkflow.js" 7 | task :build do 8 | js = File.open('lib/jWorkflow.js', 'r') 9 | min = Closure::Compiler.new.compile(js) 10 | File.open('jworkflow-min-0.4.0.js', 'w') {|f| f.write(min) } 11 | end 12 | 13 | -------------------------------------------------------------------------------- /thirdparty/jWorkflow/jworkflow-min-0.4.0.js: -------------------------------------------------------------------------------- 1 | var jWorkflow=function(){return{order:function(h,j){var i=[],f,d=null,g=function(){var a=false;return{take:function(){a=true},pass:function(b){var c;a=false;if(f.length){c=f.shift();b=c.func.apply(c.context,[b,g]);a||g.pass(b)}else d.func&&d.func.apply(d.context,[])}}}(),e={andThen:function(a,b){if(typeof a!=="function")throw"expected function but was "+typeof a;i.push({func:a,context:b});return e},chill:function(a){return e.andThen(function(b,c){c.take();setTimeout(function(){c.pass(b)},a)})},start:function(a, 2 | b){d={func:a,context:b};f=i.slice();g.pass()}};return h?e.andThen(h,j):e}}}();if(typeof module==="object"&&typeof require==="function")module.exports=jWorkflow; 3 | -------------------------------------------------------------------------------- /thirdparty/jWorkflow/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "jWorkflow", 3 | "version" : "0.4.0", 4 | "description" : "dude, wheres my workflow?", 5 | "homepage": "https://github.com/tinyhippos/jWorkflow", 6 | "author": "gtanner", 7 | "contributors": [{ 8 | "name": "Gord Tanner", 9 | "email": "gtanner@gmail.com", 10 | "url": "http://github.com/gtanner" 11 | }], 12 | "licenses": [{ 13 | "type": "MIT", 14 | "url" : "" 15 | }], 16 | "main": "./lib/jWorkflow" 17 | } 18 | -------------------------------------------------------------------------------- /thirdparty/jWorkflow/test/test.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | jWorkflow Test Suite 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |

jWorkflow Test Suite

13 |

14 |

15 |
    16 | 17 | 18 | -------------------------------------------------------------------------------- /thirdparty/jWorkflow/test/vendor/qunit.css: -------------------------------------------------------------------------------- 1 | h1#qunit-header, h1.qunit-header { padding: 15px; font-size: large; background-color: #06b; color: white; font-family: 'trebuchet ms', verdana, arial; margin: 0; } 2 | h1#qunit-header a { color: white; } 3 | 4 | h2#qunit-banner { height: 2em; border-bottom: 1px solid white; background-color: #eee; margin: 0; font-family: 'trebuchet ms', verdana, arial; } 5 | h2#qunit-banner.pass { background-color: green; } 6 | h2#qunit-banner.fail { background-color: red; } 7 | 8 | h2#qunit-userAgent, h2.qunit-userAgent { padding: 10px; background-color: #eee; color: black; margin: 0; font-size: small; font-weight: normal; font-family: 'trebuchet ms', verdana, arial; font-size: 10pt; } 9 | 10 | div#qunit-testrunner-toolbar { background: #eee; border-top: 1px solid black; padding: 10px; font-family: 'trebuchet ms', verdana, arial; margin: 0; font-size: 10pt; } 11 | 12 | ol#qunit-tests { font-family: 'trebuchet ms', verdana, arial; font-size: 10pt; } 13 | ol#qunit-tests li strong { cursor:pointer; } 14 | ol#qunit-tests .pass { color: green; } 15 | ol#qunit-tests .fail { color: red; } 16 | 17 | p#qunit-testresult { margin-left: 1em; font-size: 10pt; font-family: 'trebuchet ms', verdana, arial; } 18 | -------------------------------------------------------------------------------- /thirdparty/jasmine/.gitignore: -------------------------------------------------------------------------------- 1 | .idea/ 2 | .svn/ 3 | .DS_Store 4 | site/ 5 | .bundle/ 6 | .pairs 7 | .rvmrc 8 | *.gem 9 | .bundle 10 | Gemfile.lock 11 | pkg/* 12 | -------------------------------------------------------------------------------- /thirdparty/jasmine/.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "pages"] 2 | path = pages 3 | url = git@github.com:pivotal/jasmine.git 4 | -------------------------------------------------------------------------------- /thirdparty/jasmine/Gemfile: -------------------------------------------------------------------------------- 1 | source :rubygems 2 | 3 | gemspec 4 | -------------------------------------------------------------------------------- /thirdparty/jasmine/MIT.LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2008-2011 Pivotal Labs 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining 4 | a copy of this software and associated documentation files (the 5 | "Software"), to deal in the Software without restriction, including 6 | without limitation the rights to use, copy, modify, merge, publish, 7 | distribute, sublicense, and/or sell copies of the Software, and to 8 | permit persons to whom the Software is furnished to do so, subject to 9 | the following conditions: 10 | 11 | The above copyright notice and this permission notice shall be 12 | included in all copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 15 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 17 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 18 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 19 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 20 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | -------------------------------------------------------------------------------- /thirdparty/jasmine/images/jasmine_favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intel/web-simulator/51fc660b7da78c90789d06e007daa392cb69e025/thirdparty/jasmine/images/jasmine_favicon.png -------------------------------------------------------------------------------- /thirdparty/jasmine/jasmine-core.gemspec: -------------------------------------------------------------------------------- 1 | # -*- encoding: utf-8 -*- 2 | $:.push File.expand_path("../lib", __FILE__) 3 | require "jasmine-core/version" 4 | 5 | Gem::Specification.new do |s| 6 | s.name = "jasmine-core" 7 | s.version = Jasmine::Core::VERSION 8 | s.platform = Gem::Platform::RUBY 9 | s.authors = ["Rajan Agaskar", "Davis Frank", "Christian Williams"] 10 | s.summary = %q{JavaScript BDD framework} 11 | s.description = %q{Test your JavaScript without any framework dependencies, in any environment, and with a nice descriptive syntax.} 12 | s.email = %q{jasmine-js@googlegroups.com} 13 | s.homepage = "http://pivotal.github.com/jasmine" 14 | s.rubyforge_project = "jasmine-core" 15 | 16 | s.files = Dir.glob("./lib/**/*") 17 | s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n") 18 | s.require_paths = ["lib"] 19 | s.add_development_dependency "json_pure", ">= 1.4.3" 20 | s.add_development_dependency "frank" 21 | s.add_development_dependency "ragaskar-jsdoc_helper" 22 | end 23 | -------------------------------------------------------------------------------- /thirdparty/jasmine/jsdoc-template/allclasses.tmpl: -------------------------------------------------------------------------------- 1 |
    {+new Link().toFile("index.html").withText("Class Index")+} 2 | | {+new Link().toFile("files.html").withText("File Index")+}
    3 |
    4 |

    Classes

    5 |
      6 | 7 |
    • {! 8 | if (thisClass.alias == "_global_") { 9 | output += ""+new Link().toClass(thisClass.alias)+""; 10 | } 11 | else { 12 | output += new Link().toClass(thisClass.alias); 13 | } 14 | !}
    • 15 |
      16 |
    17 |
    -------------------------------------------------------------------------------- /thirdparty/jasmine/jsdoc-template/static/header.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /thirdparty/jasmine/jsdoc-template/static/index.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | Generated Javascript Documentation 7 | 8 | 9 | 10 | 11 | 12 | <body> 13 | <p> 14 | This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. 15 | </p> 16 | </body> 17 | 18 | 19 | -------------------------------------------------------------------------------- /thirdparty/jasmine/jsdoc-template/symbol.tmpl: -------------------------------------------------------------------------------- 1 | 2 | {+data.name+} 3 | {+data.memberOf+} 4 | {+data.isStatic+} 5 | {+data.isa+} 6 | {+data.desc+} 7 | {+data.classDesc+} 8 | 9 | 10 | 11 | {+method.name+} 12 | {+method.memberOf+} 13 | {+method.isStatic+} 14 | {+method.desc+} 15 | 16 | 17 | {+param.type+} 18 | {+param.name+} 19 | {+param.desc+} 20 | {+param.defaultValue+} 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | {+property.name+} 29 | {+property.memberOf+} 30 | {+property.isStatic+} 31 | {+property.desc+} 32 | {+property.type+} 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /thirdparty/jasmine/lib/jasmine-core.rb: -------------------------------------------------------------------------------- 1 | module Jasmine 2 | module Core 3 | class << self 4 | def path 5 | File.join(File.dirname(__FILE__), "jasmine-core") 6 | end 7 | 8 | def js_files 9 | (["jasmine.js"] + Dir.glob(File.join(path, "*.js"))).map { |f| File.basename(f) }.uniq 10 | end 11 | 12 | def css_files 13 | Dir.glob(File.join(path, "*.css")).map { |f| File.basename(f) } 14 | end 15 | end 16 | end 17 | end 18 | -------------------------------------------------------------------------------- /thirdparty/jasmine/lib/jasmine-core/example/spec/SpecHelper.js: -------------------------------------------------------------------------------- 1 | beforeEach(function() { 2 | this.addMatchers({ 3 | toBePlaying: function(expectedSong) { 4 | var player = this.actual; 5 | return player.currentlyPlayingSong === expectedSong && 6 | player.isPlaying; 7 | } 8 | }); 9 | }); 10 | -------------------------------------------------------------------------------- /thirdparty/jasmine/lib/jasmine-core/example/src/Player.js: -------------------------------------------------------------------------------- 1 | function Player() { 2 | } 3 | Player.prototype.play = function(song) { 4 | this.currentlyPlayingSong = song; 5 | this.isPlaying = true; 6 | }; 7 | 8 | Player.prototype.pause = function() { 9 | this.isPlaying = false; 10 | }; 11 | 12 | Player.prototype.resume = function() { 13 | if (this.isPlaying) { 14 | throw new Error("song is already playing"); 15 | } 16 | 17 | this.isPlaying = true; 18 | }; 19 | 20 | Player.prototype.makeFavorite = function() { 21 | this.currentlyPlayingSong.persistFavoriteStatus(true); 22 | }; -------------------------------------------------------------------------------- /thirdparty/jasmine/lib/jasmine-core/example/src/Song.js: -------------------------------------------------------------------------------- 1 | function Song() { 2 | } 3 | 4 | Song.prototype.persistFavoriteStatus = function(value) { 5 | // something complicated 6 | throw new Error("not yet implemented"); 7 | }; -------------------------------------------------------------------------------- /thirdparty/jasmine/lib/jasmine-core/version.rb: -------------------------------------------------------------------------------- 1 | module Jasmine 2 | module Core 3 | require 'json' 4 | VERSION_HASH = JSON.parse(File.new(File.join(File.dirname(__FILE__), "..", "..", "src", "core", "version.json")).read); 5 | VERSION = "#{VERSION_HASH['major']}.#{VERSION_HASH['minor']}.#{VERSION_HASH['build']}" 6 | VERSION << ".rc#{VERSION_HASH['release_candidate']}" if VERSION_HASH['release_candidate'] 7 | end 8 | end 9 | -------------------------------------------------------------------------------- /thirdparty/jasmine/spec/core/BaseSpec.js: -------------------------------------------------------------------------------- 1 | describe("base.js", function() { 2 | describe("jasmine.MessageResult", function() { 3 | it("#toString should pretty-print and concatenate each part of the message", function() { 4 | var values = ["log", "message", 123, {key: "value"}, "FTW!"]; 5 | var messageResult = new jasmine.MessageResult(values); 6 | expect(messageResult.toString()).toEqual("log message 123 { key : 'value' } FTW!"); 7 | }); 8 | }); 9 | 10 | describe("jasmine.log", function() { 11 | it("should accept n arguments", function() { 12 | spyOn(jasmine.getEnv().currentSpec, 'log'); 13 | jasmine.log(1, 2, 3); 14 | expect(jasmine.getEnv().currentSpec.log).toHaveBeenCalledWith(1, 2, 3); 15 | }); 16 | }); 17 | 18 | describe("jasmine.getGlobal", function() { 19 | it("should return the global object", function() { 20 | var globalObject = (function() { 21 | return this; 22 | })(); 23 | 24 | expect(jasmine.getGlobal()).toBe(globalObject); 25 | }); 26 | }); 27 | }); 28 | -------------------------------------------------------------------------------- /thirdparty/jasmine/spec/core/MockClockSpec.js: -------------------------------------------------------------------------------- 1 | describe("MockClock", function () { 2 | 3 | beforeEach(function() { 4 | jasmine.Clock.useMock(); 5 | }); 6 | 7 | describe("setTimeout", function () { 8 | it("should mock the clock when useMock is in a beforeEach", function() { 9 | var expected = false; 10 | setTimeout(function() { 11 | expected = true; 12 | }, 30000); 13 | expect(expected).toBe(false); 14 | jasmine.Clock.tick(30001); 15 | expect(expected).toBe(true); 16 | }); 17 | }); 18 | 19 | describe("setInterval", function () { 20 | it("should mock the clock when useMock is in a beforeEach", function() { 21 | var interval = 0; 22 | setInterval(function() { 23 | interval++; 24 | }, 30000); 25 | expect(interval).toEqual(0); 26 | jasmine.Clock.tick(30001); 27 | expect(interval).toEqual(1); 28 | jasmine.Clock.tick(30001); 29 | expect(interval).toEqual(2); 30 | jasmine.Clock.tick(1); 31 | expect(interval).toEqual(2); 32 | }); 33 | }); 34 | 35 | it("shouldn't complain if you call jasmine.Clock.useMock() more than once", function() { 36 | jasmine.Clock.useMock(); 37 | }); 38 | }); 39 | -------------------------------------------------------------------------------- /thirdparty/jasmine/spec/core/QueueSpec.js: -------------------------------------------------------------------------------- 1 | describe("jasmine.Queue", function() { 2 | it("should not call itself recursively, so we don't get stack overflow errors", function() { 3 | var queue = new jasmine.Queue(new jasmine.Env()); 4 | queue.add(new jasmine.Block(null, function() {})); 5 | queue.add(new jasmine.Block(null, function() {})); 6 | queue.add(new jasmine.Block(null, function() {})); 7 | queue.add(new jasmine.Block(null, function() {})); 8 | 9 | var nestCount = 0; 10 | var maxNestCount = 0; 11 | var nextCallCount = 0; 12 | queue.next_ = function() { 13 | nestCount++; 14 | if (nestCount > maxNestCount) maxNestCount = nestCount; 15 | 16 | jasmine.Queue.prototype.next_.apply(queue, arguments); 17 | nestCount--; 18 | }; 19 | 20 | queue.start(); 21 | expect(maxNestCount).toEqual(1); 22 | }); 23 | }); -------------------------------------------------------------------------------- /thirdparty/jasmine/spec/html/MatchersHtmlSpec.js: -------------------------------------------------------------------------------- 1 | describe("MatchersSpec - HTML Dependent", function () { 2 | var env, spec; 3 | 4 | beforeEach(function() { 5 | env = new jasmine.Env(); 6 | env.updateInterval = 0; 7 | 8 | var suite = env.describe("suite", function() { 9 | spec = env.it("spec", function() { 10 | }); 11 | }); 12 | spyOn(spec, 'addMatcherResult'); 13 | 14 | this.addMatchers({ 15 | toPass: function() { 16 | return lastResult().passed(); 17 | }, 18 | toFail: function() { 19 | return !lastResult().passed(); 20 | } 21 | }); 22 | }); 23 | 24 | function match(value) { 25 | return spec.expect(value); 26 | } 27 | 28 | function lastResult() { 29 | return spec.addMatcherResult.mostRecentCall.args[0]; 30 | } 31 | 32 | it("toEqual with DOM nodes", function() { 33 | var nodeA = document.createElement('div'); 34 | var nodeB = document.createElement('div'); 35 | expect((match(nodeA).toEqual(nodeA))).toPass(); 36 | expect((match(nodeA).toEqual(nodeB))).toFail(); 37 | }); 38 | }); -------------------------------------------------------------------------------- /thirdparty/jasmine/spec/html/PrettyPrintHtmlSpec.js: -------------------------------------------------------------------------------- 1 | describe("jasmine.pp (HTML Dependent)", function () { 2 | it("should stringify HTML nodes properly", function() { 3 | var sampleNode = document.createElement('div'); 4 | sampleNode.innerHTML = 'foobar'; 5 | expect(jasmine.pp(sampleNode)).toEqual("HTMLNode"); 6 | expect(jasmine.pp({foo: sampleNode})).toEqual("{ foo : HTMLNode }"); 7 | }); 8 | }); 9 | -------------------------------------------------------------------------------- /thirdparty/jasmine/src/SourcesList.json: -------------------------------------------------------------------------------- 1 | [ 2 | "base.js", 3 | "util.js", 4 | "Env.js", 5 | "Reporter.js", 6 | "Block.js" 7 | ] -------------------------------------------------------------------------------- /thirdparty/jasmine/src/core/Block.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Blocks are functions with executable code that make up a spec. 3 | * 4 | * @constructor 5 | * @param {jasmine.Env} env 6 | * @param {Function} func 7 | * @param {jasmine.Spec} spec 8 | */ 9 | jasmine.Block = function(env, func, spec) { 10 | this.env = env; 11 | this.func = func; 12 | this.spec = spec; 13 | }; 14 | 15 | jasmine.Block.prototype.execute = function(onComplete) { 16 | try { 17 | this.func.apply(this.spec); 18 | } catch (e) { 19 | this.spec.fail(e); 20 | } 21 | onComplete(); 22 | }; -------------------------------------------------------------------------------- /thirdparty/jasmine/src/core/MultiReporter.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @constructor 3 | */ 4 | jasmine.MultiReporter = function() { 5 | this.subReporters_ = []; 6 | }; 7 | jasmine.util.inherit(jasmine.MultiReporter, jasmine.Reporter); 8 | 9 | jasmine.MultiReporter.prototype.addReporter = function(reporter) { 10 | this.subReporters_.push(reporter); 11 | }; 12 | 13 | (function() { 14 | var functionNames = [ 15 | "reportRunnerStarting", 16 | "reportRunnerResults", 17 | "reportSuiteResults", 18 | "reportSpecStarting", 19 | "reportSpecResults", 20 | "log" 21 | ]; 22 | for (var i = 0; i < functionNames.length; i++) { 23 | var functionName = functionNames[i]; 24 | jasmine.MultiReporter.prototype[functionName] = (function(functionName) { 25 | return function() { 26 | for (var j = 0; j < this.subReporters_.length; j++) { 27 | var subReporter = this.subReporters_[j]; 28 | if (subReporter[functionName]) { 29 | subReporter[functionName].apply(subReporter, arguments); 30 | } 31 | } 32 | }; 33 | })(functionName); 34 | } 35 | })(); 36 | -------------------------------------------------------------------------------- /thirdparty/jasmine/src/core/Reporter.js: -------------------------------------------------------------------------------- 1 | /** No-op base class for Jasmine reporters. 2 | * 3 | * @constructor 4 | */ 5 | jasmine.Reporter = function() { 6 | }; 7 | 8 | //noinspection JSUnusedLocalSymbols 9 | jasmine.Reporter.prototype.reportRunnerStarting = function(runner) { 10 | }; 11 | 12 | //noinspection JSUnusedLocalSymbols 13 | jasmine.Reporter.prototype.reportRunnerResults = function(runner) { 14 | }; 15 | 16 | //noinspection JSUnusedLocalSymbols 17 | jasmine.Reporter.prototype.reportSuiteResults = function(suite) { 18 | }; 19 | 20 | //noinspection JSUnusedLocalSymbols 21 | jasmine.Reporter.prototype.reportSpecStarting = function(spec) { 22 | }; 23 | 24 | //noinspection JSUnusedLocalSymbols 25 | jasmine.Reporter.prototype.reportSpecResults = function(spec) { 26 | }; 27 | 28 | //noinspection JSUnusedLocalSymbols 29 | jasmine.Reporter.prototype.log = function(str) { 30 | }; 31 | 32 | -------------------------------------------------------------------------------- /thirdparty/jasmine/src/core/WaitsBlock.js: -------------------------------------------------------------------------------- 1 | jasmine.WaitsBlock = function(env, timeout, spec) { 2 | this.timeout = timeout; 3 | jasmine.Block.call(this, env, null, spec); 4 | }; 5 | 6 | jasmine.util.inherit(jasmine.WaitsBlock, jasmine.Block); 7 | 8 | jasmine.WaitsBlock.prototype.execute = function (onComplete) { 9 | if (jasmine.VERBOSE) { 10 | this.env.reporter.log('>> Jasmine waiting for ' + this.timeout + ' ms...'); 11 | } 12 | this.env.setTimeout(function () { 13 | onComplete(); 14 | }, this.timeout); 15 | }; 16 | -------------------------------------------------------------------------------- /thirdparty/jasmine/src/core/version.json: -------------------------------------------------------------------------------- 1 | { 2 | "major": 2, 3 | "minor": 0, 4 | "build": 0, 5 | "release_candidate": 1 6 | } 7 | -------------------------------------------------------------------------------- /thirdparty/node-XMLHttpRequest/README.md: -------------------------------------------------------------------------------- 1 | # node-XMLHttpRequest # 2 | 3 | node-XMLHttpRequest is arapper for the built-in http client to emulate the browser XMLHttpRequest object. 4 | 5 | This can be used with JS designed for browsers to improve reuse of code and allow the use of existing libraries. 6 | 7 | ## Usage ## 8 | Here's how to include the module in your project and use as the browser-based XHR object. 9 | 10 | var XMLHttpRequest = require("XMLHttpRequest").XMLHttpRequest; 11 | var xhr = new XMLHttpRequest(); 12 | 13 | Refer to W3C specs for XHR methods. 14 | 15 | ## TODO ## 16 | 17 | * Add basic authentication 18 | * Additional unit tests 19 | * Possibly move from http to tcp for more flexibility 20 | -------------------------------------------------------------------------------- /thirdparty/node-XMLHttpRequest/autotest.watchr: -------------------------------------------------------------------------------- 1 | def run_all_tests 2 | puts `clear` 3 | puts `node tests/test-constants.js` 4 | puts `node tests/test-headers.js` 5 | puts `node tests/test-request.js` 6 | end 7 | watch('.*.js') { run_all_tests } 8 | run_all_tests 9 | -------------------------------------------------------------------------------- /thirdparty/node-XMLHttpRequest/demo.js: -------------------------------------------------------------------------------- 1 | var sys = require('util'); 2 | var XMLHttpRequest = require("./XMLHttpRequest").XMLHttpRequest; 3 | 4 | var xhr = new XMLHttpRequest(); 5 | 6 | xhr.onreadystatechange = function() { 7 | sys.puts("State: " + this.readyState); 8 | 9 | if (this.readyState == 4) { 10 | sys.puts("Complete.\nBody length: " + this.responseText.length); 11 | sys.puts("Body:\n" + this.responseText); 12 | } 13 | }; 14 | 15 | xhr.open("GET", "http://driverdan.com"); 16 | xhr.send(); 17 | -------------------------------------------------------------------------------- /thirdparty/node-XMLHttpRequest/package.json: -------------------------------------------------------------------------------- 1 | { "name" : "xmlhttprequest" 2 | , "description" : "XMLHttpRequest for Node" 3 | , "version" : "1.2.1" 4 | , "author" : "Dan DeFelippi" 5 | , "licenses" : 6 | [ { "type" : "MIT" 7 | , "url" : "http://creativecommons.org/licenses/MIT/" 8 | } 9 | ] 10 | , "repository" : 11 | { "type" : "git" 12 | , "url" : "git://github.com/driverdan/node-XMLHttpRequest.git" 13 | } 14 | , "engine" : [ "node >=0.4.0" ] 15 | , "main" : "./XMLHttpRequest.js" 16 | } 17 | -------------------------------------------------------------------------------- /thirdparty/node-XMLHttpRequest/tests/test-constants.js: -------------------------------------------------------------------------------- 1 | var sys = require("util") 2 | ,assert = require("assert") 3 | ,XMLHttpRequest = require("../XMLHttpRequest").XMLHttpRequest 4 | ,xhr = new XMLHttpRequest(); 5 | 6 | // Test constant values 7 | assert.equal(0, xhr.UNSENT); 8 | assert.equal(1, xhr.OPENED); 9 | assert.equal(2, xhr.HEADERS_RECEIVED); 10 | assert.equal(3, xhr.LOADING); 11 | assert.equal(4, xhr.DONE); 12 | 13 | sys.puts("done"); 14 | -------------------------------------------------------------------------------- /thirdparty/node-XMLHttpRequest/tests/test-headers.js: -------------------------------------------------------------------------------- 1 | var sys = require("util") 2 | ,assert = require("assert") 3 | ,XMLHttpRequest = require("../XMLHttpRequest").XMLHttpRequest 4 | ,xhr = new XMLHttpRequest() 5 | ,http = require("http"); 6 | 7 | // Test server 8 | var server = http.createServer(function (req, res) { 9 | // Test setRequestHeader 10 | assert.equal("Foobar", req.headers["x-test"]); 11 | 12 | var body = "Hello World"; 13 | res.writeHead(200, { 14 | "Content-Type": "text/plain", 15 | "Content-Length": Buffer.byteLength(body) 16 | }); 17 | res.write("Hello World"); 18 | res.end(); 19 | 20 | this.close(); 21 | }).listen(8000); 22 | 23 | xhr.onreadystatechange = function() { 24 | if (this.readyState == 4) { 25 | // Test getAllResponseHeaders() 26 | var headers = "content-type: text/plain\r\ncontent-length: 11\r\nconnection: close"; 27 | assert.equal(headers, this.getAllResponseHeaders()); 28 | 29 | sys.puts("done"); 30 | } 31 | }; 32 | 33 | xhr.open("GET", "http://localhost:8000/"); 34 | xhr.setRequestHeader("X-Test", "Foobar"); 35 | xhr.send(); 36 | -------------------------------------------------------------------------------- /thirdparty/redblack/.npmignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | .git* 3 | Makefile 4 | node_modules/ 5 | redblack.min.js 6 | test/ -------------------------------------------------------------------------------- /thirdparty/redblack/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (C) 2012 Scott Nelson 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /thirdparty/redblack/TODO.txt: -------------------------------------------------------------------------------- 1 | - tree should take an optional comparator function 2 | --------------------------------------------------------------------------------