├── test
├── data
│ ├── file_to_select
│ ├── test.html
│ ├── favicon
│ │ ├── 16x16.ico
│ │ ├── 48x48.png
│ │ ├── favicon_ico.html
│ │ └── favicon_png.html
│ ├── title.html
│ ├── download
│ │ └── test.lib
│ ├── new_target.html
│ └── webrtc
│ │ └── getusermedia.html
├── android
│ ├── data
│ │ ├── request_focus_right_frame.html
│ │ ├── request_focus_right_frame1.html
│ │ ├── icon.png
│ │ ├── device_files
│ │ │ ├── xwalk.png
│ │ │ ├── hello_world.html
│ │ │ ├── localStorage.html
│ │ │ ├── image_access.html
│ │ │ ├── xhr_access.html
│ │ │ ├── iframe_access.html
│ │ │ └── database_access.html
│ │ ├── sampapp-icon-helloworld.png
│ │ ├── asset_file.html
│ │ ├── scale_changed.html
│ │ ├── myextension
│ │ │ ├── myextension.json
│ │ │ └── myextension.js
│ │ ├── request_focus_left_frame.html
│ │ ├── manifest.json
│ │ ├── www
│ │ │ ├── manifest_without_xwalk_hosts.json
│ │ │ ├── manifest_self.json
│ │ │ ├── csp.html
│ │ │ ├── manifest_inline_script.json
│ │ │ ├── manifest_xwalk_hosts.json
│ │ │ └── cross_origin.html
│ │ ├── file_chooser.html
│ │ ├── profile.html
│ │ ├── renderHung.html
│ │ ├── request_focus_main.html
│ │ ├── remote.html
│ │ ├── window.close.html
│ │ ├── fullscreen_togged.html
│ │ ├── add_js_interface.html
│ │ ├── new_window.html
│ │ ├── favicon.html
│ │ ├── create_window_2.html
│ │ ├── index.html
│ │ ├── timer.html
│ │ ├── navigator.online.html
│ │ ├── js_modal_dialog.html
│ │ ├── fullscreen_enter_exit.html
│ │ ├── geolocation.html
│ │ ├── create_window_1.html
│ │ ├── echo_sync_java.html
│ │ ├── echo_java.html
│ │ ├── screen_orientation.html
│ │ ├── find.html
│ │ ├── displayAvailableTest.html
│ │ └── full_screen_video_test.html
│ ├── OWNERS
│ ├── util
│ │ ├── src
│ │ │ └── org
│ │ │ │ └── xwalk
│ │ │ │ └── test
│ │ │ │ └── util
│ │ │ │ └── OnTitleUpdatedHelper.java
│ │ └── runtime_client
│ │ │ └── src
│ │ │ └── com
│ │ │ └── example
│ │ │ └── extension
│ │ │ └── MyExtension.java
│ ├── core
│ │ └── javatests
│ │ │ └── src
│ │ │ └── org
│ │ │ └── xwalk
│ │ │ └── core
│ │ │ └── xwview
│ │ │ └── test
│ │ │ ├── OnTitleUpdatedHelper.java
│ │ │ ├── GetUrlTest.java
│ │ │ └── GetCompositingSurfaceTypeTest.java
│ ├── core_internal
│ │ └── javatests
│ │ │ └── src
│ │ │ └── org
│ │ │ └── xwalk
│ │ │ └── core
│ │ │ └── internal
│ │ │ └── xwview
│ │ │ └── test
│ │ │ └── OnTitleUpdatedHelper.java
│ └── runtime_client
│ │ └── javatests
│ │ └── src
│ │ └── org
│ │ └── xwalk
│ │ └── runtime
│ │ └── client
│ │ └── test
│ │ ├── CSPTest.java
│ │ └── XWalkRuntimeClientTestBase.java
└── base
│ ├── xwalk_test_suite.h
│ └── xwalk_test_suite.cc
├── API_VERSION
├── sysapps
├── OWNERS
├── DEPS
├── sysapps_resources.grd
├── raw_socket
│ ├── raw_socket_object.cc
│ ├── tcp_server_socket.idl
│ └── raw_socket_object.h
└── common
│ └── common.idl
├── runtime
├── OWNERS
├── app
│ ├── app.icns
│ ├── android
│ │ ├── OWNERS
│ │ └── xwalk_jni_registrar.h
│ ├── xwalk_content_main.h
│ └── helper-Info.plist
├── android
│ ├── core_internal
│ │ ├── src
│ │ │ └── org
│ │ │ │ └── xwalk
│ │ │ │ └── core
│ │ │ │ └── internal
│ │ │ │ ├── extension
│ │ │ │ └── api
│ │ │ │ │ ├── OWNERS
│ │ │ │ │ ├── presentation
│ │ │ │ │ ├── OWNERS
│ │ │ │ │ └── PresentationViewNull.java
│ │ │ │ │ └── DisplayManagerNull.java
│ │ │ │ ├── package.html
│ │ │ │ ├── PageLoadListener.java
│ │ │ │ ├── XWalkSwitches.java
│ │ │ │ ├── XWalkAPI.java
│ │ │ │ ├── XWalkNotificationService.java
│ │ │ │ ├── XWalkNativeExtensionLoaderInternal.java
│ │ │ │ ├── XWalkNavigationHandler.java
│ │ │ │ ├── XWalkHttpAuthInternal.java
│ │ │ │ └── XWalkGetBitmapCallbackInternal.java
│ │ └── res
│ │ │ └── values
│ │ │ └── strings.xml
│ ├── sample
│ │ ├── assets
│ │ │ ├── index.html
│ │ │ ├── icon.png
│ │ │ ├── manifest.json
│ │ │ ├── doubletapzoom.html
│ │ │ ├── builtinzoom.html
│ │ │ ├── new_window.html
│ │ │ ├── favicon.html
│ │ │ ├── create_window_2.html
│ │ │ ├── pause_timers.html
│ │ │ └── create_window_1.html
│ │ ├── res
│ │ │ ├── drawable-hdpi
│ │ │ │ └── crosswalk.png
│ │ │ ├── drawable-ldpi
│ │ │ │ └── crosswalk.png
│ │ │ ├── drawable-mdpi
│ │ │ │ └── crosswalk.png
│ │ │ ├── drawable-xhdpi
│ │ │ │ └── crosswalk.png
│ │ │ ├── values
│ │ │ │ └── strings.xml
│ │ │ └── layout
│ │ │ │ ├── xwview_layout.xml
│ │ │ │ ├── container.xml
│ │ │ │ └── animatable_xwview_layout.xml
│ │ └── src
│ │ │ └── org
│ │ │ └── xwalk
│ │ │ └── core
│ │ │ └── sample
│ │ │ ├── XWalkBaseActivity.java
│ │ │ ├── XWalkViewWithLayoutActivity.java
│ │ │ ├── ExtensionActivity.java
│ │ │ ├── LoadAppFromManifestActivity.java
│ │ │ ├── OnHideOnShowActivity.java
│ │ │ ├── XWalkPreferencesActivity.java
│ │ │ └── XWalkVersionAndAPIVersion.java
│ ├── core_shell
│ │ └── res
│ │ │ ├── raw
│ │ │ ├── resource_icon.png
│ │ │ ├── blank_html.html
│ │ │ └── resource_file.html
│ │ │ ├── drawable
│ │ │ ├── resource_icon.png
│ │ │ └── progress.xml
│ │ │ ├── values
│ │ │ └── strings.xml
│ │ │ └── layout
│ │ │ └── fragment_main.xml
│ ├── runtime_lib
│ │ ├── res
│ │ │ ├── drawable-hdpi
│ │ │ │ └── crosswalk.png
│ │ │ ├── drawable-ldpi
│ │ │ │ └── crosswalk.png
│ │ │ ├── drawable-mdpi
│ │ │ │ └── crosswalk.png
│ │ │ └── drawable-xhdpi
│ │ │ │ └── crosswalk.png
│ │ ├── src
│ │ │ └── README.md
│ │ └── AndroidManifest.xml
│ ├── core_internal_shell
│ │ └── res
│ │ │ ├── raw
│ │ │ └── resource_icon.png
│ │ │ ├── drawable
│ │ │ ├── resource_icon.png
│ │ │ └── progress.xml
│ │ │ └── values
│ │ │ └── strings.xml
│ ├── OWNERS
│ ├── templates
│ │ ├── XWalkCoreVersion.template
│ │ └── XWalkAppVersion.template
│ ├── dummy_lib
│ │ └── dummy_lib.cc
│ ├── core_internal_empty
│ │ ├── src
│ │ │ └── README.md
│ │ └── AndroidManifest.xml
│ ├── core
│ │ ├── res
│ │ │ └── values
│ │ │ │ └── strings.xml
│ │ └── src
│ │ │ └── org
│ │ │ └── xwalk
│ │ │ └── core
│ │ │ ├── extension
│ │ │ ├── XWalkExternalExtensionBridgeFactory.java
│ │ │ └── JsConstructor.java
│ │ │ └── JavascriptInterface.java
│ └── maven
│ │ ├── xwalk_shared_library.pom.xml.in
│ │ └── xwalk_core_library.pom.xml.in
├── resources
│ ├── icons
│ │ ├── crosswalk.ico
│ │ ├── crosswalk_48x48.png
│ │ ├── crosswalk_72x72.png
│ │ ├── crosswalk_96x96.png
│ │ └── crosswalk_144x144.png
│ ├── default_100_percent
│ │ ├── close.png
│ │ ├── download.png
│ │ ├── close_hover.png
│ │ └── close_pressed.png
│ ├── locale
│ │ └── xwalk_strings_zh-CN.xtb
│ └── resource.h
├── browser
│ ├── android
│ │ ├── OWNERS
│ │ ├── xwalk_http_auth_handler_base.cc
│ │ ├── xwalk_view_delegate.h
│ │ ├── cookie_manager.h
│ │ ├── net
│ │ │ ├── url_constants.h
│ │ │ ├── url_constants.cc
│ │ │ └── init_native_callback.h
│ │ ├── xwalk_view_delegate.cc
│ │ ├── net_disk_cache_remover.h
│ │ ├── xwalk_content_lifecycle_notifier.h
│ │ ├── xwalk_content_lifecycle_notifier.cc
│ │ ├── xwalk_path_helper.h
│ │ └── scoped_allow_wait_for_legacy_web_view_api.h
│ ├── ui
│ │ ├── native_app_window_android.cc
│ │ ├── gtk2_ui.h
│ │ ├── xwalk_javascript_native_dialog_factory.h
│ │ ├── color_chooser_mac.cc
│ │ ├── color_chooser_android.cc
│ │ ├── native_app_window.cc
│ │ ├── color_chooser.cc
│ │ ├── linux_webui
│ │ │ ├── linux_webui.cc
│ │ │ └── linux_webui.h
│ │ └── webui
│ │ │ └── file_picker
│ │ │ └── file_picker_ui.h
│ ├── blink_upstream_version.h.in
│ ├── image_util.h
│ ├── runtime_select_file_policy.cc
│ ├── xwalk_application_mac.mm
│ ├── wifidirect_component_win.h
│ ├── xwalk_application_mac.h
│ ├── xwalk_runner_win.h
│ ├── storage_component.cc
│ ├── runtime_quota_permission_context.cc
│ ├── runtime_platform_util_aura.cc
│ ├── xwalk_browser_main_parts_mac.h
│ ├── storage_component.h
│ ├── sysapps_component.cc
│ └── runtime_platform_util_android.cc
├── common
│ ├── android
│ │ ├── OWNERS
│ │ ├── xwalk_core_tests.cc
│ │ ├── xwalk_message_generator.h
│ │ ├── xwalk_globals_android.cc
│ │ ├── xwalk_render_view_messages.cc
│ │ ├── xwalk_hit_test_data.cc
│ │ └── xwalk_globals_android.h
│ ├── xwalk_common_message_generator.h
│ ├── xwalk_common_messages.cc
│ ├── url_constants.cc
│ ├── xwalk_system_locale.cc
│ ├── xwalk_system_locale.h
│ ├── url_constants.h
│ ├── paths_mac.h
│ ├── xwalk_notification_types.h
│ └── xwalk_localized_error.h
├── renderer
│ ├── android
│ │ └── OWNERS
│ ├── pepper
│ │ ├── pepper_helper.cc
│ │ └── pepper_helper.h
│ └── isolated_file_system.h
└── DEPS
├── tools
├── OWNERS
├── installer
│ ├── debian
│ │ ├── changelog.template
│ │ └── control.template
│ └── common
│ │ └── wrapper
└── tar.py
├── application
├── OWNERS
├── DEPS
├── test
│ ├── data
│ │ ├── main_document
│ │ │ ├── main.js
│ │ │ ├── main.html
│ │ │ └── manifest.json
│ │ ├── web_start_URL
│ │ │ └── manifest.json
│ │ ├── api
│ │ │ ├── manifest.json
│ │ │ └── test.html
│ │ ├── dummy_app1
│ │ │ ├── manifest.json
│ │ │ └── main.html
│ │ ├── dummy_app2
│ │ │ ├── manifest.json
│ │ │ └── main.html
│ │ ├── testapi
│ │ │ ├── manifest.json
│ │ │ └── main.html
│ │ ├── good
│ │ │ └── Applications
│ │ │ │ └── aaa
│ │ │ │ └── manifest.json
│ │ └── bad
│ │ │ └── Applications
│ │ │ └── bbb
│ │ │ └── manifest.json
│ └── unpacker
│ │ ├── error.ext
│ │ ├── good.xpk
│ │ ├── bad_zip.xpk
│ │ ├── bad_magic.xpk
│ │ ├── bad_signature.xpk
│ │ └── no_magic_header.xpk
├── extension
│ └── application_runtime_api.js
├── browser
│ └── application_protocols.h
├── common
│ ├── package
│ │ └── wgt_package.h
│ └── constants.cc
└── application_resources.grd
├── experimental
├── presentation
│ └── OWNERS
├── wifidirect
│ └── OWNERS
├── launch_screen
│ └── launch_screen_api.js
└── native_file_system
│ ├── virtual_root_provider_mac.cc
│ ├── virtual_root_provider_android.cc
│ ├── native_file_system.idl
│ └── virtual_root_provider.cc
├── VERSION
├── app
├── OWNERS
└── android
│ ├── app_template
│ ├── res
│ │ ├── drawable-hdpi
│ │ │ └── crosswalk.png
│ │ ├── drawable-ldpi
│ │ │ └── crosswalk.png
│ │ ├── drawable-mdpi
│ │ │ └── crosswalk.png
│ │ ├── drawable-xhdpi
│ │ │ └── crosswalk.png
│ │ ├── drawable
│ │ │ └── launchscreen_bg.xml
│ │ └── values-v14
│ │ │ └── theme.xml
│ └── assets
│ │ └── sampapp-icon-helloworld.png
│ ├── app_hello_world
│ └── res
│ │ ├── drawable-hdpi
│ │ └── crosswalk.png
│ │ ├── drawable-ldpi
│ │ └── crosswalk.png
│ │ ├── drawable-mdpi
│ │ └── crosswalk.png
│ │ └── drawable-xhdpi
│ │ └── crosswalk.png
│ ├── runtime_client_shell
│ └── res
│ │ └── values
│ │ └── strings.xml
│ ├── runtime_client_embedded_shell
│ └── res
│ │ └── values
│ │ └── strings.xml
│ └── runtime_client
│ └── src
│ ├── templates
│ └── XWalkRuntimeClientVersion.template
│ └── org
│ └── xwalk
│ └── app
│ └── runtime
│ └── XWalkRuntimeViewProviderFactory.java
├── extensions
├── OWNERS
├── test
│ ├── DEPS
│ ├── data
│ │ ├── counter.html
│ │ ├── do_count_function.html
│ │ ├── context_destruction.html
│ │ ├── bad.html
│ │ ├── counter_with_iframes.html
│ │ ├── same_rp.html
│ │ ├── new_rp.html
│ │ ├── sync_echo.html
│ │ ├── test_export_object.html
│ │ ├── lazy_loaded_extension_overrides_object.html
│ │ ├── echo.html
│ │ ├── crash.html
│ │ ├── iframe_using_document_write.html
│ │ ├── namespace_read_only.html
│ │ ├── outer.html
│ │ ├── another.html
│ │ ├── entry_points.html
│ │ ├── echo_multiple.html
│ │ ├── get_runtime_variable.html
│ │ ├── conflicting_names.html
│ │ ├── inner_outer.html
│ │ ├── namespace_read_only_with_entrypoint.html
│ │ ├── setter_callback_entry_point.html
│ │ ├── blank_iframes.html
│ │ ├── cross_contexts_reference.html
│ │ └── crash_demo.html
│ ├── win
│ │ ├── invalid_extension_1
│ │ │ └── Bla.cs
│ │ ├── invalid_extension_3
│ │ │ └── XWalkExtension.cs
│ │ ├── invalid_extension_2
│ │ │ └── XWalkExtension.cs
│ │ ├── invalid_extension_8
│ │ │ ├── XWalkExtensionInstance.cs
│ │ │ └── XWalkExtension.cs
│ │ ├── invalid_extension_9
│ │ │ ├── XWalkExtensionInstance.cs
│ │ │ └── XWalkExtension.cs
│ │ ├── invalid_extension_4
│ │ │ └── XWalkExtension.cs
│ │ ├── invalid_extension_10
│ │ │ ├── XWalkExtensionInstance.cs
│ │ │ └── XWalkExtension.cs
│ │ ├── invalid_extension_6
│ │ │ └── XWalkExtension.cs
│ │ ├── invalid_extension_5
│ │ │ └── XWalkExtension.cs
│ │ ├── invalid_extension_11
│ │ │ ├── XWalkExtensionInstance.cs
│ │ │ └── XWalkExtension.cs
│ │ ├── invalid_extension_7
│ │ │ └── XWalkExtension.cs
│ │ ├── invalid_extension_12
│ │ │ ├── XWalkExtensionInstance.cs
│ │ │ └── XWalkExtension.cs
│ │ ├── echo_extension
│ │ │ ├── XWalkExtensionInstance.cs
│ │ │ └── XWalkExtension.cs
│ │ ├── echo_extension1
│ │ │ ├── XWalkExtensionInstance.cs
│ │ │ └── XWalkExtension.cs
│ │ └── echo_extension2
│ │ │ ├── XWalkExtensionInstance.cs
│ │ │ └── XWalkExtension.cs
│ └── test.idl
├── README
├── DEPS
├── extension_process
│ └── xwalk_extension_process_main.h
├── common
│ ├── xwalk_extension_vector.h
│ ├── android
│ │ └── xwalk_native_extension_loader_android.h
│ ├── xwalk_extension_switches.h
│ └── xwalk_extension_permission_types.h
├── android
│ └── java
│ │ └── src
│ │ └── org
│ │ └── xwalk
│ │ └── core
│ │ └── internal
│ │ └── extensions
│ │ └── XWalkNativeExtensionLoaderAndroid.java
├── renderer
│ ├── xwalk_v8_utils.h
│ └── xwalk_v8tools_module.h
├── extensions_resources.grd
└── xesh
│ ├── xesh.gypi
│ └── xesh_test.sh
├── wiki
└── images
│ ├── rebase-next.png
│ ├── feature-diagram.png
│ ├── patch_life_cycle.png
│ ├── rebase-feature-x-30.png
│ ├── rebase-feature-y-30.png
│ ├── rebase-feature-y-31.png
│ ├── rebase-feature-z-30.png
│ ├── rebase-feature-z-31.png
│ ├── rebase-upstream-31.png
│ ├── rebase-initial-state.png
│ ├── chrome_extension_api_binding.png
│ ├── chrome_extension_api_handling.png
│ └── chrome_extension_api_infrastructure.png
├── OWNERS
├── third_party
├── lzma_sdk
│ ├── src
│ │ └── SevenZip
│ │ │ └── ICodeProgress.java
│ ├── README.xwalk
│ └── lzma_sdk_android.gyp
└── README.xwalk
├── CPPLINT.cfg
├── .gitignore
├── README.md
├── gyp_xwalk.py
└── resources
└── resource_ids
/test/data/file_to_select:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/API_VERSION:
--------------------------------------------------------------------------------
1 | API=7
2 | MIN_API=5
3 |
--------------------------------------------------------------------------------
/sysapps/OWNERS:
--------------------------------------------------------------------------------
1 | thiago.santos@intel.com
2 |
--------------------------------------------------------------------------------
/test/data/test.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/runtime/OWNERS:
--------------------------------------------------------------------------------
1 | mikhail.pozdnyakov@intel.com
2 |
--------------------------------------------------------------------------------
/tools/OWNERS:
--------------------------------------------------------------------------------
1 | raphael.kubo.da.costa@intel.com
2 |
--------------------------------------------------------------------------------
/application/OWNERS:
--------------------------------------------------------------------------------
1 | mikhail.pozdnyakov@intel.com
2 |
--------------------------------------------------------------------------------
/experimental/presentation/OWNERS:
--------------------------------------------------------------------------------
1 | hongbo.min@intel.com
2 |
--------------------------------------------------------------------------------
/VERSION:
--------------------------------------------------------------------------------
1 | MAJOR=21
2 | MINOR=51
3 | BUILD=548
4 | PATCH=0
5 |
--------------------------------------------------------------------------------
/experimental/wifidirect/OWNERS:
--------------------------------------------------------------------------------
1 | aleksandar.stojiljkovic@intel.com
2 |
--------------------------------------------------------------------------------
/test/android/data/request_focus_right_frame.html:
--------------------------------------------------------------------------------
1 | right frame
2 |
--------------------------------------------------------------------------------
/test/android/data/request_focus_right_frame1.html:
--------------------------------------------------------------------------------
1 | another right frame
2 |
--------------------------------------------------------------------------------
/sysapps/DEPS:
--------------------------------------------------------------------------------
1 | include_rules = [
2 | "+grit/xwalk_sysapps_resources.h"
3 | ]
4 |
--------------------------------------------------------------------------------
/application/DEPS:
--------------------------------------------------------------------------------
1 | include_rules = [
2 | "+grit/xwalk_application_resources.h"
3 | ]
4 |
--------------------------------------------------------------------------------
/runtime/app/app.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/functions/crosswalk/master/runtime/app/app.icns
--------------------------------------------------------------------------------
/runtime/android/core_internal/src/org/xwalk/core/internal/extension/api/OWNERS:
--------------------------------------------------------------------------------
1 | halton.huo@intel.com
2 |
--------------------------------------------------------------------------------
/app/OWNERS:
--------------------------------------------------------------------------------
1 | halton.huo@intel.com
2 | lin.sun@intel.com
3 | shiliu.wang@intel.com
4 | yongsheng.zhu@intel.com
5 |
--------------------------------------------------------------------------------
/extensions/OWNERS:
--------------------------------------------------------------------------------
1 | caio.oliveira@intel.com
2 | jesus.sanchez-palencia@intel.com
3 | thiago.santos@intel.com
4 |
--------------------------------------------------------------------------------
/test/android/data/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/functions/crosswalk/master/test/android/data/icon.png
--------------------------------------------------------------------------------
/test/data/favicon/16x16.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/functions/crosswalk/master/test/data/favicon/16x16.ico
--------------------------------------------------------------------------------
/test/data/favicon/48x48.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/functions/crosswalk/master/test/data/favicon/48x48.png
--------------------------------------------------------------------------------
/wiki/images/rebase-next.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/functions/crosswalk/master/wiki/images/rebase-next.png
--------------------------------------------------------------------------------
/runtime/android/core_internal/src/org/xwalk/core/internal/extension/api/presentation/OWNERS:
--------------------------------------------------------------------------------
1 | hongbo.min@intel.com
2 |
--------------------------------------------------------------------------------
/runtime/android/sample/assets/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | Hello World.
4 |
5 |
6 |
--------------------------------------------------------------------------------
/test/android/OWNERS:
--------------------------------------------------------------------------------
1 | halton.huo@intel.com
2 | lin.sun@intel.com
3 | shiliu.wang@intel.com
4 | yongsheng.zhu@intel.com
5 |
--------------------------------------------------------------------------------
/wiki/images/feature-diagram.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/functions/crosswalk/master/wiki/images/feature-diagram.png
--------------------------------------------------------------------------------
/wiki/images/patch_life_cycle.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/functions/crosswalk/master/wiki/images/patch_life_cycle.png
--------------------------------------------------------------------------------
/application/test/data/main_document/main.js:
--------------------------------------------------------------------------------
1 | setTimeout(
2 | function(){
3 | window.open("main.html");
4 | }, 100);
5 |
--------------------------------------------------------------------------------
/application/test/data/web_start_URL/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "example",
3 | "start_url": "http://example.com"
4 | }
5 |
--------------------------------------------------------------------------------
/application/test/unpacker/error.ext:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/functions/crosswalk/master/application/test/unpacker/error.ext
--------------------------------------------------------------------------------
/application/test/unpacker/good.xpk:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/functions/crosswalk/master/application/test/unpacker/good.xpk
--------------------------------------------------------------------------------
/wiki/images/rebase-feature-x-30.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/functions/crosswalk/master/wiki/images/rebase-feature-x-30.png
--------------------------------------------------------------------------------
/wiki/images/rebase-feature-y-30.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/functions/crosswalk/master/wiki/images/rebase-feature-y-30.png
--------------------------------------------------------------------------------
/wiki/images/rebase-feature-y-31.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/functions/crosswalk/master/wiki/images/rebase-feature-y-31.png
--------------------------------------------------------------------------------
/wiki/images/rebase-feature-z-30.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/functions/crosswalk/master/wiki/images/rebase-feature-z-30.png
--------------------------------------------------------------------------------
/wiki/images/rebase-feature-z-31.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/functions/crosswalk/master/wiki/images/rebase-feature-z-31.png
--------------------------------------------------------------------------------
/wiki/images/rebase-upstream-31.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/functions/crosswalk/master/wiki/images/rebase-upstream-31.png
--------------------------------------------------------------------------------
/application/test/unpacker/bad_zip.xpk:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/functions/crosswalk/master/application/test/unpacker/bad_zip.xpk
--------------------------------------------------------------------------------
/runtime/android/sample/assets/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/functions/crosswalk/master/runtime/android/sample/assets/icon.png
--------------------------------------------------------------------------------
/runtime/resources/icons/crosswalk.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/functions/crosswalk/master/runtime/resources/icons/crosswalk.ico
--------------------------------------------------------------------------------
/wiki/images/rebase-initial-state.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/functions/crosswalk/master/wiki/images/rebase-initial-state.png
--------------------------------------------------------------------------------
/OWNERS:
--------------------------------------------------------------------------------
1 | alexis.menard@intel.com
2 | caio.oliveira@intel.com
3 | kenneth.r.christiansen@intel.com
4 | raphael.kubo.da.costa@intel.com
5 |
--------------------------------------------------------------------------------
/application/test/unpacker/bad_magic.xpk:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/functions/crosswalk/master/application/test/unpacker/bad_magic.xpk
--------------------------------------------------------------------------------
/test/android/data/device_files/xwalk.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/functions/crosswalk/master/test/android/data/device_files/xwalk.png
--------------------------------------------------------------------------------
/test/data/title.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | Dummy Title
4 |
5 |
6 | This is a test for title.
7 |
8 |
--------------------------------------------------------------------------------
/application/test/unpacker/bad_signature.xpk:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/functions/crosswalk/master/application/test/unpacker/bad_signature.xpk
--------------------------------------------------------------------------------
/runtime/resources/icons/crosswalk_48x48.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/functions/crosswalk/master/runtime/resources/icons/crosswalk_48x48.png
--------------------------------------------------------------------------------
/runtime/resources/icons/crosswalk_72x72.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/functions/crosswalk/master/runtime/resources/icons/crosswalk_72x72.png
--------------------------------------------------------------------------------
/runtime/resources/icons/crosswalk_96x96.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/functions/crosswalk/master/runtime/resources/icons/crosswalk_96x96.png
--------------------------------------------------------------------------------
/test/data/favicon/favicon_ico.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/test/data/favicon/favicon_png.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/application/test/unpacker/no_magic_header.xpk:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/functions/crosswalk/master/application/test/unpacker/no_magic_header.xpk
--------------------------------------------------------------------------------
/runtime/resources/icons/crosswalk_144x144.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/functions/crosswalk/master/runtime/resources/icons/crosswalk_144x144.png
--------------------------------------------------------------------------------
/test/android/data/sampapp-icon-helloworld.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/functions/crosswalk/master/test/android/data/sampapp-icon-helloworld.png
--------------------------------------------------------------------------------
/wiki/images/chrome_extension_api_binding.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/functions/crosswalk/master/wiki/images/chrome_extension_api_binding.png
--------------------------------------------------------------------------------
/wiki/images/chrome_extension_api_handling.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/functions/crosswalk/master/wiki/images/chrome_extension_api_handling.png
--------------------------------------------------------------------------------
/runtime/resources/default_100_percent/close.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/functions/crosswalk/master/runtime/resources/default_100_percent/close.png
--------------------------------------------------------------------------------
/extensions/test/DEPS:
--------------------------------------------------------------------------------
1 | include_rules = [
2 | "+xwalk/test",
3 |
4 | # For "browser tests" we run entire Crosswalk system.
5 | "+xwalk/runtime"
6 | ]
7 |
--------------------------------------------------------------------------------
/runtime/resources/default_100_percent/download.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/functions/crosswalk/master/runtime/resources/default_100_percent/download.png
--------------------------------------------------------------------------------
/runtime/android/core_shell/res/raw/resource_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/functions/crosswalk/master/runtime/android/core_shell/res/raw/resource_icon.png
--------------------------------------------------------------------------------
/runtime/resources/default_100_percent/close_hover.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/functions/crosswalk/master/runtime/resources/default_100_percent/close_hover.png
--------------------------------------------------------------------------------
/test/android/data/asset_file.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | Asset File
4 |
5 |
6 | This is an asset file.
7 |
8 |
9 |
--------------------------------------------------------------------------------
/test/android/data/scale_changed.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/wiki/images/chrome_extension_api_infrastructure.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/functions/crosswalk/master/wiki/images/chrome_extension_api_infrastructure.png
--------------------------------------------------------------------------------
/runtime/android/core_shell/res/raw/blank_html.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | This page intentionally left blank.
4 |
5 |
6 |
--------------------------------------------------------------------------------
/runtime/android/sample/res/drawable-hdpi/crosswalk.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/functions/crosswalk/master/runtime/android/sample/res/drawable-hdpi/crosswalk.png
--------------------------------------------------------------------------------
/runtime/android/sample/res/drawable-ldpi/crosswalk.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/functions/crosswalk/master/runtime/android/sample/res/drawable-ldpi/crosswalk.png
--------------------------------------------------------------------------------
/runtime/android/sample/res/drawable-mdpi/crosswalk.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/functions/crosswalk/master/runtime/android/sample/res/drawable-mdpi/crosswalk.png
--------------------------------------------------------------------------------
/runtime/android/sample/res/drawable-xhdpi/crosswalk.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/functions/crosswalk/master/runtime/android/sample/res/drawable-xhdpi/crosswalk.png
--------------------------------------------------------------------------------
/runtime/resources/default_100_percent/close_pressed.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/functions/crosswalk/master/runtime/resources/default_100_percent/close_pressed.png
--------------------------------------------------------------------------------
/app/android/app_template/res/drawable-hdpi/crosswalk.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/functions/crosswalk/master/app/android/app_template/res/drawable-hdpi/crosswalk.png
--------------------------------------------------------------------------------
/app/android/app_template/res/drawable-ldpi/crosswalk.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/functions/crosswalk/master/app/android/app_template/res/drawable-ldpi/crosswalk.png
--------------------------------------------------------------------------------
/app/android/app_template/res/drawable-mdpi/crosswalk.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/functions/crosswalk/master/app/android/app_template/res/drawable-mdpi/crosswalk.png
--------------------------------------------------------------------------------
/app/android/app_template/res/drawable-xhdpi/crosswalk.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/functions/crosswalk/master/app/android/app_template/res/drawable-xhdpi/crosswalk.png
--------------------------------------------------------------------------------
/application/test/data/api/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "xwalk.app API Test",
3 | "version": "1.0",
4 | "manifest_version": 1,
5 | "start_url": "test.html"
6 | }
7 |
--------------------------------------------------------------------------------
/application/test/data/dummy_app1/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "dummy_app_1",
3 | "manifest_version": 1,
4 | "version": "1.0",
5 | "start_url": "main.html"
6 | }
7 |
--------------------------------------------------------------------------------
/application/test/data/dummy_app2/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "dummy_app_2",
3 | "manifest_version": 1,
4 | "version": "1.0",
5 | "start_url": "main.html"
6 | }
7 |
--------------------------------------------------------------------------------
/runtime/android/core_shell/res/drawable/resource_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/functions/crosswalk/master/runtime/android/core_shell/res/drawable/resource_icon.png
--------------------------------------------------------------------------------
/test/android/data/myextension/myextension.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "echoJava",
3 | "class": "com.example.extension.MyExtension",
4 | "jsapi": "myextension.js"
5 | }
6 |
--------------------------------------------------------------------------------
/app/android/app_hello_world/res/drawable-hdpi/crosswalk.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/functions/crosswalk/master/app/android/app_hello_world/res/drawable-hdpi/crosswalk.png
--------------------------------------------------------------------------------
/app/android/app_hello_world/res/drawable-ldpi/crosswalk.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/functions/crosswalk/master/app/android/app_hello_world/res/drawable-ldpi/crosswalk.png
--------------------------------------------------------------------------------
/app/android/app_hello_world/res/drawable-mdpi/crosswalk.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/functions/crosswalk/master/app/android/app_hello_world/res/drawable-mdpi/crosswalk.png
--------------------------------------------------------------------------------
/app/android/app_hello_world/res/drawable-xhdpi/crosswalk.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/functions/crosswalk/master/app/android/app_hello_world/res/drawable-xhdpi/crosswalk.png
--------------------------------------------------------------------------------
/app/android/app_template/assets/sampapp-icon-helloworld.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/functions/crosswalk/master/app/android/app_template/assets/sampapp-icon-helloworld.png
--------------------------------------------------------------------------------
/application/test/data/main_document/main.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | hello
5 |
6 |
7 |
--------------------------------------------------------------------------------
/extensions/test/data/counter.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
9 |
10 |
--------------------------------------------------------------------------------
/runtime/android/runtime_lib/res/drawable-hdpi/crosswalk.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/functions/crosswalk/master/runtime/android/runtime_lib/res/drawable-hdpi/crosswalk.png
--------------------------------------------------------------------------------
/runtime/android/runtime_lib/res/drawable-ldpi/crosswalk.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/functions/crosswalk/master/runtime/android/runtime_lib/res/drawable-ldpi/crosswalk.png
--------------------------------------------------------------------------------
/runtime/android/runtime_lib/res/drawable-mdpi/crosswalk.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/functions/crosswalk/master/runtime/android/runtime_lib/res/drawable-mdpi/crosswalk.png
--------------------------------------------------------------------------------
/runtime/android/runtime_lib/res/drawable-xhdpi/crosswalk.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/functions/crosswalk/master/runtime/android/runtime_lib/res/drawable-xhdpi/crosswalk.png
--------------------------------------------------------------------------------
/application/test/data/dummy_app1/main.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Dummy App #1
5 |
6 |
7 |
--------------------------------------------------------------------------------
/application/test/data/dummy_app2/main.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Dummy App #2
5 |
6 |
7 |
--------------------------------------------------------------------------------
/application/test/data/testapi/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "xwalk.app.test API Test",
3 | "version": "1.0",
4 | "manifest_version": 1,
5 | "start_url": "main.html"
6 | }
7 |
--------------------------------------------------------------------------------
/runtime/android/core_internal_shell/res/raw/resource_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/functions/crosswalk/master/runtime/android/core_internal_shell/res/raw/resource_icon.png
--------------------------------------------------------------------------------
/runtime/android/sample/assets/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "ManifestTest",
3 | "start_url": "index.html",
4 | "description": "Manifest test",
5 | "version": "1.0.0"
6 | }
7 |
--------------------------------------------------------------------------------
/test/android/data/device_files/hello_world.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | Hello, World!
4 |
5 |
6 | Hello, World!
7 |
8 |
9 |
--------------------------------------------------------------------------------
/third_party/lzma_sdk/src/SevenZip/ICodeProgress.java:
--------------------------------------------------------------------------------
1 | package SevenZip;
2 |
3 | public interface ICodeProgress
4 | {
5 | public void SetProgress(long inSize, long outSize);
6 | }
7 |
--------------------------------------------------------------------------------
/tools/installer/debian/changelog.template:
--------------------------------------------------------------------------------
1 | @@PACKAGE@@ (@@VERSIONFULL@@) @@CHANNEL@@; urgency=low
2 |
3 |
4 | -- @@MAINTNAME@@ <@@MAINTMAIL@@> Tue, 03 Feb 2009 14:54:35 -0800
5 |
--------------------------------------------------------------------------------
/runtime/android/core_shell/res/raw/resource_file.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | Resource File
4 |
5 |
6 | This is a resource file!!!
7 |
8 |
9 |
--------------------------------------------------------------------------------
/test/android/data/request_focus_left_frame.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | Click me
4 |
5 |
6 |
--------------------------------------------------------------------------------
/test/data/download/test.lib:
--------------------------------------------------------------------------------
1 | Random byte that looks binary for sniffing:
2 | The quick brow fox jumped over the lazy dog
3 | (In earlier tellings, the dog had a better reputation.)
4 |
--------------------------------------------------------------------------------
/CPPLINT.cfg:
--------------------------------------------------------------------------------
1 | # Ignore errors about override vs OVERRIDE, see https://groups.google.com/a/chromium.org/forum/#!msg/chromium-dev/EW0wSDQQK8I/H0gsPtDtRmAJ
2 | filter=-readability/inheritance
3 |
--------------------------------------------------------------------------------
/extensions/test/data/do_count_function.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/runtime/android/core_internal_shell/res/drawable/resource_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/functions/crosswalk/master/runtime/android/core_internal_shell/res/drawable/resource_icon.png
--------------------------------------------------------------------------------
/runtime/android/sample/assets/doubletapzoom.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | Test for double tap zoom.
4 | Double click the current page, it will be scaled.
5 |
6 |
7 |
--------------------------------------------------------------------------------
/test/android/data/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "loadAppFromManifest Test",
3 | "version": "1.0.0",
4 | "description": "Test for loadAppFromManifest",
5 | "start_url": "index.html"
6 | }
7 |
8 |
--------------------------------------------------------------------------------
/application/test/data/good/Applications/aaa/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "Good",
3 | "version": "1.0.0",
4 | "manifest_version": 2,
5 | "description": "The first application that I made."
6 | }
7 |
--------------------------------------------------------------------------------
/runtime/android/OWNERS:
--------------------------------------------------------------------------------
1 | girish.ramakrishnan@intel.com
2 | halton.huo@intel.com
3 | lin.sun@intel.com
4 | shiliu.wang@intel.com
5 | shouqun.liu@intel.com
6 | xingnan.wang@intel.com
7 | yongsheng.zhu@intel.com
8 |
--------------------------------------------------------------------------------
/runtime/app/android/OWNERS:
--------------------------------------------------------------------------------
1 | girish.ramakrishnan@intel.com
2 | halton.huo@intel.com
3 | lin.sun@intel.com
4 | shiliu.wang@intel.com
5 | shouqun.liu@intel.com
6 | xingnan.wang@intel.com
7 | yongsheng.zhu@intel.com
8 |
--------------------------------------------------------------------------------
/runtime/browser/android/OWNERS:
--------------------------------------------------------------------------------
1 | girish.ramakrishnan@intel.com
2 | halton.huo@intel.com
3 | lin.sun@intel.com
4 | shiliu.wang@intel.com
5 | shouqun.liu@intel.com
6 | xingnan.wang@intel.com
7 | yongsheng.zhu@intel.com
8 |
--------------------------------------------------------------------------------
/runtime/common/android/OWNERS:
--------------------------------------------------------------------------------
1 | girish.ramakrishnan@intel.com
2 | halton.huo@intel.com
3 | lin.sun@intel.com
4 | shiliu.wang@intel.com
5 | shouqun.liu@intel.com
6 | xingnan.wang@intel.com
7 | yongsheng.zhu@intel.com
8 |
--------------------------------------------------------------------------------
/runtime/renderer/android/OWNERS:
--------------------------------------------------------------------------------
1 | girish.ramakrishnan@intel.com
2 | halton.huo@intel.com
3 | lin.sun@intel.com
4 | shiliu.wang@intel.com
5 | shouqun.liu@intel.com
6 | xingnan.wang@intel.com
7 | yongsheng.zhu@intel.com
8 |
--------------------------------------------------------------------------------
/test/android/data/device_files/localStorage.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/application/test/data/bad/Applications/bbb/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "version": ""1.0",
3 | "name": "My extension 3",
4 | "content_scripts": [
5 | {
6 | "matches": ["http://*/*"]
7 | }
8 | ]
9 | }
10 |
--------------------------------------------------------------------------------
/extensions/README:
--------------------------------------------------------------------------------
1 | Message posting extension mechanism for Crosswalk. Extensions consists of
2 | JavaScript API code (loaded into the Web contents), a function to handle
3 | messages from JavaScript and to post messages back to JavaScript.
4 |
--------------------------------------------------------------------------------
/test/android/data/www/manifest_without_xwalk_hosts.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "Cross Origin XHR Test",
3 | "version": "1.0.0",
4 | "description": "Test for Cross-Origin XHR without xwalk_hosts",
5 | "start_url": "cross_origin.html"
6 | }
7 |
--------------------------------------------------------------------------------
/application/test/data/main_document/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "main_document_test",
3 | "manifest_version": 1,
4 | "version": "1.0",
5 | "app": {
6 | "main": {
7 | "scripts": ["main.js"]
8 | }
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/test/android/data/file_chooser.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/third_party/lzma_sdk/README.xwalk:
--------------------------------------------------------------------------------
1 | Name: lzma_sdk
2 | URL: http://www.7-zip.org/sdk.html
3 | Version: 9.20
4 | License: Public Domain
5 | License Android Compatible: yes
6 |
7 | Description:
8 | General purpose compression library
9 |
10 |
--------------------------------------------------------------------------------
/extensions/test/data/context_destruction.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/test/android/data/www/manifest_self.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "CSP Test",
3 | "version": "1.0.0",
4 | "description": "CSP test with self script-src",
5 | "content_security_policy": "object-src 'self'; script-src 'self'",
6 | "start_url": "csp.html"
7 | }
8 |
--------------------------------------------------------------------------------
/extensions/test/data/bad.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/extensions/test/data/counter_with_iframes.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
11 |
12 |
--------------------------------------------------------------------------------
/test/android/data/www/csp.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | Original Title
4 |
9 |
10 |
11 | Original Page
12 |
13 |
14 |
--------------------------------------------------------------------------------
/extensions/test/data/same_rp.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/test/android/data/www/manifest_inline_script.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "CSP Test",
3 | "version": "1.0.0",
4 | "description": "CSP test with unsafe-inline script-src",
5 | "content_security_policy": "object-src 'self'; script-src 'unsafe-inline'",
6 | "start_url": "csp.html"
7 | }
8 |
--------------------------------------------------------------------------------
/test/android/data/www/manifest_xwalk_hosts.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "Cross Origin XHR Test",
3 | "version": "1.0.0",
4 | "description": "Test for Cross-Origin XHR",
5 | "start_url": "cross_origin.html",
6 | "xwalk_hosts": [
7 | "http://localhost:4444/*"
8 | ]
9 | }
10 |
--------------------------------------------------------------------------------
/extensions/test/data/new_rp.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/extensions/test/data/sync_echo.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/extensions/test/data/test_export_object.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/third_party/lzma_sdk/lzma_sdk_android.gyp:
--------------------------------------------------------------------------------
1 | {
2 | 'targets': [
3 | {
4 | 'target_name': 'lzma_sdk_java',
5 | 'type': 'none',
6 | 'variables': {
7 | 'java_in_dir': '.',
8 | },
9 | 'includes': ['../../../build/java.gypi']
10 | },
11 | ],
12 | }
13 |
--------------------------------------------------------------------------------
/extensions/test/data/lazy_loaded_extension_overrides_object.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/test/android/data/profile.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Profile Test
5 |
6 |
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/test/android/data/renderHung.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/test/android/data/request_focus_main.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/test/android/data/remote.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | Test case for Presentation : PASS
4 |
5 |
6 | This page would lauch to the second screen when you use cast screen on Android.
7 | You can add what you want to display clearly on the second screen in this page.
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/test/android/data/window.close.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | window.close
4 |
5 |
6 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/runtime/android/sample/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/runtime/android/templates/XWalkCoreVersion.template:
--------------------------------------------------------------------------------
1 | package org.xwalk.core.internal;
2 |
3 | class XWalkCoreVersion {
4 | public static final int API_VERSION = ${API_VERSION};
5 | public static final int MIN_API_VERSION = ${MIN_API_VERSION};
6 | public static final String XWALK_BUILD_VERSION = "${XWALK_BUILD_VERSION}";
7 | }
8 |
--------------------------------------------------------------------------------
/experimental/launch_screen/launch_screen_api.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2014 Intel Corporation. All rights reserved.
3 | * Use of this source code is governed by a BSD-style license that can be
4 | * found in the LICENSE file.
5 | */
6 |
7 | window.screen.show = function() {
8 | extension.postMessage("hideLaunchScreen");
9 | };
10 |
--------------------------------------------------------------------------------
/extensions/test/data/echo.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/test/android/data/fullscreen_togged.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
9 |
10 | Launch Fullscreen
11 |
12 |
13 |
--------------------------------------------------------------------------------
/extensions/test/win/invalid_extension_1/Bla.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2013 Intel Corporation. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | using System;
6 |
7 | namespace invalid
8 | {
9 | public class Foo
10 | {
11 | public Foo() {
12 | }
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/runtime/android/core_internal/src/org/xwalk/core/internal/package.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | Provides an embedding API for browsing web and running web applications.
4 |
For more information about building apps with Crosswalk embedding API, see the
5 | Crosswalk project .
6 |
7 |
8 |
--------------------------------------------------------------------------------
/runtime/common/android/xwalk_core_tests.cc:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | #include "base/test/test_suite.h"
6 |
7 | int main(int argc, char** argv) {
8 | return base::TestSuite(argc, argv).Run();
9 | }
10 |
--------------------------------------------------------------------------------
/runtime/common/android/xwalk_message_generator.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | // Multiply-included file, hence no include guard.
6 |
7 | #include "xwalk/runtime/common/android/xwalk_render_view_messages.h"
8 |
9 |
--------------------------------------------------------------------------------
/test/android/data/add_js_interface.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Add JS Interface
5 |
6 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/test/android/data/device_files/image_access.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/runtime/android/sample/assets/builtinzoom.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | Test for built in zoom controls.
4 | 1. Press enable button, pinch gesture to zoom in/out.
5 | 2. Press disable button, pinch gesture is disabled.
6 | Note: for the built in zoom controls showing, it should be supported by "setDisplayZoomControls()".
7 |
8 |
9 |
--------------------------------------------------------------------------------
/runtime/common/xwalk_common_message_generator.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | // Multiply-included file, hence no include guard.
6 | // NOLINT(build/header_guard)
7 |
8 | #include "xwalk/runtime/common/xwalk_common_messages.h"
9 |
--------------------------------------------------------------------------------
/test/android/data/new_window.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | New Window
6 |
7 |
8 | This is a new window
9 |
10 |
11 |
--------------------------------------------------------------------------------
/extensions/test/data/crash.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | Pass
4 |
5 |
6 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/extensions/test/win/invalid_extension_3/XWalkExtension.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2013 Intel Corporation. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | using System;
6 |
7 | namespace xwalk
8 | {
9 | public class XWalkExtension
10 | {
11 | public XWalkExtension() {
12 | }
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/runtime/android/sample/assets/new_window.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | New Window
6 |
7 |
8 | This is a new window
9 |
10 |
11 |
--------------------------------------------------------------------------------
/runtime/resources/locale/xwalk_strings_zh-CN.xtb:
--------------------------------------------------------------------------------
1 |
2 | 返回
3 | 前进
4 | 刷新
5 | 停止
6 |
7 |
--------------------------------------------------------------------------------
/app/android/runtime_client_shell/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
9 |
10 | Hello, Crosswalk!
11 |
12 |
--------------------------------------------------------------------------------
/extensions/test/data/iframe_using_document_write.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | This should not crash!
5 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/runtime/android/dummy_lib/dummy_lib.cc:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 | // Copyright (c) 2015 Intel Corporation. All rights reserved.
3 | // Use of this source code is governed by a BSD-style license that can be
4 | // found in the LICENSE file.
5 |
6 | // a placeholder used by Google Play to recognize architecture.
7 | void __unused_dummy_function() {
8 | }
9 |
--------------------------------------------------------------------------------
/runtime/android/core_internal/src/org/xwalk/core/internal/PageLoadListener.java:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2014 Intel Corporation. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | package org.xwalk.core.internal;
6 |
7 | interface PageLoadListener {
8 |
9 | public void onPageFinished(String url);
10 | }
11 |
--------------------------------------------------------------------------------
/runtime/android/core_internal_shell/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
9 |
10 | Hello, World!
11 |
12 |
--------------------------------------------------------------------------------
/app/android/runtime_client_embedded_shell/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
9 |
10 | Hello, Crosswalk!
11 |
12 |
--------------------------------------------------------------------------------
/extensions/test/data/namespace_read_only.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/runtime/common/android/xwalk_globals_android.cc:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2013 Intel Corporation. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | #include "xwalk/runtime/common/android/xwalk_globals_android.h"
6 |
7 | // The pak name should be the same as defined in xwalk.gyp
8 | const char kXWalkPakFilePath[] = "xwalk.pak";
9 |
--------------------------------------------------------------------------------
/extensions/test/win/invalid_extension_2/XWalkExtension.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2013 Intel Corporation. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | using System;
6 |
7 | namespace xwalk
8 | {
9 | public class XWalkExtension
10 | {
11 | public XWalkExtension(String invalidConstructor) {
12 | }
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/extensions/test/win/invalid_extension_8/XWalkExtensionInstance.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2013 Intel Corporation. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | using System;
6 |
7 | namespace xwalk
8 | {
9 | public class XWalkExtensionInstance
10 | {
11 | public XWalkExtensionInstance(int native) {
12 | }
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/runtime/common/xwalk_common_messages.cc:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 | #include "xwalk/runtime/common/xwalk_common_messages.h"
5 |
6 | namespace IPC {
7 |
8 | // TODO(upstream): - add enums and custom IPC traits here when needed.
9 |
10 | } // namespace IPC
11 |
--------------------------------------------------------------------------------
/extensions/test/data/outer.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/extensions/test/win/invalid_extension_9/XWalkExtensionInstance.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2013 Intel Corporation. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | using System;
6 |
7 | namespace xwalk
8 | {
9 | public class XWalkExtensionInstance
10 | {
11 | public XWalkExtensionInstance(dynamic native) {
12 | }
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/extensions/test/data/another.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/runtime/android/runtime_lib/src/README.md:
--------------------------------------------------------------------------------
1 | # Source folder for xwalk_runtime_lib_apk
2 | ## Why it's empty
3 | The "xwalk_runtime_lib_apk" is an apk target which
4 | provide xwalk_core_internal_java as library. The purpose
5 | of it is to be shared for other xwalk core embedders.
6 | So there is no java src here.
7 | ## Why put me here
8 | To make git keep the folder, the src directory is needed to
9 | build an apk.
10 |
11 |
--------------------------------------------------------------------------------
/test/android/data/device_files/xhr_access.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/runtime/android/core_shell/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
9 |
10 | Hello, World!
11 | New Tab
12 |
13 |
--------------------------------------------------------------------------------
/test/android/data/favicon.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Favicon
6 |
7 |
8 |
9 | The favicon will be shown by Toast
10 |
11 |
12 |
--------------------------------------------------------------------------------
/test/data/new_target.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
12 | Test Link
13 |
14 |
15 |
--------------------------------------------------------------------------------
/runtime/common/android/xwalk_render_view_messages.cc:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | #include "xwalk/runtime/common/android/xwalk_render_view_messages.h"
6 |
7 | namespace IPC {
8 |
9 | // TODO(upstream): - add enums and custom IPC traits here when needed.
10 |
11 | } // namespace IPC
12 |
--------------------------------------------------------------------------------
/runtime/browser/android/xwalk_http_auth_handler_base.cc:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | #include "xwalk/runtime/browser/android/xwalk_http_auth_handler_base.h"
6 |
7 | namespace xwalk {
8 |
9 | XWalkHttpAuthHandlerBase::~XWalkHttpAuthHandlerBase() {
10 | }
11 |
12 | } // namespace xwalk
13 |
--------------------------------------------------------------------------------
/test/android/data/create_window_2.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Create Window 2
6 |
7 |
8 | Create window by open link
9 |
10 |
11 |
--------------------------------------------------------------------------------
/runtime/android/sample/assets/favicon.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Favicon
6 |
7 |
8 |
9 | The favicon will be shown by Toast
10 |
11 |
12 |
--------------------------------------------------------------------------------
/runtime/common/url_constants.cc:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2015 Intel Corporation. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | #include "xwalk/runtime/common/url_constants.h"
6 |
7 | namespace xwalk {
8 |
9 | const char kChromeUIFilePickerHost[] = "file-picker";
10 | const char kChromeUIFilePickerURL[] = "chrome://file-picker";
11 |
12 | } // namespace xwalk
13 |
--------------------------------------------------------------------------------
/extensions/test/win/invalid_extension_4/XWalkExtension.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2013 Intel Corporation. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | using System;
6 |
7 | namespace xwalk
8 | {
9 | public class XWalkExtension
10 | {
11 | public XWalkExtension() {
12 | }
13 | public String ExtensionName() {
14 | return "test";
15 | }
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/runtime/android/sample/assets/create_window_2.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Create Window 2
6 |
7 |
8 | Create window by open link
9 |
10 |
11 |
--------------------------------------------------------------------------------
/runtime/android/sample/assets/pause_timers.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | A script on this page starts this clock:
6 |
7 |
8 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/runtime/android/core_internal_empty/src/README.md:
--------------------------------------------------------------------------------
1 | # Source folder for xwalk_core_library_empty_apk
2 | ## Why it's empty
3 | The "xwalk_core_library_empty_apk" is an apk target which
4 | only depends on xwalk_core_java. The purpose of it is to
5 | get all the classes compiled from the code chromium generated
6 | for each apk.
7 | So there is no java src here.
8 | ## Why put me here
9 | To make git keep the folder, the src directory is needed to
10 | build an apk.
11 |
12 |
--------------------------------------------------------------------------------
/runtime/android/sample/src/org/xwalk/core/sample/XWalkBaseActivity.java:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2014 Intel Corporation. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | package org.xwalk.core.sample;
6 |
7 | import org.xwalk.core.XWalkView;
8 |
9 | import android.app.Activity;
10 |
11 | public class XWalkBaseActivity extends Activity {
12 | protected XWalkView mXWalkView;
13 | }
14 |
--------------------------------------------------------------------------------
/runtime/browser/ui/native_app_window_android.cc:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2013 Intel Corporation. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | #include "base/logging.h"
6 | #include "xwalk/runtime/browser/ui/native_app_window.h"
7 |
8 | namespace xwalk {
9 |
10 | // static
11 | void NativeAppWindow::Initialize() {
12 | NOTIMPLEMENTED();
13 | }
14 |
15 | } // namespace xwalk
16 |
--------------------------------------------------------------------------------
/extensions/test/data/entry_points.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/runtime/common/android/xwalk_hit_test_data.cc:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | #include "xwalk/runtime/common/android/xwalk_hit_test_data.h"
6 |
7 | namespace xwalk {
8 |
9 | XWalkHitTestData::XWalkHitTestData() : type(UNKNOWN_TYPE) {}
10 |
11 | XWalkHitTestData::~XWalkHitTestData() {}
12 |
13 | } // namespace xwalk
14 |
--------------------------------------------------------------------------------
/test/android/data/device_files/iframe_access.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/experimental/native_file_system/virtual_root_provider_mac.cc:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2014 Intel Corporation. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | #include "xwalk/experimental/native_file_system/virtual_root_provider.h"
6 |
7 | #include "base/logging.h"
8 |
9 | VirtualRootProvider::VirtualRootProvider() {
10 | // TODO(darktears): Mac support to be added.
11 | NOTIMPLEMENTED();
12 | }
13 |
--------------------------------------------------------------------------------
/extensions/test/win/invalid_extension_10/XWalkExtensionInstance.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2013 Intel Corporation. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | using System;
6 |
7 | namespace xwalk
8 | {
9 | public class XWalkExtensionInstance
10 | {
11 | public XWalkExtensionInstance(dynamic native) {
12 | }
13 |
14 | public void HandleSyncMessage(String message) {
15 | }
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/test/android/data/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Crosswalk Sample Application
5 |
6 |
7 |
8 |
9 |
10 |
11 | Welcome to Crosswalk
12 |
13 |
14 | A perfect way for writing
15 | stand-alone web applications
16 | for Android
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/test/android/data/myextension/myextension.js:
--------------------------------------------------------------------------------
1 | var echoListener = null;
2 | extension.setMessageListener(function(msg) {
3 | if (echoListener instanceof Function) {
4 | echoListener(msg);
5 | };
6 | });
7 | // Export API 'echo'.
8 | exports.echo = function(msg, callback) {
9 | echoListener = callback;
10 | extension.postMessage(msg);
11 | };
12 | // Export API 'echoSync'.
13 | exports.echoSync = function(msg) {
14 | return extension.internal.sendSyncMessage(msg);
15 | };
16 |
--------------------------------------------------------------------------------
/runtime/android/core_shell/res/drawable/progress.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/extensions/test/data/echo_multiple.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/runtime/android/core_internal_shell/res/drawable/progress.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/test/android/data/timer.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
12 |
13 |
14 |
15 | onPause, onResume test.
16 |
17 |
18 |
--------------------------------------------------------------------------------
/tools/installer/debian/control.template:
--------------------------------------------------------------------------------
1 | Source: @@PACKAGE@@
2 | Section: web
3 | Priority: optional
4 | Maintainer: @@MAINTNAME@@ <@@MAINTMAIL@@>
5 | Build-Depends: dpkg-dev, devscripts, fakeroot, xz-utils
6 | Standards-Version: 3.8.0
7 |
8 | Package: @@PACKAGE@@
9 | Provides: @@PROVIDES@@
10 | Replaces: @@REPLACES@@
11 | Conflicts: @@CONFLICTS@@
12 | Pre-Depends: @@PREDEPENDS@@
13 | Depends: @@DEPENDS@@
14 | Architecture: @@ARCHITECTURE@@
15 | Description: @@SHORTDESC@@
16 | @@FULLDESC@@
17 |
--------------------------------------------------------------------------------
/extensions/test/data/get_runtime_variable.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/test/android/data/device_files/database_access.html:
--------------------------------------------------------------------------------
1 |
2 | None
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/runtime/android/sample/res/layout/xwview_layout.xml:
--------------------------------------------------------------------------------
1 |
7 |
8 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/runtime/browser/ui/gtk2_ui.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2015 Intel Corporation. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | #ifndef XWALK_RUNTIME_BROWSER_UI_GTK2_UI_H_
6 | #define XWALK_RUNTIME_BROWSER_UI_GTK2_UI_H_
7 |
8 | #include "ui/views/linux_ui/linux_ui.h"
9 |
10 | // Return the unique instance of class 'Gtk2UI'.
11 | extern views::LinuxUI* BuildGtk2UI();
12 |
13 | #endif // XWALK_RUNTIME_BROWSER_UI_GTK2_UI_H_
14 |
--------------------------------------------------------------------------------
/application/extension/application_runtime_api.js:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2013 Intel Corporation. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | var internal = requireNative("internal");
6 | internal.setupInternalExtension(extension);
7 |
8 | var application = requireNative('application');
9 |
10 | // Exported methods.
11 | exports.getManifest = function(callback) {
12 | internal.postMessage('getManifest', [], callback);
13 | };
14 |
--------------------------------------------------------------------------------
/experimental/native_file_system/virtual_root_provider_android.cc:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2014 Intel Corporation. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | #include "xwalk/experimental/native_file_system/virtual_root_provider.h"
6 |
7 | #include "xwalk/runtime/browser/android/xwalk_path_helper.h"
8 |
9 | VirtualRootProvider::VirtualRootProvider() {
10 | virtual_root_map_ = xwalk::XWalkPathHelper::GetVirtualRootMap();
11 | }
12 |
--------------------------------------------------------------------------------
/extensions/test/data/conflicting_names.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/third_party/README.xwalk:
--------------------------------------------------------------------------------
1 | The third_party directory contains sources from other projects.
2 |
3 | Code in third_party must document the license under which the source is being
4 | used. If the source itself does not include a license header or file, create
5 | an entry in this file that refers to reliable documentation of the project's
6 | license terms on the web (and add a note pointing here in the README file in
7 | that directory).
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/extensions/DEPS:
--------------------------------------------------------------------------------
1 | include_rules = [
2 | # Extension system doesn't depend on the other parts of Crosswalk.
3 | "-xwalk",
4 | "+xwalk/extensions",
5 |
6 | # Android.
7 | "+jni",
8 |
9 | # FIXME(cmarcelo): These are here for Android bindings. See
10 | # https://crosswalk-project.org/jira/browse/XWALK-749, should be removed.
11 | "!xwalk/runtime/browser/xwalk_browser_main_parts_android.h",
12 | "!xwalk/runtime/browser/xwalk_content_browser_client.h",
13 |
14 | "+grit/xwalk_extensions_resources.h"
15 | ]
16 |
--------------------------------------------------------------------------------
/extensions/test/win/invalid_extension_10/XWalkExtension.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2013 Intel Corporation. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | using System;
6 |
7 | namespace xwalk
8 | {
9 | public class XWalkExtension
10 | {
11 | public XWalkExtension() {
12 | }
13 | public String ExtensionName() {
14 | return "foo";
15 | }
16 | public String ExtensionAPI() {
17 | return "foo";
18 | }
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/test/android/data/navigator.online.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | navigator.onLine property test
4 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/extensions/test/win/invalid_extension_6/XWalkExtension.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2013 Intel Corporation. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | using System;
6 |
7 | namespace xwalk
8 | {
9 | public class XWalkExtension
10 | {
11 | public XWalkExtension() {
12 | }
13 | public String ExtensionName() {
14 | return "foo";
15 | }
16 | public int ExtensionAPI() {
17 | return 3;
18 | }
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/extensions/test/win/invalid_extension_8/XWalkExtension.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2013 Intel Corporation. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | using System;
6 |
7 | namespace xwalk
8 | {
9 | public class XWalkExtension
10 | {
11 | public XWalkExtension() {
12 | }
13 |
14 | public String ExtensionName() {
15 | return "foo";
16 | }
17 | public String ExtensionAPI() {
18 | return "foo";
19 | }
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/test/android/data/js_modal_dialog.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | onJavascriptModalDialog, onJsAlert, onJsConfirm, onJsPrompt test
4 |
5 |
6 | Click Me
7 | Click Alert
8 | Click Confirm
9 | Click Prompt
10 |
11 |
12 |
--------------------------------------------------------------------------------
/runtime/common/android/xwalk_globals_android.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2013 Intel Corporation. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | #ifndef XWALK_RUNTIME_COMMON_ANDROID_XWALK_GLOBALS_ANDROID_H_
6 | #define XWALK_RUNTIME_COMMON_ANDROID_XWALK_GLOBALS_ANDROID_H_
7 |
8 | enum {
9 | kXWalkPakDescriptor = 1,
10 | };
11 |
12 | extern const char kXWalkPakFilePath[];
13 |
14 | #endif // XWALK_RUNTIME_COMMON_ANDROID_XWALK_GLOBALS_ANDROID_H_
15 |
--------------------------------------------------------------------------------
/extensions/test/win/invalid_extension_5/XWalkExtension.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2013 Intel Corporation. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | using System;
6 |
7 | namespace xwalk
8 | {
9 | public class XWalkExtension
10 | {
11 | public XWalkExtension() {
12 | }
13 |
14 | public int ExtensionName() {
15 | return 3;
16 | }
17 | public String ExtensionAPI() {
18 | return "foo";
19 | }
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/extensions/test/win/invalid_extension_9/XWalkExtension.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2013 Intel Corporation. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | using System;
6 |
7 | namespace xwalk
8 | {
9 | public class XWalkExtension
10 | {
11 | public XWalkExtension() {
12 | }
13 | public String ExtensionName() {
14 | return "foo";
15 | }
16 | public String ExtensionAPI() {
17 | return "foo";
18 | }
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/runtime/browser/blink_upstream_version.h.in:
--------------------------------------------------------------------------------
1 | // Copyright 2014 Intel Corp. All rights reserved.
2 | // Use of this source is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | // upstream_blink_version.h is generated from upstream_blink_version.h.in. It
6 | // contains the latest upstream git revision present in the chromium-crosswalk
7 | // branch we are tracking. The information is obtained via DEPS.xwalk and the
8 | // lastchange.py script.
9 |
10 | #define BLINK_UPSTREAM_REVISION "@@LASTCHANGE@"
11 |
--------------------------------------------------------------------------------
/extensions/test/win/invalid_extension_11/XWalkExtensionInstance.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2013 Intel Corporation. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | using System;
6 |
7 | namespace xwalk
8 | {
9 | public class XWalkExtensionInstance
10 | {
11 | public XWalkExtensionInstance(dynamic native) {
12 | }
13 |
14 | public void HandleMessage(int message) {
15 | }
16 |
17 | public void HandleSyncMessage(int message) {
18 | }
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/extensions/test/win/invalid_extension_7/XWalkExtension.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2013 Intel Corporation. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | using System;
6 |
7 | namespace xwalk
8 | {
9 | public class XWalkExtension
10 | {
11 | public XWalkExtension(){
12 | }
13 |
14 | public String ExtensionName() {
15 | return "foo";
16 | }
17 | public String ExtensionAPI() {
18 | return "foo";
19 | }
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/runtime/browser/ui/xwalk_javascript_native_dialog_factory.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2015 Intel Corporation. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | #ifndef XWALK_RUNTIME_BROWSER_UI_XWALK_JAVASCRIPT_NATIVE_DIALOG_FACTORY_H_
6 | #define XWALK_RUNTIME_BROWSER_UI_XWALK_JAVASCRIPT_NATIVE_DIALOG_FACTORY_H_
7 |
8 | void InstallXWalkJavaScriptNativeDialogFactory();
9 |
10 | #endif // XWALK_RUNTIME_BROWSER_UI_XWALK_JAVASCRIPT_NATIVE_DIALOG_FACTORY_H_
11 |
12 |
--------------------------------------------------------------------------------
/extensions/test/win/invalid_extension_12/XWalkExtensionInstance.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2013 Intel Corporation. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | using System;
6 |
7 | namespace xwalk
8 | {
9 | public class XWalkExtensionInstance
10 | {
11 | public XWalkExtensionInstance(dynamic native) {
12 | }
13 |
14 | public void HandleMessage(int message) {
15 | }
16 |
17 | public void HandleSyncMessage(String message) {
18 | }
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/extensions/test/data/inner_outer.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/runtime/android/core/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/test/android/data/fullscreen_enter_exit.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
12 |
13 |
14 |
15 | Launch Fullscreen
16 | Exit Fullscreen
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/test/android/data/geolocation.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | This feature is to test geolocation.
4 |
18 |
19 |
--------------------------------------------------------------------------------
/runtime/browser/android/xwalk_view_delegate.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2014 Intel Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | #ifndef XWALK_RUNTIME_BROWSER_ANDROID_XWALK_VIEW_DELEGATE_H_
6 | #define XWALK_RUNTIME_BROWSER_ANDROID_XWALK_VIEW_DELEGATE_H_
7 |
8 | #include
9 |
10 | namespace xwalk {
11 |
12 | bool RegisterXWalkViewDelegate(JNIEnv* env);
13 |
14 | } // namespace xwalk
15 |
16 | #endif // XWALK_RUNTIME_BROWSER_ANDROID_XWALK_VIEW_DELEGATE_H_
17 |
--------------------------------------------------------------------------------
/runtime/common/xwalk_system_locale.cc:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2014 Intel Corporation. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | #include "xwalk/runtime/common/xwalk_system_locale.h"
6 |
7 | namespace xwalk {
8 | namespace {
9 | const char kDefaultLocale[] = "en-US";
10 | } // namespace
11 |
12 | std::string GetSystemLocale() {
13 | return kDefaultLocale;
14 | }
15 |
16 | const char kIntlAcceptLanguage[] = "intl.accept_languages";
17 |
18 | } // namespace xwalk
19 |
--------------------------------------------------------------------------------
/extensions/test/data/namespace_read_only_with_entrypoint.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/runtime/android/core_internal/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/runtime/common/xwalk_system_locale.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2014 Intel Corporation. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | #ifndef XWALK_RUNTIME_COMMON_XWALK_SYSTEM_LOCALE_H_
6 | #define XWALK_RUNTIME_COMMON_XWALK_SYSTEM_LOCALE_H_
7 |
8 | #include
9 |
10 | namespace xwalk {
11 |
12 | std::string GetSystemLocale();
13 |
14 | extern const char kIntlAcceptLanguage[];
15 |
16 | } // namespace xwalk
17 |
18 | #endif // XWALK_RUNTIME_COMMON_XWALK_SYSTEM_LOCALE_H_
19 |
--------------------------------------------------------------------------------
/runtime/android/maven/xwalk_shared_library.pom.xml.in:
--------------------------------------------------------------------------------
1 |
2 |
5 |
7 | 4.0.0
8 | org.xwalk
9 | @ARTIFACT_ID@
10 | @ARTIFACT_VERSION@
11 | aar
12 |
13 |
--------------------------------------------------------------------------------
/runtime/browser/ui/color_chooser_mac.cc:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2013 Intel Corporation. All rights reserved.
2 | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 | // Use of this source code is governed by a BSD-style license that can be
4 | // found in the LICENSE file.
5 |
6 | #include "xwalk/runtime/browser/ui/color_chooser.h"
7 |
8 | namespace xwalk {
9 |
10 | content::ColorChooser* ShowColorChooser(content::WebContents* web_contents,
11 | SkColor initial_color) {
12 | return 0;
13 | }
14 |
15 | } // namespace xwalk
16 |
--------------------------------------------------------------------------------
/runtime/browser/ui/color_chooser_android.cc:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2013 Intel Corporation. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | #include "base/logging.h"
6 | #include "xwalk/runtime/browser/ui/color_chooser.h"
7 |
8 | namespace xwalk {
9 |
10 | content::ColorChooser* ShowColorChooser(content::WebContents* web_contents,
11 | SkColor initial_color) {
12 | NOTIMPLEMENTED();
13 | return NULL;
14 | }
15 |
16 |
17 | } // namespace xwalk
18 |
19 |
--------------------------------------------------------------------------------
/runtime/app/xwalk_content_main.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | #ifndef XWALK_RUNTIME_APP_XWALK_CONTENT_MAIN_H_
6 | #define XWALK_RUNTIME_APP_XWALK_CONTENT_MAIN_H_
7 |
8 | #if defined(OS_MACOSX)
9 | extern "C" {
10 | __attribute__((visibility("default")))
11 | int ContentMain(int argc,
12 | const char** argv);
13 | } // extern "C"
14 | #endif // OS_MACOSX
15 |
16 | #endif // XWALK_RUNTIME_APP_XWALK_CONTENT_MAIN_H_
17 |
--------------------------------------------------------------------------------
/test/android/data/create_window_1.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Create Window 1
6 |
9 |
10 |
11 | Create window by click button
12 |
13 |
14 |
--------------------------------------------------------------------------------
/extensions/test/data/setter_callback_entry_point.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/runtime/android/sample/assets/create_window_1.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Create Window 1
6 |
9 |
10 |
11 | Create window by click button
12 |
13 |
14 |
--------------------------------------------------------------------------------
/runtime/app/android/xwalk_jni_registrar.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | #ifndef XWALK_RUNTIME_APP_ANDROID_XWALK_JNI_REGISTRAR_H_
6 | #define XWALK_RUNTIME_APP_ANDROID_XWALK_JNI_REGISTRAR_H_
7 |
8 | #include
9 |
10 | namespace xwalk {
11 |
12 | // Register all JNI bindings necessary for xwalk.
13 | bool RegisterJni(JNIEnv* env);
14 |
15 | } // namespace xwalk
16 |
17 | #endif // XWALK_RUNTIME_APP_ANDROID_XWALK_JNI_REGISTRAR_H_
18 |
--------------------------------------------------------------------------------
/app/android/runtime_client/src/templates/XWalkRuntimeClientVersion.template:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2013 Intel Corporation. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | package org.xwalk.app.runtime;
6 |
7 | interface XWalkRuntimeClientVersion {
8 | // The version will be generated by a script. Be careful to change the string.
9 | // See build/android/generate_runtime_client_version.py for details.
10 | public static final String XWALK_RUNTIME_CLIENT_VERSION = "TO_BE_REPLACED_BY_PYTHON_SCRIPT";
11 | }
12 |
--------------------------------------------------------------------------------
/runtime/android/sample/res/layout/container.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/app/android/app_template/res/drawable/launchscreen_bg.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
9 |
10 |
11 |
12 | -
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/test/android/data/www/cross_origin.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | Original Title
4 |
17 |
18 |
19 | Test Page for Cross-Origin XHR.
20 |
21 |
22 |
--------------------------------------------------------------------------------
/app/android/app_template/res/values-v14/theme.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
9 |
10 |
11 | #FFFFFFFF
12 |
16 |
17 |
--------------------------------------------------------------------------------
/extensions/extension_process/xwalk_extension_process_main.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2013 Intel Corporation. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | #ifndef XWALK_EXTENSIONS_EXTENSION_PROCESS_XWALK_EXTENSION_PROCESS_MAIN_H_
6 | #define XWALK_EXTENSIONS_EXTENSION_PROCESS_XWALK_EXTENSION_PROCESS_MAIN_H_
7 |
8 | #include "content/public/common/main_function_params.h"
9 |
10 | int XWalkExtensionProcessMain(const content::MainFunctionParams& parameters);
11 |
12 | #endif // XWALK_EXTENSIONS_EXTENSION_PROCESS_XWALK_EXTENSION_PROCESS_MAIN_H_
13 |
14 |
--------------------------------------------------------------------------------
/runtime/browser/image_util.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2013 Intel Corporation. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | #ifndef XWALK_RUNTIME_BROWSER_IMAGE_UTIL_H_
6 | #define XWALK_RUNTIME_BROWSER_IMAGE_UTIL_H_
7 |
8 | #include "base/files/file_path.h"
9 | #include "ui/gfx/image/image.h"
10 |
11 | namespace xwalk_utils {
12 |
13 | // Load a gfx::Image from a PNG file or ICO file.
14 | gfx::Image LoadImageFromFilePath(const base::FilePath& filename);
15 |
16 | } // namespace xwalk_utils
17 |
18 | #endif // XWALK_RUNTIME_BROWSER_IMAGE_UTIL_H_
19 |
--------------------------------------------------------------------------------
/test/data/webrtc/getusermedia.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | getUserMedia Test
5 |
6 |
7 |
8 |
9 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | *.Makefile
2 | *.gypcmd
3 | *.mk
4 | *.ncb
5 | *.ninja
6 | *.opensdf
7 | *.props
8 | *.pyc
9 | *.rules
10 | *.sdf
11 | *.sln
12 | *.suo
13 | *.targets
14 | *.user
15 | *.vcproj
16 | *.vcxproj
17 | *.vcxproj.filters
18 | *.vpj
19 | *.vpw
20 | *.vpwhistu
21 | *.vtg
22 | *.xcodeproj
23 | *_proto.xml
24 | *_proto_cpp.xml
25 | *~
26 | !Android.mk
27 | .*.sw?
28 | .classpath
29 | .cproject
30 | .gdb_history
31 | .gdbinit
32 | .metadata
33 | .project
34 | .pydevproject
35 | # Settings directory for eclipse
36 | .settings
37 | project.properties
38 | tags
39 | Thumbs.db
40 | cscope.*
41 | Session.vim
42 | UPSTREAM.blink
43 | /buildtools
44 | raw/
45 |
--------------------------------------------------------------------------------
/runtime/android/core_shell/res/layout/fragment_main.xml:
--------------------------------------------------------------------------------
1 |
6 |
7 |
10 |
11 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/runtime/android/templates/XWalkAppVersion.template:
--------------------------------------------------------------------------------
1 | package org.xwalk.core;
2 |
3 | class XWalkAppVersion {
4 | public static final int API_VERSION = ${API_VERSION};
5 | public static final String XWALK_BUILD_VERSION = "${XWALK_BUILD_VERSION}";
6 | public static final boolean VERIFY_XWALK_APK = ${VERIFY_XWALK_APK};
7 | // This is the hash of the "xwalk_cert" signing key and the algorithm with which the hash is generated
8 | public static final String XWALK_APK_HASH_ALGORITHM = "SHA-256";
9 | public static final String XWALK_APK_HASH_CODE =
10 | "6fd3002c5ca9a1f55ed51e92233ed4626120c266efea9d9746058c995ece68c4";
11 | }
12 |
--------------------------------------------------------------------------------
/test/base/xwalk_test_suite.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2013 Intel Corporation. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | #ifndef XWALK_TEST_BASE_XWALK_TEST_SUITE_H_
6 | #define XWALK_TEST_BASE_XWALK_TEST_SUITE_H_
7 |
8 | #include "content/public/test/content_test_suite_base.h"
9 |
10 | class XWalkTestSuite : public content::ContentTestSuiteBase {
11 | public:
12 | XWalkTestSuite(int argc, char** argv);
13 | ~XWalkTestSuite() override;
14 |
15 | protected:
16 | void Initialize() override;
17 | };
18 |
19 | #endif // XWALK_TEST_BASE_XWALK_TEST_SUITE_H_
20 |
--------------------------------------------------------------------------------
/extensions/common/xwalk_extension_vector.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2013 Intel Corporation. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | #ifndef XWALK_EXTENSIONS_COMMON_XWALK_EXTENSION_VECTOR_H_
6 | #define XWALK_EXTENSIONS_COMMON_XWALK_EXTENSION_VECTOR_H_
7 |
8 | #include
9 |
10 | namespace xwalk {
11 | namespace extensions {
12 |
13 | class XWalkExtension;
14 |
15 | typedef std::vector XWalkExtensionVector;
16 |
17 | } // namespace extensions
18 | } // namespace xwalk
19 |
20 | #endif // XWALK_EXTENSIONS_COMMON_XWALK_EXTENSION_VECTOR_H_
21 |
--------------------------------------------------------------------------------
/runtime/android/runtime_lib/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
9 |
11 |
12 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/extensions/test/data/blank_iframes.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | Test
4 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/runtime/browser/android/cookie_manager.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | #ifndef XWALK_RUNTIME_BROWSER_ANDROID_COOKIE_MANAGER_H_
6 | #define XWALK_RUNTIME_BROWSER_ANDROID_COOKIE_MANAGER_H_
7 |
8 | #include
9 |
10 | namespace net {
11 | class CookieStore;
12 | } // namespace net
13 |
14 | namespace xwalk {
15 |
16 | net::CookieStore* GetCookieStore();
17 |
18 | bool RegisterCookieManager(JNIEnv* env);
19 |
20 | } // namespace xwalk
21 |
22 | #endif // XWALK_RUNTIME_BROWSER_ANDROID_COOKIE_MANAGER_H_
23 |
--------------------------------------------------------------------------------
/runtime/browser/ui/native_app_window.cc:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2013 Intel Corporation. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | #include "xwalk/runtime/browser/ui/native_app_window.h"
6 |
7 | namespace xwalk {
8 |
9 | NativeAppWindow::CreateParams::CreateParams()
10 | : delegate(NULL),
11 | web_contents(NULL),
12 | state(ui::SHOW_STATE_NORMAL),
13 | resizable(true),
14 | parent(NULL),
15 | display_mode(blink::WebDisplayModeUndefined) {
16 | }
17 |
18 | NativeAppWindow::CreateParams::~CreateParams() {
19 | }
20 |
21 | } // namespace xwalk
22 |
23 |
--------------------------------------------------------------------------------
/test/android/data/echo_sync_java.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/extensions/test/win/echo_extension/XWalkExtensionInstance.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2013 Intel Corporation. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | using System;
6 |
7 | namespace xwalk
8 | {
9 | public class XWalkExtensionInstance
10 | {
11 | public XWalkExtensionInstance(dynamic native) {
12 | native_ = native;
13 | }
14 |
15 | public void HandleMessage(String message) {
16 | native_.PostMessageToJS(message);
17 | }
18 | public void HandleSyncMessage(String message) {
19 | native_.SendSyncReply(message);
20 | }
21 | private dynamic native_;
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/extensions/test/win/echo_extension1/XWalkExtensionInstance.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2013 Intel Corporation. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | using System;
6 |
7 | namespace xwalk
8 | {
9 | public class XWalkExtensionInstance
10 | {
11 | public XWalkExtensionInstance(dynamic native) {
12 | native_ = native;
13 | }
14 |
15 | public void HandleMessage(String message) {
16 | native_.PostMessageToJS(message);
17 | }
18 | public void HandleSyncMessage(String message) {
19 | native_.SendSyncReply(message);
20 | }
21 | private dynamic native_;
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/extensions/test/win/echo_extension2/XWalkExtensionInstance.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2013 Intel Corporation. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | using System;
6 |
7 | namespace xwalk
8 | {
9 | public class XWalkExtensionInstance
10 | {
11 | public XWalkExtensionInstance(dynamic native) {
12 | native_ = native;
13 | }
14 |
15 | public void HandleMessage(String message) {
16 | native_.PostMessageToJS(message);
17 | }
18 | public void HandleSyncMessage(String message) {
19 | native_.SendSyncReply(message);
20 | }
21 | private dynamic native_;
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/runtime/browser/runtime_select_file_policy.cc:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2013 Intel Corporation. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | #include "xwalk/runtime/browser/runtime_select_file_policy.h"
6 |
7 | RuntimeSelectFilePolicy::RuntimeSelectFilePolicy() {}
8 | RuntimeSelectFilePolicy::~RuntimeSelectFilePolicy() {}
9 |
10 | bool RuntimeSelectFilePolicy::CanOpenSelectFileDialog() {
11 | // TODO(wang16): Implement CanOpenSelectFileDialog
12 | return true;
13 | }
14 |
15 | void RuntimeSelectFilePolicy::SelectFileDenied() {
16 | // TODO(wang16): Implement SelectFileDenied
17 | }
18 |
--------------------------------------------------------------------------------
/runtime/common/url_constants.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2015 Intel Corporation. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | #ifndef XWALK_RUNTIME_COMMON_URL_CONSTANTS_H_
6 | #define XWALK_RUNTIME_COMMON_URL_CONSTANTS_H_
7 |
8 | #include "content/public/common/url_constants.h"
9 |
10 | // Contains constants for known URLs and portions thereof.
11 |
12 | namespace xwalk {
13 |
14 | CONTENT_EXPORT extern const char kChromeUIFilePickerHost[];
15 | CONTENT_EXPORT extern const char kChromeUIFilePickerURL[];
16 |
17 | } // namespace xwalk
18 |
19 | #endif // XWALK_RUNTIME_COMMON_URL_CONSTANTS_H_
20 |
--------------------------------------------------------------------------------
/runtime/android/core_internal_empty/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
9 |
11 |
12 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/application/test/data/api/test.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
25 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/test/android/data/echo_java.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/extensions/android/java/src/org/xwalk/core/internal/extensions/XWalkNativeExtensionLoaderAndroid.java:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2015 Intel Corporation. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | package org.xwalk.core.internal.extensions;
6 |
7 | import org.chromium.base.annotations.JNINamespace;
8 |
9 | @JNINamespace("xwalk::extensions")
10 | public abstract class XWalkNativeExtensionLoaderAndroid {
11 | public void registerNativeExtensionsInPath(String path) {
12 | nativeRegisterExtensionInPath(path);
13 | }
14 |
15 | private static native void nativeRegisterExtensionInPath(String path);
16 | }
17 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | ## Introduction
2 |
3 | Crosswalk is an app runtime based on Chromium/Blink.
4 |
5 | It is an open source project started by the Intel Open Source Technology Center
6 | (http://www.01.org)
7 |
8 | ## Documents
9 |
10 | Check out our [wiki](http://crosswalk-project.org/#wiki).
11 |
12 | ## Community
13 |
14 | How to use Crosswalk you can ask on the mailing list: https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help
15 |
16 | Development of Crosswalk: https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-dev
17 |
18 | We are also on IRC: `#crosswalk` @ `chat.freenode.net`
19 |
20 | ## License
21 |
22 | Crosswalk's code uses the 3-clause BSD license, see our `LICENSE` file.
23 |
--------------------------------------------------------------------------------
/extensions/common/android/xwalk_native_extension_loader_android.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2015 Intel Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | #ifndef XWALK_EXTENSIONS_COMMON_ANDROID_XWALK_NATIVE_EXTENSION_LOADER_ANDROID_H_
6 | #define XWALK_EXTENSIONS_COMMON_ANDROID_XWALK_NATIVE_EXTENSION_LOADER_ANDROID_H_
7 |
8 | #include
9 |
10 | namespace xwalk {
11 | namespace extensions {
12 |
13 | bool RegisterXWalkNativeExtensionLoaderAndroid(JNIEnv* env);
14 |
15 | } // namespace extensions
16 | } // namespace xwalk
17 |
18 | #endif // XWALK_EXTENSIONS_COMMON_ANDROID_XWALK_NATIVE_EXTENSION_LOADER_ANDROID_H_
19 |
--------------------------------------------------------------------------------
/runtime/android/core/src/org/xwalk/core/extension/XWalkExternalExtensionBridgeFactory.java:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2013 Intel Corporation. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | package org.xwalk.core.extension;
6 |
7 | /**
8 | * A factory used to create the extension bridge.
9 | */
10 | final class XWalkExternalExtensionBridgeFactory {
11 | /**
12 | * Return a XWalkExtensionBridge instance for the given extension.
13 | */
14 | public static XWalkExternalExtensionBridge createInstance(XWalkExternalExtension extension) {
15 | return new XWalkCoreExtensionBridge(extension);
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/runtime/common/paths_mac.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | #ifndef XWALK_RUNTIME_COMMON_PATHS_MAC_H_
6 | #define XWALK_RUNTIME_COMMON_PATHS_MAC_H_
7 |
8 | #include "base/files/file_path.h"
9 |
10 | // Sets up base::mac::FrameworkBundle.
11 | void OverrideFrameworkBundlePath();
12 |
13 | // Sets up the CHILD_PROCESS_EXE path to properly point to the helper app.
14 | void OverrideChildProcessPath();
15 |
16 | // Gets the path to the content shell's pak file.
17 | base::FilePath GetResourcesPakFilePath();
18 |
19 | #endif // XWALK_RUNTIME_COMMON_PATHS_MAC_H_
20 |
--------------------------------------------------------------------------------
/runtime/android/core_internal/src/org/xwalk/core/internal/XWalkSwitches.java:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2014 Intel Corporation. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | package org.xwalk.core.internal;
6 |
7 | /**
8 | * Contains all of the command line switches for crosswalk
9 | */
10 | public abstract class XWalkSwitches {
11 | // Native switch - xwalk_switches::kXWalkProfileName
12 | public static final String PROFILE_NAME = "profile-name";
13 |
14 | public static final String DISABLE_GPU_RASTERIZATION = "disable-gpu-rasterization";
15 |
16 | // Prevent instantiation.
17 | private XWalkSwitches() {}
18 | }
19 |
--------------------------------------------------------------------------------
/extensions/renderer/xwalk_v8_utils.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2013 Intel Corporation. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | #ifndef XWALK_EXTENSIONS_RENDERER_XWALK_V8_UTILS_H_
6 | #define XWALK_EXTENSIONS_RENDERER_XWALK_V8_UTILS_H_
7 |
8 | #include
9 |
10 | namespace v8 {
11 |
12 | class TryCatch;
13 |
14 | }
15 |
16 | namespace xwalk {
17 | namespace extensions {
18 |
19 | // Helper function that makes v8 exceptions human readable.
20 | std::string ExceptionToString(const v8::TryCatch& try_catch);
21 |
22 | } // namespace extensions
23 | } // namespace xwalk
24 |
25 | #endif // XWALK_EXTENSIONS_RENDERER_XWALK_V8_UTILS_H_
26 |
--------------------------------------------------------------------------------
/runtime/browser/xwalk_application_mac.mm:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | #include "xwalk/runtime/browser/xwalk_application_mac.h"
6 |
7 | #include "base/auto_reset.h"
8 | #include "url/gurl.h"
9 |
10 | @implementation XWalkCrApplication
11 |
12 | - (BOOL)isHandlingSendEvent {
13 | return handlingSendEvent_;
14 | }
15 |
16 | - (void)sendEvent:(NSEvent*)event {
17 | base::AutoReset scoper(&handlingSendEvent_, YES);
18 | [super sendEvent:event];
19 | }
20 |
21 | - (void)setHandlingSendEvent:(BOOL)handlingSendEvent {
22 | handlingSendEvent_ = handlingSendEvent;
23 | }
24 |
25 | @end
26 |
--------------------------------------------------------------------------------
/runtime/browser/android/net/url_constants.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | // Contains constants for known URLs and portions thereof.
6 |
7 | #ifndef XWALK_RUNTIME_BROWSER_ANDROID_NET_URL_CONSTANTS_H_
8 | #define XWALK_RUNTIME_BROWSER_ANDROID_NET_URL_CONSTANTS_H_
9 |
10 | namespace xwalk {
11 |
12 | extern const char kAppScheme[];
13 | extern const char kContentScheme[];
14 | // Special Android file paths.
15 | extern const char kAndroidAssetPath[];
16 | extern const char kAndroidResourcePath[];
17 |
18 | } // namespace xwalk
19 |
20 | #endif // XWALK_RUNTIME_BROWSER_ANDROID_NET_URL_CONSTANTS_H_
21 |
--------------------------------------------------------------------------------
/runtime/resources/resource.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2013 Intel Corporation. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | //{{NO_DEPENDENCIES}}
6 | // Microsoft Visual C++ generated include file.
7 | // Used by xwalk.rc
8 | //
9 |
10 | #define IDR_MAINFRAME 102
11 |
12 | // Next default values for new objects
13 | //
14 | #ifdef APSTUDIO_INVOKED
15 | #ifndef APSTUDIO_READONLY_SYMBOLS
16 | #define _APS_NO_MFC 1
17 | #define _APS_NEXT_RESOURCE_VALUE 2000
18 | #define _APS_NEXT_COMMAND_VALUE 32768
19 | #define _APS_NEXT_CONTROL_VALUE 3000
20 | #define _APS_NEXT_SYMED_VALUE 1000
21 | #endif
22 | #endif
23 |
--------------------------------------------------------------------------------
/experimental/native_file_system/native_file_system.idl:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 Intel Corporation. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | // Native FileSystem API.
6 | // This does not correspond to any spec (or even the JS API we export in
7 | // native_file_system_api.js). This IDL is used to make it easier to parse
8 | // messages sent to the extension and prepare responses to the JavaScript side.
9 | namespace native_file_system {
10 | callback RequestCallback = void (DOMString filesystem_id, DOMString error);
11 |
12 | interface Functions {
13 | static void requestNativeFileSystem(DOMString path, RequestCallback callback);
14 | };
15 | };
16 |
--------------------------------------------------------------------------------
/runtime/android/core_internal/src/org/xwalk/core/internal/XWalkAPI.java:
--------------------------------------------------------------------------------
1 | package org.xwalk.core.internal;
2 |
3 | public @interface XWalkAPI {
4 | Class> impl() default Object.class;
5 | Class> instance() default Object.class;
6 | boolean createInternally() default false;
7 | boolean createExternally() default false;
8 | boolean reservable() default false;
9 | boolean noInstance() default false;
10 | boolean isConst() default false;
11 | boolean delegate() default false;
12 | boolean disableReflectMethod() default false;
13 | Class> extendClass() default Object.class;
14 | String[] preWrapperLines() default {};
15 | String[] postWrapperLines() default {};
16 | String[] postBridgeLines() default {};
17 | }
18 |
--------------------------------------------------------------------------------
/test/android/data/screen_orientation.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
27 | Screen Orientation API Test.
28 |
29 |
30 |
--------------------------------------------------------------------------------
/test/android/util/src/org/xwalk/test/util/OnTitleUpdatedHelper.java:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 | // Copyright (c) 2013 Intel Corporation. All rights reserved.
3 | // Use of this source code is governed by a BSD-style license that can be
4 | // found in the LICENSE file.
5 |
6 | package org.xwalk.test.util;
7 |
8 | import org.chromium.content.browser.test.util.CallbackHelper;
9 |
10 | public class OnTitleUpdatedHelper extends CallbackHelper {
11 | private String mTitle;
12 |
13 | public void notifyCalled(String title) {
14 | mTitle = title;
15 | notifyCalled();
16 | }
17 |
18 | public String getTitle() {
19 | assert getCallCount() > 0;
20 | return mTitle;
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/sysapps/sysapps_resources.grd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/extensions/test/data/cross_contexts_reference.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | Fail
4 |
5 |
6 | Reference to subframes' extension entry points should not crash!
7 | FS API:
8 |
9 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/runtime/android/core_internal/src/org/xwalk/core/internal/XWalkNotificationService.java:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2014 Intel Corporation. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | package org.xwalk.core.internal;
6 |
7 | import android.content.Intent;
8 | import android.graphics.Bitmap;
9 |
10 | interface XWalkNotificationService {
11 | public void setBridge(XWalkContentsClientBridge bridge);
12 | public void showNotification(
13 | String title, String message, String replaceId, Bitmap icon, int notificationId);
14 | public void cancelNotification(int notificationId);
15 | public void shutdown();
16 | public boolean maybeHandleIntent(Intent intent);
17 | }
18 |
--------------------------------------------------------------------------------
/runtime/android/sample/src/org/xwalk/core/sample/XWalkViewWithLayoutActivity.java:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2014 Intel Corporation. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | package org.xwalk.core.sample;
6 |
7 | import org.xwalk.core.XWalkView;
8 |
9 | import android.os.Bundle;
10 |
11 | public class XWalkViewWithLayoutActivity extends XWalkBaseActivity {
12 |
13 | @Override
14 | protected void onCreate(Bundle savedInstanceState) {
15 | super.onCreate(savedInstanceState);
16 | setContentView(R.layout.xwview_layout);
17 | mXWalkView = (XWalkView) findViewById(R.id.xwalkview);
18 | mXWalkView.load("http://www.baidu.com/", null);
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/test/android/core/javatests/src/org/xwalk/core/xwview/test/OnTitleUpdatedHelper.java:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 | // Copyright (c) 2013 Intel Corporation. All rights reserved.
3 | // Use of this source code is governed by a BSD-style license that can be
4 | // found in the LICENSE file.
5 |
6 | package org.xwalk.core.xwview.test;
7 |
8 | import org.chromium.content.browser.test.util.CallbackHelper;
9 |
10 | public class OnTitleUpdatedHelper extends CallbackHelper {
11 | private String mTitle;
12 |
13 | public void notifyCalled(String title) {
14 | mTitle = title;
15 | notifyCalled();
16 | }
17 |
18 | public String getTitle() {
19 | assert getCallCount() > 0;
20 | return mTitle;
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/runtime/android/core_internal/src/org/xwalk/core/internal/XWalkNativeExtensionLoaderInternal.java:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2015 Intel Corporation. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | package org.xwalk.core.internal;
6 |
7 | import org.xwalk.core.internal.extensions.XWalkNativeExtensionLoaderAndroid;
8 |
9 | @XWalkAPI
10 | public class XWalkNativeExtensionLoaderInternal extends XWalkNativeExtensionLoaderAndroid {
11 | /**
12 | * register path of native extensions.
13 | * @param path the path of the extension.
14 | */
15 | @XWalkAPI
16 | public void registerNativeExtensionsInPath(String path) {
17 | super.registerNativeExtensionsInPath(path);
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/runtime/browser/android/xwalk_view_delegate.cc:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2014 Intel Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | #include "xwalk/runtime/browser/android/xwalk_view_delegate.h"
6 |
7 | #include "base/android/jni_android.h"
8 | #include "build/build_config.h"
9 | #include "jni/XWalkViewDelegate_jni.h"
10 |
11 | namespace xwalk {
12 |
13 | jboolean IsLibraryBuiltForIA(JNIEnv* env, const JavaParamRef& jcaller) {
14 | #if defined(ARCH_CPU_X86) || defined(ARCH_CPU_X86_64)
15 | return JNI_TRUE;
16 | #else
17 | return JNI_FALSE;
18 | #endif
19 | }
20 |
21 | bool RegisterXWalkViewDelegate(JNIEnv* env) {
22 | return RegisterNativesImpl(env);
23 | }
24 |
25 | } // namespace xwalk
26 |
--------------------------------------------------------------------------------
/sysapps/raw_socket/raw_socket_object.cc:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2013 Intel Corporation. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | #include "xwalk/sysapps/raw_socket/raw_socket_object.h"
6 |
7 | #include
8 |
9 | #include "base/values.h"
10 |
11 | namespace xwalk {
12 | namespace sysapps {
13 |
14 | RawSocketObject::RawSocketObject() {}
15 |
16 | RawSocketObject::~RawSocketObject() {}
17 |
18 | void RawSocketObject::setReadyState(ReadyState state) {
19 | std::unique_ptr eventData(new base::ListValue);
20 | eventData->AppendString(ToString(state));
21 |
22 | DispatchEvent("readystate", std::move(eventData));
23 | }
24 |
25 | } // namespace sysapps
26 | } // namespace xwalk
27 |
--------------------------------------------------------------------------------
/runtime/browser/ui/color_chooser.cc:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2013 Intel Corporation. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | #include "xwalk/runtime/browser/ui/color_chooser.h"
6 |
7 | namespace {
8 |
9 | SkColor g_browser_test_color;
10 | bool g_testing = false;
11 |
12 | } // namespace
13 |
14 | namespace xwalk {
15 |
16 | // static
17 | bool ColorChooser::IsTesting() {
18 | return g_testing;
19 | }
20 |
21 | // static
22 | SkColor ColorChooser::GetColorForBrowserTest() {
23 | return g_browser_test_color;
24 | }
25 |
26 | // static
27 | void ColorChooser::SetColorForBrowserTest(SkColor color) {
28 | g_testing = true;
29 | g_browser_test_color = color;
30 | }
31 |
32 | } // namespace xwalk
33 |
34 |
--------------------------------------------------------------------------------
/runtime/browser/wifidirect_component_win.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 Intel Corporation. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | #ifndef XWALK_RUNTIME_BROWSER_WIFIDIRECT_COMPONENT_WIN_H_
6 | #define XWALK_RUNTIME_BROWSER_WIFIDIRECT_COMPONENT_WIN_H_
7 |
8 | #include "xwalk/runtime/browser/xwalk_component.h"
9 |
10 | namespace xwalk {
11 |
12 | class WiFiDirectComponent : public XWalkComponent {
13 | private:
14 | // XWalkComponent implementation.
15 | void CreateExtensionThreadExtensions(
16 | content::RenderProcessHost* host,
17 | extensions::XWalkExtensionVector* extensions) override;
18 | };
19 |
20 | } // namespace xwalk
21 |
22 | #endif // XWALK_RUNTIME_BROWSER_WIFIDIRECT_COMPONENT_WIN_H_
23 |
--------------------------------------------------------------------------------
/test/android/core_internal/javatests/src/org/xwalk/core/internal/xwview/test/OnTitleUpdatedHelper.java:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 | // Copyright (c) 2014 Intel Corporation. All rights reserved.
3 | // Use of this source code is governed by a BSD-style license that can be
4 | // found in the LICENSE file.
5 |
6 | package org.xwalk.core.internal.xwview.test;
7 |
8 | import org.chromium.content.browser.test.util.CallbackHelper;
9 |
10 | public class OnTitleUpdatedHelper extends CallbackHelper {
11 | private String mTitle;
12 |
13 | public void notifyCalled(String title) {
14 | mTitle = title;
15 | notifyCalled();
16 | }
17 |
18 | public String getTitle() {
19 | assert getCallCount() > 0;
20 | return mTitle;
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/extensions/common/xwalk_extension_switches.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2013 Intel Corporation. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | #ifndef XWALK_EXTENSIONS_COMMON_XWALK_EXTENSION_SWITCHES_H_
6 | #define XWALK_EXTENSIONS_COMMON_XWALK_EXTENSION_SWITCHES_H_
7 |
8 | // This file contains switches that are used inside extensions/ code.
9 | namespace switches {
10 |
11 | extern const char kXWalkDisableExtensionProcess[];
12 | extern const char kXWalkExtensionProcess[];
13 | extern const char kXWalkExternalExtensionsPath[];
14 | extern const char kXWalkExtensionCmdPrefix[];
15 | extern const char kXWalkDisableExtensions[];
16 |
17 | } // namespace switches
18 |
19 | #endif // XWALK_EXTENSIONS_COMMON_XWALK_EXTENSION_SWITCHES_H_
20 |
--------------------------------------------------------------------------------
/runtime/browser/xwalk_application_mac.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | #ifndef XWALK_RUNTIME_BROWSER_XWALK_APPLICATION_MAC_H_
6 | #define XWALK_RUNTIME_BROWSER_XWALK_APPLICATION_MAC_H_
7 |
8 | #include "base/mac/scoped_sending_event.h"
9 |
10 | @interface XWalkCrApplication : NSApplication {
12 | @private
13 | BOOL handlingSendEvent_;
14 | }
15 |
16 | // CrAppProtocol:
17 | - (BOOL)isHandlingSendEvent;
18 |
19 | // CrAppControlProtocol:
20 | - (void)setHandlingSendEvent:(BOOL)handlingSendEvent;
21 |
22 | @end
23 |
24 | #endif // XWALK_RUNTIME_BROWSER_XWALK_APPLICATION_MAC_H_
25 |
--------------------------------------------------------------------------------
/gyp_xwalk.py:
--------------------------------------------------------------------------------
1 | # Copyright 2012 The Chromium Authors. All rights reserved.
2 | # Use of this source code is governed by a BSD-style license that can be
3 | # found in the LICENSE file.
4 |
5 | # This file is (possibly, depending on python version) imported by
6 | # gyp_chromium when GYP_PARALLEL=1 and it creates sub-processes
7 | # through the multiprocessing library.
8 |
9 | # Importing in Python 2.6 (fixed in 2.7) on Windows doesn't search for
10 | # imports that don't end in .py (and aren't directories with an
11 | # __init__.py). This wrapper makes "import gyp_chromium" work with
12 | # those old versions and makes it possible to execute gyp_chromium.py
13 | # directly on Windows where the extension is useful.
14 |
15 | import os
16 |
17 | path = os.path.abspath(os.path.split(__file__)[0])
18 | execfile(os.path.join(path, 'gyp_xwalk'))
19 |
--------------------------------------------------------------------------------
/runtime/common/xwalk_notification_types.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2013 Intel Corporation. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | #ifndef XWALK_RUNTIME_COMMON_XWALK_NOTIFICATION_TYPES_H_
6 | #define XWALK_RUNTIME_COMMON_XWALK_NOTIFICATION_TYPES_H_
7 |
8 | #include "build/build_config.h"
9 | #include "content/public/browser/notification_types.h"
10 |
11 | namespace xwalk {
12 |
13 | enum NotificationType {
14 | NOTIFICATION_XWALK_START = content::NOTIFICATION_CONTENT_END,
15 |
16 | // Notify that fullscreen state of a NativeAppWindow is changed.
17 | NOTIFICATION_FULLSCREEN_CHANGED = NOTIFICATION_XWALK_START,
18 |
19 | NOTIFICATION_XWALK_END,
20 | };
21 |
22 | } // namespace xwalk
23 |
24 | #endif // XWALK_RUNTIME_COMMON_XWALK_NOTIFICATION_TYPES_H_
25 |
--------------------------------------------------------------------------------
/test/base/xwalk_test_suite.cc:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2013 Intel Corporation. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | #include "xwalk/test/base/xwalk_test_suite.h"
6 |
7 | #include "xwalk/runtime/common/xwalk_content_client.h"
8 |
9 | XWalkTestSuite::XWalkTestSuite(int argc, char** argv)
10 | : content::ContentTestSuiteBase(argc, argv) {
11 | }
12 |
13 | XWalkTestSuite::~XWalkTestSuite() {}
14 |
15 | void XWalkTestSuite::Initialize() {
16 | // Initialize after overriding paths as some content paths depend on correct
17 | // values for DIR_EXE and DIR_MODULE.
18 | content::ContentTestSuiteBase::Initialize();
19 |
20 | {
21 | xwalk::XWalkContentClient client;
22 | content::ContentTestSuiteBase::RegisterContentSchemes(&client);
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/runtime/browser/xwalk_runner_win.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 Intel Corporation. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | #ifndef XWALK_RUNTIME_BROWSER_XWALK_RUNNER_WIN_H_
6 | #define XWALK_RUNTIME_BROWSER_XWALK_RUNNER_WIN_H_
7 |
8 | #include
9 |
10 | #include "xwalk/runtime/browser/xwalk_runner.h"
11 |
12 |
13 | namespace xwalk {
14 |
15 | class XWalkRunnerWin : public XWalkRunner {
16 | public:
17 | XWalkRunnerWin();
18 |
19 | protected:
20 | void CreateComponents() override;
21 | void InitializeEnvironmentVariablesForGoogleAPIs(
22 | content::RenderProcessHost* host) override;
23 |
24 | private:
25 | DISALLOW_COPY_AND_ASSIGN(XWalkRunnerWin);
26 | };
27 |
28 | } // namespace xwalk
29 |
30 | #endif // XWALK_RUNTIME_BROWSER_XWALK_RUNNER_WIN_H_
31 |
--------------------------------------------------------------------------------
/sysapps/common/common.idl:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2013 Intel Corporation. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | // This IDL is used to generate data serializer for the Sysapps
6 | // helper classes.
7 | namespace common {
8 | callback DispatchEventCallback = void (object data);
9 |
10 | interface Functions {
11 | // EventTarget Interface
12 | static void addEventListener(DOMString type, DispatchEventCallback callback);
13 | static void removeEventListener(DOMString type);
14 |
15 | // ObjectBindingStore Interface
16 | static void destroyObject(DOMString object_id);
17 | static void postMessageToObject(DOMString object_id,
18 | DOMString name,
19 | any arguments);
20 | };
21 | };
22 |
--------------------------------------------------------------------------------
/app/android/runtime_client/src/org/xwalk/app/runtime/XWalkRuntimeViewProviderFactory.java:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2013 Intel Corporation. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | package org.xwalk.app.runtime;
6 |
7 | import android.app.Activity;
8 | import android.content.Context;
9 |
10 | /**
11 | * The factory to create a XWalkRuntimeViewProvider instance according to
12 | * current setting.
13 | */
14 | final class XWalkRuntimeViewProviderFactory {
15 | static public XWalkRuntimeViewProvider getProvider(Context context, Activity activity) {
16 | // TODO(yongsheng): Do checkings here to decide which provider should
17 | // be used. The default is to use runtime core provider.
18 | return new XWalkCoreProviderImpl(context, activity);
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/runtime/renderer/pepper/pepper_helper.cc:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2014 Intel Corporation. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | #include "xwalk/runtime/renderer/pepper/pepper_helper.h"
6 |
7 | #include "content/public/renderer/renderer_ppapi_host.h"
8 | #include "ppapi/host/ppapi_host.h"
9 | #include "xwalk/runtime/renderer/pepper/xwalk_renderer_pepper_host_factory.h"
10 |
11 | PepperHelper::PepperHelper(content::RenderFrame* render_frame)
12 | : RenderFrameObserver(render_frame) {
13 | }
14 |
15 | PepperHelper::~PepperHelper() {
16 | }
17 |
18 | void PepperHelper::DidCreatePepperPlugin(content::RendererPpapiHost* host) {
19 | host->GetPpapiHost()->AddHostFactoryFilter(
20 | std::unique_ptr(
21 | new XWalkRendererPepperHostFactory(host)));
22 | }
23 |
--------------------------------------------------------------------------------
/runtime/browser/android/net_disk_cache_remover.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | #ifndef XWALK_RUNTIME_BROWSER_ANDROID_NET_DISK_CACHE_REMOVER_H_
6 | #define XWALK_RUNTIME_BROWSER_ANDROID_NET_DISK_CACHE_REMOVER_H_
7 |
8 | #include
9 |
10 | namespace content {
11 |
12 | class RenderProcessHost;
13 |
14 | } // namespace content
15 |
16 | namespace xwalk {
17 |
18 | // Clear all http disk cache for this renderer. This method is asynchronous and
19 | // will noop if a previous call has not finished.
20 | void RemoveHttpDiskCache(content::RenderProcessHost* render_process_host,
21 | const std::string& key);
22 |
23 | } // namespace xwalk
24 |
25 | #endif // XWALK_RUNTIME_BROWSER_ANDROID_NET_DISK_CACHE_REMOVER_H_
26 |
--------------------------------------------------------------------------------
/runtime/browser/storage_component.cc:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2014 Intel Corporation. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | #include "xwalk/runtime/browser/storage_component.h"
6 |
7 | #include "xwalk/runtime/common/xwalk_runtime_features.h"
8 |
9 | namespace xwalk {
10 |
11 | StorageComponent::StorageComponent()
12 | : native_file_system_extension_(0) {
13 | }
14 |
15 | StorageComponent::~StorageComponent() {
16 | if (native_file_system_extension_) {
17 | delete native_file_system_extension_;
18 | }
19 | }
20 |
21 | void StorageComponent::CreateExtensionThreadExtensions(
22 | content::RenderProcessHost* host,
23 | extensions::XWalkExtensionVector* extensions) {
24 | extensions->push_back(new experimental::NativeFileSystemExtension(host));
25 | }
26 |
27 | } // namespace xwalk
28 |
--------------------------------------------------------------------------------
/application/test/data/testapi/main.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
40 |
41 |
42 |
43 |
--------------------------------------------------------------------------------
/runtime/browser/runtime_quota_permission_context.cc:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | #include "xwalk/runtime/browser/runtime_quota_permission_context.h"
6 |
7 | #include "storage/common/quota/quota_types.h"
8 |
9 | namespace xwalk {
10 |
11 | RuntimeQuotaPermissionContext::RuntimeQuotaPermissionContext() {}
12 |
13 | void RuntimeQuotaPermissionContext::RequestQuotaPermission(
14 | const content::StorageQuotaParams& params,
15 | int render_process_id,
16 | const PermissionCallback& callback) {
17 | // TODO(wang16): Handle request according to app's manifest declaration.
18 | callback.Run(QUOTA_PERMISSION_RESPONSE_ALLOW);
19 | }
20 |
21 | RuntimeQuotaPermissionContext::~RuntimeQuotaPermissionContext() {}
22 |
23 | } // namespace xwalk
24 |
--------------------------------------------------------------------------------
/runtime/android/sample/src/org/xwalk/core/sample/ExtensionActivity.java:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2014 Intel Corporation. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | package org.xwalk.core.sample;
6 |
7 | import org.xwalk.core.sample.ExtensionEcho;
8 | import org.xwalk.core.XWalkView;
9 |
10 | import android.os.Bundle;
11 |
12 | public class ExtensionActivity extends XWalkBaseActivity {
13 | private ExtensionEcho mExtension;
14 |
15 | @Override
16 | protected void onCreate(Bundle savedInstanceState) {
17 | super.onCreate(savedInstanceState);
18 | setContentView(R.layout.xwview_layout);
19 | mXWalkView = (XWalkView) findViewById(R.id.xwalkview);
20 | mExtension = new ExtensionEcho();
21 |
22 | mXWalkView.load("file:///android_asset/echo_java.html", null);
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/sysapps/raw_socket/tcp_server_socket.idl:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2013 Intel Corporation. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | // RawSocket API - TCPServerSocket
6 | namespace tcp_server_socket {
7 | dictionary TCPServerOptions {
8 | DOMString localAddress;
9 | long localPort;
10 | boolean addressReuse;
11 | boolean useSecureTransport;
12 | };
13 |
14 | interface Events {
15 | static void onopen();
16 | static void onconnect();
17 | static void onerror();
18 | static void oncnnecterror();
19 | };
20 |
21 | interface Functions {
22 | static void close();
23 | static void halfclose();
24 | static void suspend();
25 | static void resume();
26 |
27 | [nodoc] static void init(TCPServerOptions options);
28 | [nodoc] static void destroy();
29 | };
30 | };
31 |
--------------------------------------------------------------------------------
/test/android/data/find.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Find
6 |
12 |
13 |
14 | Find Allbutton
15 | Find Nextbutton
16 | Find Previousbutton
17 | Clear Matchesbutton
18 |
19 |
20 |
--------------------------------------------------------------------------------
/application/browser/application_protocols.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | #ifndef XWALK_APPLICATION_BROWSER_APPLICATION_PROTOCOLS_H_
6 | #define XWALK_APPLICATION_BROWSER_APPLICATION_PROTOCOLS_H_
7 |
8 | #include "base/memory/linked_ptr.h"
9 | #include "net/url_request/url_request_job_factory.h"
10 | #include "xwalk/application/browser/application_system.h"
11 |
12 | namespace xwalk {
13 | namespace application {
14 |
15 | class ApplicationService;
16 |
17 | // Creates the handlers for the app:// scheme.
18 | linked_ptr
19 | CreateApplicationProtocolHandler(ApplicationService* service);
20 |
21 | } // namespace application
22 | } // namespace xwalk
23 |
24 | #endif // XWALK_APPLICATION_BROWSER_APPLICATION_PROTOCOLS_H_
25 |
--------------------------------------------------------------------------------
/runtime/browser/runtime_platform_util_aura.cc:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | #include "xwalk/runtime/browser/runtime_platform_util.h"
6 |
7 | #include "base/logging.h"
8 | #include "ui/aura/window.h"
9 |
10 | namespace platform_util {
11 |
12 | gfx::NativeWindow GetTopLevel(gfx::NativeView view) {
13 | return view->GetToplevelWindow();
14 | }
15 |
16 | gfx::NativeView GetParent(gfx::NativeView view) {
17 | return view->parent();
18 | }
19 |
20 | bool IsWindowActive(gfx::NativeWindow window) {
21 | NOTIMPLEMENTED();
22 | return false;
23 | }
24 |
25 | void ActivateWindow(gfx::NativeWindow window) {
26 | NOTIMPLEMENTED();
27 | }
28 |
29 | bool IsVisible(gfx::NativeView view) {
30 | return view->IsVisible();
31 | }
32 |
33 | } // namespace platform_util
34 |
--------------------------------------------------------------------------------
/runtime/browser/ui/linux_webui/linux_webui.cc:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2014 The Chromium Authors. All rights reserved.
2 | // Copyright (c) 2015 Intel Corporation. All rights reserved.
3 | // Use of this source code is governed by a BSD-style license that can be
4 | // found in the LICENSE file.
5 |
6 | #include "xwalk/runtime/browser/ui/linux_webui/linux_webui.h"
7 |
8 | #include "xwalk/runtime/browser/ui/linux_webui/select_file_dialog_impl_webui.h"
9 |
10 | namespace views {
11 |
12 | LinuxWebUI::LinuxWebUI() {
13 | }
14 |
15 | LinuxWebUI::~LinuxWebUI() {
16 | }
17 |
18 | ui::SelectFileDialog* LinuxWebUI::CreateSelectFileDialog(
19 | ui::SelectFileDialog::Listener* listener,
20 | ui::SelectFilePolicy* policy) const {
21 | return ui::SelectFileDialogImplWebUI::Create(listener, policy);
22 | }
23 |
24 | } // namespace views
25 |
26 | ui::LinuxShellDialog* BuildWebUI() {
27 | return new views::LinuxWebUI;
28 | }
29 |
--------------------------------------------------------------------------------
/runtime/browser/xwalk_browser_main_parts_mac.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2013 Intel Corporation. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | #ifndef XWALK_RUNTIME_BROWSER_XWALK_BROWSER_MAIN_PARTS_MAC_H_
6 | #define XWALK_RUNTIME_BROWSER_XWALK_BROWSER_MAIN_PARTS_MAC_H_
7 |
8 | #include "xwalk/runtime/browser/xwalk_browser_main_parts.h"
9 |
10 | namespace xwalk {
11 |
12 | class XWalkBrowserMainPartsMac : public XWalkBrowserMainParts {
13 | public:
14 | explicit XWalkBrowserMainPartsMac(
15 | const content::MainFunctionParams& parameters);
16 | ~XWalkBrowserMainPartsMac() override {}
17 |
18 | void PreMainMessageLoopStart() override;
19 |
20 | private:
21 | DISALLOW_COPY_AND_ASSIGN(XWalkBrowserMainPartsMac);
22 | };
23 |
24 | } // namespace xwalk
25 |
26 | #endif // XWALK_RUNTIME_BROWSER_XWALK_BROWSER_MAIN_PARTS_MAC_H_
27 |
--------------------------------------------------------------------------------
/tools/installer/common/wrapper:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | #
3 | # Copyright (c) 2011 The Chromium Authors. All rights reserved.
4 | # Copyright (c) 2015 Intel Corporation. All rights reserved.
5 | # Use of this source code is governed by a BSD-style license that can be
6 | # found in the LICENSE file.
7 |
8 | THIS="`readlink -f "$0"`"
9 | HERE="`dirname "${THIS}"`"
10 |
11 | # Always use our versions of ffmpeg libs.
12 | # This also makes RPMs find the compatibly-named library symlinks.
13 | if [[ -n "$LD_LIBRARY_PATH" ]]; then
14 | LD_LIBRARY_PATH="$HERE:$HERE/lib:$LD_LIBRARY_PATH"
15 | else
16 | LD_LIBRARY_PATH="$HERE:$HERE/lib"
17 | fi
18 | export LD_LIBRARY_PATH
19 |
20 | # Sanitize std{in,out,err} because they'll be shared with untrusted child
21 | # processes (http://crbug.com/376567).
22 | exec < /dev/null
23 | exec > >(exec cat)
24 | exec 2> >(exec cat >&2)
25 |
26 | exec -a "$0" "$HERE/@@PROGNAME@@" @@DEFAULT_FLAGS@@ "$@"
27 |
--------------------------------------------------------------------------------
/runtime/DEPS:
--------------------------------------------------------------------------------
1 | include_rules = [
2 | # FIXME: Remove dependency on non-public Content module header used by
3 | # xwalk_download_browsertest.cc.
4 | "!content/browser/download/download_manager_impl.h",
5 |
6 | # FIXME: Remove dependency on Chrome. Used by runtime_platform_util_aura.cc.
7 | "!chrome/browser/platform_util.h",
8 | "!chrome/browser/ui/browser_dialogs.h",
9 |
10 | # FIXME: Remove dependencies on non-public Content module headers used by
11 | # runtime_download_manager_delegate.cc.
12 | "!content/shell/shell_switches.h",
13 | "!content/shell/webkit_test_controller.h",
14 |
15 | # Generated net resources, used for IDR_DIR_HEADER_HTML.
16 | "+grit/net_resources.h",
17 |
18 | # Android.
19 | "+jni",
20 | "+components/web_contents_delegate_android",
21 | "+components/navigation_interception",
22 | "+components/cdm/browser",
23 | "+components/cdm/renderer",
24 | "+cc/base/switches.h"
25 | ]
26 |
--------------------------------------------------------------------------------
/runtime/android/sample/src/org/xwalk/core/sample/LoadAppFromManifestActivity.java:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2014 Intel Corporation. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | package org.xwalk.core.sample;
6 |
7 | import org.xwalk.core.XWalkView;
8 |
9 | import android.os.Bundle;
10 |
11 | public class LoadAppFromManifestActivity extends XWalkBaseActivity {
12 |
13 | @Override
14 | protected void onCreate(Bundle savedInstanceState) {
15 | super.onCreate(savedInstanceState);
16 | setContentView(R.layout.xwview_layout);
17 | mXWalkView = (XWalkView) findViewById(R.id.xwalkview);
18 |
19 | // The manifest definition, please refer to the link:
20 | // https://crosswalk-project.org/#wiki/Crosswalk-manifest
21 | mXWalkView.loadAppFromManifest("file:///android_asset/manifest.json", null);
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/sysapps/raw_socket/raw_socket_object.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2013 Intel Corporation. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | #ifndef XWALK_SYSAPPS_RAW_SOCKET_RAW_SOCKET_OBJECT_H_
6 | #define XWALK_SYSAPPS_RAW_SOCKET_RAW_SOCKET_OBJECT_H_
7 |
8 | #include "xwalk/sysapps/raw_socket/raw_socket.h"
9 | #include "xwalk/sysapps/common/event_target.h"
10 |
11 | using xwalk::jsapi::raw_socket::ReadyState; // NOLINT
12 |
13 | namespace xwalk {
14 | namespace sysapps {
15 |
16 | // Base class for the objects of the RawSocket API.
17 | class RawSocketObject : public EventTarget {
18 | public:
19 | ~RawSocketObject() override;
20 |
21 | protected:
22 | RawSocketObject();
23 |
24 | void setReadyState(ReadyState state);
25 | };
26 |
27 | } // namespace sysapps
28 | } // namespace xwalk
29 |
30 | #endif // XWALK_SYSAPPS_RAW_SOCKET_RAW_SOCKET_OBJECT_H_
31 |
--------------------------------------------------------------------------------
/runtime/android/core/src/org/xwalk/core/extension/JsConstructor.java:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2015 Intel Corporation. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | package org.xwalk.core.extension;
6 |
7 | import java.lang.annotation.ElementType;
8 | import java.lang.annotation.Retention;
9 | import java.lang.annotation.RetentionPolicy;
10 | import java.lang.annotation.Target;
11 |
12 | /**
13 | * Annotated fields and method can be exposed to JavaScript.
14 | */
15 | @Retention(RetentionPolicy.RUNTIME)
16 | @Target({ElementType.METHOD})
17 | public @interface JsConstructor {
18 |
19 | // The main Java class binding to the JS constructor.
20 | public Class> mainClass();
21 |
22 | // If the constructor is the entry point of this extension.
23 | // If true, jsName property will be ignored.
24 | public boolean isEntryPoint() default false;
25 | }
26 |
--------------------------------------------------------------------------------
/extensions/extensions_resources.grd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/runtime/android/sample/src/org/xwalk/core/sample/OnHideOnShowActivity.java:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2014 Intel Corporation. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | package org.xwalk.core.sample;
6 |
7 | import org.xwalk.core.XWalkView;
8 |
9 | import android.os.Bundle;
10 |
11 | public class OnHideOnShowActivity extends XWalkBaseActivity {
12 |
13 | @Override
14 | protected void onCreate(Bundle savedInstanceState) {
15 | super.onCreate(savedInstanceState);
16 | setContentView(R.layout.xwview_layout);
17 | mXWalkView = (XWalkView) findViewById(R.id.xwalkview);
18 |
19 | // The web page below will display a video.
20 | // When home button is pressed, the activity will be in background, and the video will be paused.
21 | mXWalkView.load("http://www.w3.org/2010/05/video/mediaevents.html", null);
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/extensions/xesh/xesh.gypi:
--------------------------------------------------------------------------------
1 | {
2 | 'targets': [
3 | {
4 | 'target_name': 'xwalk_extension_shell',
5 | 'type': 'executable',
6 | 'defines': ['XWALK_VERSION="<(xwalk_version)"'],
7 | 'product_name': 'xesh',
8 | 'dependencies': [
9 | '../base/allocator/allocator.gyp:allocator',
10 | '../base/base.gyp:base',
11 | '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
12 | '../content/content.gyp:content',
13 | '../ipc/ipc.gyp:ipc',
14 | '../third_party/WebKit/public/blink.gyp:blink',
15 | '../url/url.gyp:url_lib',
16 | '../v8/tools/gyp/v8.gyp:v8',
17 | 'extensions/extensions.gyp:xwalk_extensions',
18 | ],
19 | 'include_dirs': [
20 | '../../..',
21 | ],
22 | 'sources': [
23 | 'xesh_main.cc',
24 | 'xesh_v8_runner.h',
25 | 'xesh_v8_runner.cc',
26 | ],
27 | },
28 | ],
29 | }
30 |
--------------------------------------------------------------------------------
/runtime/android/core_internal/src/org/xwalk/core/internal/XWalkNavigationHandler.java:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2013 Intel Corporation. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | package org.xwalk.core.internal;
6 |
7 | import org.chromium.components.navigation_interception.NavigationParams;
8 |
9 | interface XWalkNavigationHandler {
10 |
11 | /**
12 | * Handles the navigation request.
13 | * @param params The navigation parameters.
14 | * @return true if the navigation request is handled.
15 | */
16 | boolean handleNavigation(NavigationParams params);
17 |
18 | /**
19 | * Gets the fallback url for special chemes, e.g. intent://.
20 | * @return the fallback url if it was specified.
21 | */
22 | String getFallbackUrl();
23 |
24 | /**
25 | * Resets the fallback url to null.
26 | */
27 | void resetFallbackUrl();
28 | }
29 |
--------------------------------------------------------------------------------
/runtime/browser/ui/webui/file_picker/file_picker_ui.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2015 Intel Corporation. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | #ifndef XWALK_RUNTIME_BROWSER_UI_WEBUI_FILE_PICKER_FILE_PICKER_UI_H_
6 | #define XWALK_RUNTIME_BROWSER_UI_WEBUI_FILE_PICKER_FILE_PICKER_UI_H_
7 |
8 | #include "ui/gfx/native_widget_types.h"
9 | #include "ui/web_dialogs/web_dialog_ui.h"
10 |
11 | namespace content {
12 | class BrowserContext;
13 | class WebContents;
14 | }
15 |
16 | namespace ui {
17 | class WebDialogDelegate;
18 | }
19 |
20 | namespace ui {
21 |
22 | class FilePickerUI : public WebDialogUI {
23 | public:
24 | explicit FilePickerUI(content::WebUI* web_ui);
25 | ~FilePickerUI() override;
26 |
27 | private:
28 | DISALLOW_COPY_AND_ASSIGN(FilePickerUI);
29 | };
30 |
31 | } // namespace ui
32 |
33 | #endif // XWALK_RUNTIME_BROWSER_UI_WEBUI_FILE_PICKER_FILE_PICKER_UI_H_
34 |
--------------------------------------------------------------------------------
/test/android/core/javatests/src/org/xwalk/core/xwview/test/GetUrlTest.java:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 | // Copyright (c) 2014 Intel Corporation. All rights reserved.
3 | // Use of this source code is governed by a BSD-style license that can be
4 | // found in the LICENSE file.
5 |
6 | package org.xwalk.core.xwview.test;
7 |
8 | import android.test.suitebuilder.annotation.SmallTest;
9 |
10 | import org.chromium.base.test.util.Feature;
11 |
12 | /**
13 | * Test suite for getUrl().
14 | */
15 | public class GetUrlTest extends XWalkViewTestBase {
16 |
17 | @Override
18 | public void setUp() throws Exception {
19 | super.setUp();
20 | }
21 |
22 | @SmallTest
23 | @Feature({"GetUrl"})
24 | public void testGetUrl() throws Throwable {
25 | final String url = "file:///android_asset/www/index.html";
26 |
27 | loadUrlSync(url);
28 | assertEquals(url, getUrlOnUiThread());
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/runtime/browser/android/xwalk_content_lifecycle_notifier.h:
--------------------------------------------------------------------------------
1 | // Copyright 2015 The Chromium Authors. All rights reserved.
2 | // Copyright (c) 2016 Intel Corporation. All rights reserved.
3 | // Use of this source code is governed by a BSD-style license that can be
4 | // found in the LICENSE file.
5 |
6 | #ifndef XWALK_RUNTIME_BROWSER_ANDROID_XWALK_CONTENT_LIFECYCLE_NOTIFIER_H_
7 | #define XWALK_RUNTIME_BROWSER_ANDROID_XWALK_CONTENT_LIFECYCLE_NOTIFIER_H_
8 |
9 | #include "base/android/jni_android.h"
10 | #include "base/macros.h"
11 |
12 | namespace xwalk {
13 |
14 | class XWalkContentLifecycleNotifier {
15 | public:
16 | static void OnXWalkViewCreated();
17 | static void OnXWalkViewDestroyed();
18 |
19 | private:
20 | DISALLOW_IMPLICIT_CONSTRUCTORS(XWalkContentLifecycleNotifier);
21 | };
22 |
23 | bool RegisterXWalkContentLifecycleNotifier(JNIEnv* env);
24 |
25 | } // namespace xwalk
26 |
27 | #endif // XWALK_RUNTIME_BROWSER_ANDROID_XWALK_CONTENT_LIFECYCLE_NOTIFIER_H_
28 |
--------------------------------------------------------------------------------
/extensions/test/test.idl:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2013 Intel Corporation. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | // Crosswalk Test API
6 | namespace test {
7 | dictionary Person {
8 | DOMString name;
9 | long age;
10 | };
11 |
12 | callback GetPersonsCallback = void (Person[] persons, long size);
13 | callback GetPersonAgeCallback = void (long age);
14 | callback HeartbeatCallback = void (long count);
15 |
16 | interface Functions {
17 | static void clearDatabase();
18 |
19 | static void addPerson(DOMString name, long age);
20 | static void addPersonObject(Person person);
21 |
22 | static void getAllPersons(long max_size, GetPersonsCallback callback);
23 | static void getPersonAge(DOMString name, GetPersonAgeCallback callback);
24 |
25 | static void startHeartbeat(HeartbeatCallback callback);
26 | static void stopHeartbeat();
27 | };
28 | };
29 |
--------------------------------------------------------------------------------
/extensions/test/win/invalid_extension_12/XWalkExtension.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2013 Intel Corporation. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | using System;
6 |
7 | namespace xwalk
8 | {
9 | public class XWalkExtension {
10 | public XWalkExtension() {
11 | }
12 |
13 | public String ExtensionName() {
14 | return "echo";
15 | }
16 |
17 | public String ExtensionAPI() {
18 | return
19 | @"var echoListener = null;
20 | extension.setMessageListener(function(msg) {
21 | if (echoListener instanceof Function) {
22 | echoListener(msg);
23 | };
24 | });
25 | exports.echo = function(msg, callback) {
26 | echoListener = callback;
27 | extension.postMessage(msg);
28 | };
29 | exports.syncEcho = function(msg) {
30 | return extension.internal.sendSyncMessage(msg);
31 | };";
32 | }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/extensions/test/win/invalid_extension_11/XWalkExtension.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2013 Intel Corporation. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | using System;
6 |
7 | namespace xwalk
8 | {
9 | public class XWalkExtension
10 | {
11 | public XWalkExtension() {
12 | }
13 |
14 | public String ExtensionName() {
15 | return "echo";
16 | }
17 |
18 | public String ExtensionAPI() {
19 | return
20 | @"var echoListener = null;
21 | extension.setMessageListener(function(msg) {
22 | if (echoListener instanceof Function) {
23 | echoListener(msg);
24 | };
25 | });
26 | exports.echo = function(msg, callback) {
27 | echoListener = callback;
28 | extension.postMessage(msg);
29 | };
30 | exports.syncEcho = function(msg) {
31 | return extension.internal.sendSyncMessage(msg);
32 | };";
33 | }
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/runtime/android/maven/xwalk_core_library.pom.xml.in:
--------------------------------------------------------------------------------
1 |
2 |
5 |
7 | 4.0.0
8 | org.xwalk
9 | @ARTIFACT_ID@
10 | @ARTIFACT_VERSION@
11 | aar
12 |
13 |
15 |
16 |
17 | com.android.support
18 | support-v4
19 | [13.0.0,)
20 | runtime
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/test/android/data/displayAvailableTest.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
33 | Presentation API: displayAvailable test
34 |
35 |
36 |
--------------------------------------------------------------------------------
/runtime/android/core/src/org/xwalk/core/JavascriptInterface.java:
--------------------------------------------------------------------------------
1 | // Copyright 2012 The Chromium Authors. All rights reserved.
2 | // Copyright (c) 2014 Intel Corporation. All rights reserved.
3 | // Use of this source code is governed by a BSD-style license that can be
4 | // found in the LICENSE file.
5 |
6 | package org.xwalk.core;
7 |
8 | import java.lang.annotation.ElementType;
9 | import java.lang.annotation.Retention;
10 | import java.lang.annotation.RetentionPolicy;
11 | import java.lang.annotation.Target;
12 |
13 | /**
14 | * Marks a method as being able to be exposed to JavaScript. This is used for
15 | * safety purposes so that only explicitly marked methods get exposed instead
16 | * of every method in a class.
17 | * See the explanation for {@link XWalkView#addJavascriptInterface(Object, String)}
18 | * about the usage.
19 | */
20 | @SuppressWarnings("javadoc")
21 | @Retention(RetentionPolicy.RUNTIME)
22 | @Target({ElementType.METHOD})
23 | public @interface JavascriptInterface {
24 | }
25 |
--------------------------------------------------------------------------------
/runtime/android/sample/src/org/xwalk/core/sample/XWalkPreferencesActivity.java:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2014 Intel Corporation. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | package org.xwalk.core.sample;
6 |
7 | import org.xwalk.core.XWalkPreferences;
8 | import org.xwalk.core.XWalkView;
9 |
10 | import android.os.Bundle;
11 |
12 | public class XWalkPreferencesActivity extends XWalkBaseActivity {
13 |
14 | @Override
15 | protected void onCreate(Bundle savedInstanceState) {
16 | super.onCreate(savedInstanceState);
17 | setContentView(R.layout.xwview_layout);
18 | mXWalkView = (XWalkView) findViewById(R.id.xwalkview);
19 |
20 | // Enable remote debugging.
21 | // You can debug the web content via PC chrome.
22 | XWalkPreferences.setValue(XWalkPreferences.REMOTE_DEBUGGING, true);
23 |
24 | mXWalkView.load("http://www.baidu.com/", null);
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/extensions/test/win/echo_extension/XWalkExtension.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2013 Intel Corporation. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | using System;
6 |
7 | namespace xwalk
8 | {
9 | public class XWalkExtension
10 | {
11 | public XWalkExtension() {
12 | }
13 |
14 | public String ExtensionName() {
15 | return "echo";
16 | }
17 |
18 | public String ExtensionAPI() {
19 | return
20 | @"var echoListener = null;
21 | extension.setMessageListener(function(msg) {
22 | if (echoListener instanceof Function) {
23 | echoListener(msg);
24 | };
25 | });
26 | exports.echo = function(msg, callback) {
27 | echoListener = callback;
28 | extension.postMessage(msg);
29 | };
30 | exports.syncEcho = function(msg) {
31 | return extension.internal.sendSyncMessage(msg);
32 | };";
33 | }
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/extensions/test/win/echo_extension1/XWalkExtension.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2013 Intel Corporation. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | using System;
6 |
7 | namespace xwalk
8 | {
9 | public class XWalkExtension
10 | {
11 | public XWalkExtension() {
12 | }
13 |
14 | public String ExtensionName() {
15 | return "echo";
16 | }
17 |
18 | public String ExtensionAPI() {
19 | return
20 | @"var echoListener = null;
21 | extension.setMessageListener(function(msg) {
22 | if (echoListener instanceof Function) {
23 | echoListener(msg);
24 | };
25 | });
26 | exports.echo = function(msg, callback) {
27 | echoListener = callback;
28 | extension.postMessage(msg);
29 | };
30 | exports.syncEcho = function(msg) {
31 | return extension.internal.sendSyncMessage(msg);
32 | };";
33 | }
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/runtime/android/sample/res/layout/animatable_xwview_layout.xml:
--------------------------------------------------------------------------------
1 |
7 |
11 |
16 |
17 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/extensions/test/win/echo_extension2/XWalkExtension.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2013 Intel Corporation. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | using System;
6 |
7 | namespace xwalk
8 | {
9 | public class XWalkExtension
10 | {
11 | public XWalkExtension() {
12 | }
13 |
14 | public String ExtensionName() {
15 | return "echo2";
16 | }
17 |
18 | public String ExtensionAPI() {
19 | return
20 | @"var echoListener = null;
21 | extension.setMessageListener(function(msg) {
22 | if (echoListener instanceof Function) {
23 | echoListener(msg);
24 | };
25 | });
26 | exports.echo2 = function(msg, callback) {
27 | echoListener = callback;
28 | extension.postMessage(msg);
29 | };
30 | exports.syncEcho2 = function(msg) {
31 | return extension.internal.sendSyncMessage(msg);
32 | };";
33 | }
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/runtime/renderer/pepper/pepper_helper.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2014 Intel Corporation. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | #ifndef XWALK_RUNTIME_RENDERER_PEPPER_PEPPER_HELPER_H_
6 | #define XWALK_RUNTIME_RENDERER_PEPPER_PEPPER_HELPER_H_
7 |
8 | #include "base/compiler_specific.h"
9 | #include "content/public/renderer/render_frame_observer.h"
10 |
11 | // This class listens for Pepper creation events from the RenderFrame and
12 | // attaches the parts required for Chrome-specific plugin support.
13 | class PepperHelper : public content::RenderFrameObserver {
14 | public:
15 | explicit PepperHelper(content::RenderFrame* render_frame);
16 | ~PepperHelper() override;
17 |
18 | // RenderFrameObserver.
19 | void DidCreatePepperPlugin(content::RendererPpapiHost* host) override;
20 |
21 | private:
22 | DISALLOW_COPY_AND_ASSIGN(PepperHelper);
23 | };
24 |
25 | #endif // XWALK_RUNTIME_RENDERER_PEPPER_PEPPER_HELPER_H_
26 |
--------------------------------------------------------------------------------
/runtime/browser/android/xwalk_content_lifecycle_notifier.cc:
--------------------------------------------------------------------------------
1 | // Copyright 2015 The Chromium Authors. All rights reserved.
2 | // Copyright (c) 2016 Intel Corporation. All rights reserved.
3 | // Use of this source code is governed by a BSD-style license that can be
4 | // found in the LICENSE file.
5 |
6 | #include "xwalk/runtime/browser/android/xwalk_content_lifecycle_notifier.h"
7 |
8 | #include "jni/XWalkContentLifecycleNotifier_jni.h"
9 |
10 | using base::android::AttachCurrentThread;
11 |
12 | namespace xwalk {
13 |
14 | bool RegisterXWalkContentLifecycleNotifier(JNIEnv* env) {
15 | return RegisterNativesImpl(env);
16 | }
17 |
18 | // static
19 | void XWalkContentLifecycleNotifier::OnXWalkViewCreated() {
20 | Java_XWalkContentLifecycleNotifier_onXWalkViewCreated(AttachCurrentThread());
21 | }
22 |
23 | // static
24 | void XWalkContentLifecycleNotifier::OnXWalkViewDestroyed() {
25 | Java_XWalkContentLifecycleNotifier_onXWalkViewDestroyed(
26 | AttachCurrentThread());
27 | }
28 |
29 | } // namespace xwalk
30 |
--------------------------------------------------------------------------------
/extensions/xesh/xesh_test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | # Copyright (c) 2013 Intel Corporation. All rights reserved.
3 | # Use of this source code is governed by a BSD-style license that can be
4 | # found in the LICENSE file.
5 |
6 | BUILD_DIR=$1
7 |
8 | if [ $# -eq 0 ]; then
9 | echo -e "\nUsage: $0 PATH_TO_BUILD_DIR (i.e.: $0 ../../../out/Release/)."
10 | exit 1
11 | fi
12 |
13 | if [ ! $BUILD_DIR/xesh ]; then
14 | echo -e "\nPlease make sure XEsh is built in $BUILD_DIR"
15 | exit 1
16 | fi
17 |
18 | echo "echo.syncEcho(\"\");" > temp_test.js
19 | echo "quit();" >> temp_test.js
20 |
21 | $BUILD_DIR/xesh --external-extensions-path=$BUILD_DIR/tests/extension/echo_extension --input-file=temp_test.js 1> test_stdout 2> test_stderr
22 |
23 | RESULT=`cat test_stdout`
24 | EXPECTED="Instance 1 created!"
25 |
26 | rm temp_test.js
27 | rm test_stdout
28 | rm test_stderr
29 |
30 | if [ "$RESULT" = "$EXPECTED" ]; then
31 | echo -e "XESh Test: PASS."
32 | exit 0
33 | else
34 | echo -e "XESh Test: FAIL."
35 | exit 1
36 | fi
37 |
--------------------------------------------------------------------------------
/runtime/browser/storage_component.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2014 Intel Corporation. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | #ifndef XWALK_RUNTIME_BROWSER_STORAGE_COMPONENT_H_
6 | #define XWALK_RUNTIME_BROWSER_STORAGE_COMPONENT_H_
7 |
8 | #include "xwalk/runtime/browser/xwalk_component.h"
9 | #include "xwalk/experimental/native_file_system/native_file_system_extension.h"
10 |
11 | namespace xwalk {
12 |
13 | class StorageComponent : public XWalkComponent {
14 | public:
15 | StorageComponent();
16 | ~StorageComponent() override;
17 |
18 | private:
19 | // XWalkComponent implementation.
20 | void CreateExtensionThreadExtensions(
21 | content::RenderProcessHost* host,
22 | extensions::XWalkExtensionVector* extensions) override;
23 |
24 | experimental::NativeFileSystemExtension* native_file_system_extension_;
25 | };
26 |
27 | } // namespace xwalk
28 |
29 | #endif // XWALK_RUNTIME_BROWSER_STORAGE_COMPONENT_H_
30 |
--------------------------------------------------------------------------------
/runtime/android/core_internal/src/org/xwalk/core/internal/extension/api/presentation/PresentationViewNull.java:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2013 Intel Corporation. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | package org.xwalk.core.internal.extension.api.presentation;
6 |
7 | import android.view.Display;
8 | import android.view.View;
9 |
10 | /**
11 | * A empty implementation for build version lower than API level 17.
12 | */
13 | public class PresentationViewNull extends PresentationView {
14 |
15 | public PresentationViewNull() {
16 | }
17 |
18 | @Override
19 | public void show() {
20 | }
21 |
22 | @Override
23 | public void dismiss() {
24 | }
25 |
26 | @Override
27 | public void cancel() {
28 | }
29 |
30 | @Override
31 | public void setContentView(View contentView) {
32 | }
33 |
34 | @Override
35 | public Display getDisplay() {
36 | return null;
37 | }
38 | }
39 |
40 |
--------------------------------------------------------------------------------
/application/common/package/wgt_package.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2013 Intel Corporation. All rights reserved.
2 | // Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved.
3 | // Use of this source code is governed by a BSD-style license that can be
4 | // found in the LICENSE file.
5 |
6 | #ifndef XWALK_APPLICATION_COMMON_PACKAGE_WGT_PACKAGE_H_
7 | #define XWALK_APPLICATION_COMMON_PACKAGE_WGT_PACKAGE_H_
8 |
9 | #include
10 | #include
11 |
12 | #include "base/files/file_path.h"
13 | #include "xwalk/application/common/package/package.h"
14 |
15 | namespace xwalk {
16 | namespace application {
17 |
18 | class WGTPackage : public Package {
19 | public:
20 | explicit WGTPackage(const base::FilePath& path);
21 | ~WGTPackage() override;
22 | // Returns allowed names of default widget start file.
23 | static const std::vector& GetDefaultWidgetEntryPages();
24 | };
25 |
26 | } // namespace application
27 | } // namespace xwalk
28 |
29 | #endif // XWALK_APPLICATION_COMMON_PACKAGE_WGT_PACKAGE_H_
30 |
--------------------------------------------------------------------------------
/runtime/browser/ui/linux_webui/linux_webui.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2014 The Chromium Authors. All rights reserved.
2 | // Copyright (c) 2015 Intel Corporation. All rights reserved.
3 | // Use of this source code is governed by a BSD-style license that can be
4 | // found in the LICENSE file.
5 |
6 | #ifndef XWALK_RUNTIME_BROWSER_UI_LINUX_WEBUI_LINUX_WEBUI_H_
7 | #define XWALK_RUNTIME_BROWSER_UI_LINUX_WEBUI_LINUX_WEBUI_H_
8 |
9 | #include "ui/shell_dialogs/linux_shell_dialog.h"
10 |
11 | namespace views {
12 |
13 | class LinuxWebUI : public ui::LinuxShellDialog {
14 | public:
15 | LinuxWebUI();
16 | ~LinuxWebUI() override;
17 |
18 | // ui::LinuxShellDialog:
19 | ui::SelectFileDialog* CreateSelectFileDialog(
20 | ui::SelectFileDialog::Listener* listener,
21 | ui::SelectFilePolicy* policy) const override;
22 |
23 | private:
24 | DISALLOW_COPY_AND_ASSIGN(LinuxWebUI);
25 | };
26 |
27 | } // namespace views
28 |
29 | ui::LinuxShellDialog* BuildWebUI();
30 |
31 | #endif // XWALK_RUNTIME_BROWSER_UI_LINUX_WEBUI_LINUX_WEBUI_H_
32 |
--------------------------------------------------------------------------------
/extensions/renderer/xwalk_v8tools_module.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2013 Intel Corporation. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | #ifndef XWALK_EXTENSIONS_RENDERER_XWALK_V8TOOLS_MODULE_H_
6 | #define XWALK_EXTENSIONS_RENDERER_XWALK_V8TOOLS_MODULE_H_
7 |
8 | #include "xwalk/extensions/renderer/xwalk_module_system.h"
9 |
10 | namespace xwalk {
11 | namespace extensions {
12 |
13 | // This module provides extra JS functions that help writing JS API code for
14 | // extensions, for example: allowing setting a read-only property of an object.
15 | class XWalkV8ToolsModule : public XWalkNativeModule {
16 | public:
17 | XWalkV8ToolsModule();
18 | ~XWalkV8ToolsModule() override;
19 |
20 | private:
21 | v8::Handle NewInstance() override;
22 |
23 | v8::Persistent object_template_;
24 | };
25 |
26 | } // namespace extensions
27 | } // namespace xwalk
28 |
29 | #endif // XWALK_EXTENSIONS_RENDERER_XWALK_V8TOOLS_MODULE_H_
30 |
--------------------------------------------------------------------------------
/resources/resource_ids:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2013 Intel Corporation. All rights reserved.
2 | # Use of this source code is governed by a BSD-style license that can be
3 | # found in the LICENSE file.
4 |
5 | # Check src/tools/gritsettings/resource_ids for details. As of today,
6 | # ids after 31000 are reserved to projects using Chromium, which is
7 | # our case.
8 |
9 | {
10 | "SRCDIR": "../..",
11 |
12 | "xwalk/runtime/resources/xwalk_resources.grd": {
13 | "includes": [31000],
14 | "structures": [31500],
15 | "messages": [32000],
16 | },
17 |
18 | "xwalk/experimental/experimental_resources.grd": {
19 | "includes": [32100],
20 | },
21 |
22 | "xwalk/extensions/extensions_resources.grd": {
23 | "includes": [32125],
24 | },
25 |
26 | "xwalk/application/application_resources.grd": {
27 | "includes": [32150],
28 | },
29 |
30 | "xwalk/sysapps/sysapps_resources.grd": {
31 | "includes": [32175],
32 | },
33 |
34 | "xwalk/runtime/resources/xwalk_strings.grd": {
35 | "messages": [32200],
36 | },
37 | }
38 |
--------------------------------------------------------------------------------
/runtime/browser/sysapps_component.cc:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2014 Intel Corporation. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | #include "xwalk/runtime/browser/sysapps_component.h"
6 |
7 | #include "xwalk/runtime/common/xwalk_runtime_features.h"
8 |
9 | namespace xwalk {
10 |
11 | SysAppsComponent::SysAppsComponent() {
12 | if (!XWalkRuntimeFeatures::isRawSocketsAPIEnabled())
13 | manager_.DisableRawSockets();
14 | }
15 |
16 | SysAppsComponent::~SysAppsComponent() {}
17 |
18 | void SysAppsComponent::CreateUIThreadExtensions(
19 | content::RenderProcessHost* host,
20 | extensions::XWalkExtensionVector* extensions) {
21 | manager_.CreateExtensionsForUIThread(extensions);
22 | }
23 |
24 | void SysAppsComponent::CreateExtensionThreadExtensions(
25 | content::RenderProcessHost* host,
26 | extensions::XWalkExtensionVector* extensions) {
27 | manager_.CreateExtensionsForExtensionThread(extensions);
28 | }
29 |
30 | } // namespace xwalk
31 |
--------------------------------------------------------------------------------
/runtime/android/core_internal/src/org/xwalk/core/internal/XWalkHttpAuthInternal.java:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2015 Intel Corporation. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | package org.xwalk.core.internal;
6 |
7 | /**
8 | * This interface is used when XWalkResourceClientInternal offers a http auth
9 | * request (cancel, proceed) to enable the client to handle the request in their
10 | * own way. XWalkResourceClientInternal will offer an object that implements
11 | * this interface to the client and when the client has handled the request,
12 | * it must either callback with proceed() or cancel() to allow processing to
13 | * continue.
14 | */
15 | @XWalkAPI(instance = XWalkHttpAuthHandlerInternal.class)
16 | public interface XWalkHttpAuthInternal {
17 | @XWalkAPI
18 | public void proceed(String username, String password);
19 |
20 | @XWalkAPI
21 | public void cancel();
22 |
23 | @XWalkAPI
24 | public boolean isFirstAttempt();
25 | }
26 |
--------------------------------------------------------------------------------
/application/application_resources.grd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/runtime/browser/android/net/url_constants.cc:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | #include "xwalk/runtime/browser/android/net/url_constants.h"
6 |
7 | namespace xwalk {
8 |
9 | // "app:" scheme is used for accessing application resources in assets.
10 | // It's part of sysapps API, http://app-uri.sysapps.org.
11 | const char kAppScheme[] = "app";
12 |
13 | // The content: scheme is used in Android for interacting with content
14 | // provides.
15 | // See http://developer.android.com/reference/android/content/ContentUris.html
16 | const char kContentScheme[] = "content";
17 |
18 | // These are special paths used with the file: scheme to access application
19 | // assets and resources.
20 | // See http://developer.android.com/reference/android/webkit/WebSettings.html
21 | const char kAndroidAssetPath[] = "/android_asset/";
22 | const char kAndroidResourcePath[] = "/android_res/";
23 |
24 | } // namespace xwalk
25 |
--------------------------------------------------------------------------------
/runtime/browser/android/xwalk_path_helper.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2014 Intel Corporation. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | #ifndef XWALK_RUNTIME_BROWSER_ANDROID_XWALK_PATH_HELPER_H_
6 | #define XWALK_RUNTIME_BROWSER_ANDROID_XWALK_PATH_HELPER_H_
7 |
8 | #include
9 | #include
10 | #include
11 |
12 | #include "base/files/file_path.h"
13 |
14 | namespace xwalk {
15 |
16 | typedef std::map VirtualRootMap;
17 |
18 | class XWalkPathHelper {
19 | public:
20 | static void SetDirectory(const std::string& virtualRoot,
21 | const std::string& path);
22 | static VirtualRootMap GetVirtualRootMap();
23 |
24 | private:
25 | static VirtualRootMap virtual_root_map_;
26 |
27 | DISALLOW_COPY_AND_ASSIGN(XWalkPathHelper);
28 | };
29 |
30 | bool RegisterXWalkPathHelper(JNIEnv* env);
31 |
32 | } // namespace xwalk
33 |
34 | #endif // XWALK_RUNTIME_BROWSER_ANDROID_XWALK_PATH_HELPER_H_
35 |
--------------------------------------------------------------------------------
/runtime/android/core_internal/src/org/xwalk/core/internal/XWalkGetBitmapCallbackInternal.java:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2015 Intel Corporation. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | package org.xwalk.core.internal;
6 |
7 | import android.graphics.Bitmap;
8 |
9 | /**
10 | * A callback for content readback into a bitmap.
11 | */
12 | @XWalkAPI(createExternally = true)
13 | public abstract class XWalkGetBitmapCallbackInternal {
14 | /**
15 | * Constructor for capture bitmap callback.
16 | * @since 6.0
17 | */
18 | @XWalkAPI
19 | public XWalkGetBitmapCallbackInternal() {}
20 |
21 | /**
22 | * Called when the content readback finishes.
23 | * @param bitmap The bitmap of the content. Null will be passed for
24 | * readback failure.
25 | * @param response 0 for success, others failure.
26 | * @since 6.0
27 | */
28 | @XWalkAPI
29 | public abstract void onFinishGetBitmap(Bitmap bitmap, int response);
30 | }
31 |
--------------------------------------------------------------------------------
/runtime/app/helper-Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleDisplayName
8 | ${EXECUTABLE_NAME}
9 | CFBundleExecutable
10 | ${EXECUTABLE_NAME}
11 | CFBundleIdentifier
12 | com.intel.xwalk.helper
13 | CFBundleInfoDictionaryVersion
14 | 6.0
15 | CFBundleName
16 | ${PRODUCT_NAME}
17 | CFBundlePackageType
18 | APPL
19 | CFBundleSignature
20 | ????
21 | LSFileQuarantineEnabled
22 |
23 | LSMinimumSystemVersion
24 | ${MACOSX_DEPLOYMENT_TARGET}.0
25 | LSUIElement
26 | 1
27 | NSSupportsAutomaticGraphicsSwitching
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/runtime/common/xwalk_localized_error.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | #ifndef XWALK_RUNTIME_COMMON_XWALK_LOCALIZED_ERROR_H_
6 | #define XWALK_RUNTIME_COMMON_XWALK_LOCALIZED_ERROR_H_
7 |
8 | #include
9 |
10 | #include "base/macros.h"
11 | #include "base/strings/string16.h"
12 |
13 | class GURL;
14 |
15 | namespace base {
16 | class DictionaryValue;
17 | }
18 |
19 | namespace blink {
20 | struct WebURLError;
21 | }
22 |
23 | class LocalizedError {
24 | public:
25 | // Returns a description of the encountered error.
26 | static base::string16 GetErrorDetails(const blink::WebURLError& error,
27 | bool is_post);
28 |
29 | static const char kHttpErrorDomain[];
30 | static const char kDnsProbeErrorDomain[];
31 |
32 | private:
33 | DISALLOW_IMPLICIT_CONSTRUCTORS(LocalizedError);
34 | };
35 |
36 | #endif // XWALK_RUNTIME_COMMON_XWALK_LOCALIZED_ERROR_H_
37 |
--------------------------------------------------------------------------------
/runtime/renderer/isolated_file_system.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2014 Intel Corporation. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | #ifndef XWALK_RUNTIME_RENDERER_ISOLATED_FILE_SYSTEM_H_
6 | #define XWALK_RUNTIME_RENDERER_ISOLATED_FILE_SYSTEM_H_
7 |
8 | #include "xwalk/extensions/renderer/xwalk_module_system.h"
9 |
10 | namespace xwalk {
11 | namespace extensions {
12 |
13 | class XWalkModuleSystem;
14 |
15 | class IsolatedFileSystem: public xwalk::extensions::XWalkNativeModule {
16 | public:
17 | IsolatedFileSystem();
18 | ~IsolatedFileSystem() override;
19 |
20 | private:
21 | v8::Handle NewInstance() override;
22 | static void GetIsolatedFileSystem(const v8::FunctionCallbackInfo&);
23 |
24 | v8::Persistent object_template_;
25 | v8::Persistent function_data_;
26 | };
27 |
28 | } // namespace extensions
29 | } // namespace xwalk
30 |
31 | #endif // XWALK_RUNTIME_RENDERER_ISOLATED_FILE_SYSTEM_H_
32 |
--------------------------------------------------------------------------------
/test/android/util/runtime_client/src/com/example/extension/MyExtension.java:
--------------------------------------------------------------------------------
1 | package com.example.extension;
2 |
3 | import org.xwalk.core.extension.XWalkExtensionContextClient;
4 | import org.xwalk.core.extension.XWalkExternalExtension;
5 |
6 | import android.util.Log;
7 |
8 | public class MyExtension extends XWalkExternalExtension {
9 | // Don't change the parameters in Constructor because XWalk needs to call this constructor.
10 | public MyExtension(String name, String JsApiContent, XWalkExtensionContextClient context) {
11 | super(name, JsApiContent, context);
12 | }
13 |
14 | @Override
15 | public void onMessage(int instanceId, String message) {
16 | postMessage(instanceId, "From java:" + message);
17 | }
18 |
19 | @Override
20 | public String onSyncMessage(int instanceId, String message) {
21 | return "From java sync:" + message;
22 | }
23 |
24 | @Override
25 | public void onBinaryMessage(int instanceId, byte[] message) {
26 | postBinaryMessage(instanceId, message);
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/application/common/constants.cc:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 | // Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved
3 | // Use of this source code is governed by a BSD-style license that can be
4 | // found in the LICENSE file.
5 |
6 | #include "xwalk/application/common/constants.h"
7 |
8 | namespace xwalk {
9 | namespace application {
10 |
11 | // TODO(xiang): might rename this according to the spec.
12 | const char kApplicationScheme[] = "app";
13 | const base::FilePath::CharType kManifestXpkFilename[] =
14 | FILE_PATH_LITERAL("manifest.json");
15 | const base::FilePath::CharType kManifestWgtFilename[] =
16 | FILE_PATH_LITERAL("config.xml");
17 | const base::FilePath::CharType kMessagesFilename[] =
18 | FILE_PATH_LITERAL("messages.json");
19 | const char kGeneratedMainDocumentFilename[] =
20 | "_generated_main_document.html";
21 | const base::FilePath::CharType kCookieDatabaseFilename[] =
22 | FILE_PATH_LITERAL("ApplicationCookies");
23 |
24 | } // namespace application
25 | } // namespace xwalk
26 |
--------------------------------------------------------------------------------
/runtime/android/sample/src/org/xwalk/core/sample/XWalkVersionAndAPIVersion.java:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2014 Intel Corporation. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | package org.xwalk.core.sample;
6 |
7 | import org.xwalk.core.XWalkView;
8 |
9 | import android.os.Bundle;
10 | import android.widget.TextView;
11 |
12 | public class XWalkVersionAndAPIVersion extends XWalkBaseActivity {
13 |
14 | @Override
15 | protected void onCreate(Bundle savedInstanceState) {
16 | super.onCreate(savedInstanceState);
17 | setContentView(R.layout.version_layout);
18 | mXWalkView = (XWalkView) findViewById(R.id.xwalkview);
19 | String apiVersion = mXWalkView.getAPIVersion();
20 | String xwalkVersion = mXWalkView.getXWalkVersion();
21 | TextView text1 = (TextView) super.findViewById(R.id.text1);
22 | text1.setText("API Version: " + apiVersion + "; XWalk Version: " + xwalkVersion);
23 | mXWalkView.load("", "");
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/tools/tar.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2013 Intel Corporation. All rights reserved.
2 | # Use of this source code is governed by a BSD-style license that can be
3 | # found in the LICENSE file.
4 |
5 | import os
6 | import sys
7 | import tarfile
8 |
9 | def main(args):
10 | if len(args) != 1:
11 | print 'You must provide only one argument: folder to pack'
12 | return 1
13 | dir_to_tar = args[0]
14 | if dir_to_tar.endswith(os.path.sep):
15 | dir_to_tar = dir_to_tar[:-1]
16 | if not os.path.isdir(dir_to_tar):
17 | print '%s does not exist or not a directory' % dir_to_tar
18 | return 1
19 |
20 | work_dir, dir_name = os.path.split(dir_to_tar)
21 | tar_filename = dir_name + ".tar.gz"
22 | cur_cwd = os.getcwd()
23 | try:
24 | os.chdir(work_dir)
25 | tar = tarfile.open(tar_filename, "w:gz")
26 | for root, _, files in os.walk(dir_name):
27 | for f in files:
28 | tar.add(os.path.join(root, f))
29 | tar.close()
30 | finally:
31 | os.chdir(cur_cwd)
32 |
33 |
34 | if __name__ == '__main__':
35 | sys.exit(main(sys.argv[1:]))
36 |
--------------------------------------------------------------------------------
/extensions/common/xwalk_extension_permission_types.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2014 Intel Corporation. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | #ifndef XWALK_EXTENSIONS_COMMON_XWALK_EXTENSION_PERMISSION_TYPES_H_
6 | #define XWALK_EXTENSIONS_COMMON_XWALK_EXTENSION_PERMISSION_TYPES_H_
7 |
8 | namespace xwalk {
9 | namespace extensions {
10 |
11 | // TODO(Bai): For the moment, the enum value must be strictly aligned with
12 | // what is defined in application/common/permission_types.h
13 | // Move the header into some common place where both application and extension
14 | // can access.
15 | enum RuntimePermission {
16 | ALLOW_ONCE = 0,
17 | ALLOW_SESSION,
18 | ALLOW_ALWAYS,
19 | DENY_ONCE,
20 | DENY_SESSION,
21 | DENY_ALWAYS,
22 | UNDEFINED_RUNTIME_PERM,
23 | };
24 |
25 | typedef base::Callback PermissionCallback;
26 |
27 | } // namespace extensions
28 | } // namespace xwalk
29 |
30 | #endif // XWALK_EXTENSIONS_COMMON_XWALK_EXTENSION_PERMISSION_TYPES_H_
31 |
--------------------------------------------------------------------------------
/test/android/data/full_screen_video_test.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
20 |
21 |
22 |
23 | Big enough you can't miss it
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/test/android/runtime_client/javatests/src/org/xwalk/runtime/client/test/CSPTest.java:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 | // Copyright (c) 2013 Intel Corporation. All rights reserved.
3 | // Use of this source code is governed by a BSD-style license that can be
4 | // found in the LICENSE file.
5 |
6 | package org.xwalk.runtime.client.test;
7 |
8 | import android.test.suitebuilder.annotation.SmallTest;
9 | import org.chromium.base.test.util.Feature;
10 | import org.xwalk.runtime.client.shell.XWalkRuntimeClientShellActivity;
11 | import org.xwalk.test.util.RuntimeClientApiTestBase;
12 |
13 | /**
14 | * Test suite for CSP.
15 | */
16 | public class CSPTest extends XWalkRuntimeClientTestBase {
17 |
18 | @SmallTest
19 | @Feature({"CSP"})
20 | public void testCSP() throws Throwable {
21 | RuntimeClientApiTestBase helper =
22 | new RuntimeClientApiTestBase(
23 | getTestUtil(), this);
24 | helper.testCSP();
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/runtime/browser/android/net/init_native_callback.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | #ifndef XWALK_RUNTIME_BROWSER_ANDROID_NET_INIT_NATIVE_CALLBACK_H_
6 | #define XWALK_RUNTIME_BROWSER_ANDROID_NET_INIT_NATIVE_CALLBACK_H_
7 |
8 | #include
9 |
10 | #include "base/memory/ref_counted.h"
11 |
12 | namespace base {
13 | class SingleThreadTaskRunner;
14 | }
15 |
16 | namespace net {
17 | class CookieStore;
18 | } // namespace net
19 |
20 | namespace xwalk {
21 |
22 | // Gets the TaskRunner that the CookieStore must be called on.
23 | scoped_refptr GetCookieStoreTaskRunner();
24 |
25 | // Gets a pointer to the CookieStore managed by the CookieManager.
26 | // The CookieStore is never deleted. May only be called on the
27 | // CookieStore's TaskRunner.
28 | net::CookieStore* GetCookieStore();
29 |
30 | } // namespace xwalk
31 |
32 | #endif // XWALK_RUNTIME_BROWSER_ANDROID_NET_INIT_NATIVE_CALLBACK_H_
33 |
--------------------------------------------------------------------------------
/runtime/browser/runtime_platform_util_android.cc:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2013 Intel Corporation. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | #include "xwalk/runtime/browser/runtime_platform_util.h"
6 |
7 | #include "ui/android/view_android.h"
8 |
9 | namespace platform_util {
10 |
11 | gfx::NativeWindow GetTopLevel(gfx::NativeView view) {
12 | return view->GetWindowAndroid();
13 | }
14 |
15 | gfx::NativeView GetParent(gfx::NativeView view) {
16 | return view;
17 | }
18 |
19 | bool IsWindowActive(gfx::NativeWindow window) {
20 | NOTIMPLEMENTED();
21 | return false;
22 | }
23 |
24 | void ActivateWindow(gfx::NativeWindow window) {
25 | NOTIMPLEMENTED();
26 | }
27 |
28 | bool IsVisible(gfx::NativeView view) {
29 | NOTIMPLEMENTED();
30 | return true;
31 | }
32 |
33 | void OpenExternal(const GURL& url) {
34 | NOTIMPLEMENTED();
35 | }
36 |
37 | void SetPreferredScreenOrientation(const std::string& orientation) {
38 | NOTIMPLEMENTED();
39 | }
40 |
41 | } // namespace platform_util
42 |
--------------------------------------------------------------------------------
/experimental/native_file_system/virtual_root_provider.cc:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2014 Intel Corporation. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | #include "xwalk/experimental/native_file_system/virtual_root_provider.h"
6 |
7 | #include
8 | #include
9 | #include
10 |
11 | #include "base/lazy_instance.h"
12 | #include "base/macros.h"
13 |
14 | namespace {
15 |
16 | base::LazyInstance::Leaky g_lazy_instance;
17 |
18 | } // namespace
19 |
20 | VirtualRootProvider* VirtualRootProvider::GetInstance() {
21 | return g_lazy_instance.Pointer();
22 | }
23 |
24 | std::string VirtualRootProvider::GetRealPath(const std::string& virtual_root) {
25 | std::string uppercase_virtual_root = virtual_root;
26 | std::transform(virtual_root.begin(), virtual_root.end(),
27 | uppercase_virtual_root.begin(), ::toupper);
28 | return virtual_root_map_[uppercase_virtual_root].AsUTF8Unsafe();
29 | }
30 |
31 | VirtualRootProvider::~VirtualRootProvider() {}
32 |
--------------------------------------------------------------------------------
/runtime/android/core_internal/src/org/xwalk/core/internal/extension/api/DisplayManagerNull.java:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2013 Intel Corporation. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | package org.xwalk.core.internal.extension.api;
6 |
7 | import android.view.Display;
8 |
9 | /**
10 | * A empty implementation for build version lower than API level 17.
11 | */
12 | public class DisplayManagerNull extends XWalkDisplayManager {
13 | private final static Display[] NO_DISPLAYS = {};
14 |
15 | public DisplayManagerNull() {
16 | }
17 |
18 | @Override
19 | public Display getDisplay(int displayId) {
20 | return null;
21 | }
22 |
23 | @Override
24 | public Display[] getDisplays() {
25 | return NO_DISPLAYS;
26 | }
27 |
28 | @Override
29 | public Display[] getDisplays(String category) {
30 | return NO_DISPLAYS;
31 | }
32 |
33 | @Override
34 | public Display[] getPresentationDisplays() {
35 | return NO_DISPLAYS;
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/runtime/browser/android/scoped_allow_wait_for_legacy_web_view_api.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | #ifndef XWALK_RUNTIME_BROWSER_ANDROID_SCOPED_ALLOW_WAIT_FOR_LEGACY_WEB_VIEW_API_H_
6 | #define XWALK_RUNTIME_BROWSER_ANDROID_SCOPED_ALLOW_WAIT_FOR_LEGACY_WEB_VIEW_API_H_
7 |
8 | #include "base/threading/thread_restrictions.h"
9 |
10 | // This class is only available when building the chromium back-end for android
11 | // webview: it is required where API backward compatibility demands that the UI
12 | // thread must block waiting on other threads e.g. to obtain a synchronous
13 | // return value. Long term, asynchronous overloads of all such methods will be
14 | // added in the public API, and and no new uses of this will be allowed.
15 | class ScopedAllowWaitForLegacyWebViewApi {
16 | private:
17 | base::ThreadRestrictions::ScopedAllowWait wait;
18 | };
19 |
20 | #endif // XWALK_RUNTIME_BROWSER_ANDROID_SCOPED_ALLOW_WAIT_FOR_LEGACY_WEB_VIEW_API_H_
21 |
--------------------------------------------------------------------------------
/test/android/core/javatests/src/org/xwalk/core/xwview/test/GetCompositingSurfaceTypeTest.java:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2016 Intel Corporation. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | package org.xwalk.core.xwview.test;
6 |
7 | import android.test.suitebuilder.annotation.SmallTest;
8 |
9 | import org.chromium.base.test.util.Feature;
10 | import org.xwalk.core.XWalkPreferences;
11 |
12 |
13 | /**
14 | * Test suite for getCompositingSurfaceType().
15 | */
16 | public class GetCompositingSurfaceTypeTest extends XWalkViewTestBase {
17 |
18 | @Override
19 | public void setUp() throws Exception {
20 | XWalkPreferences.setValue(XWalkPreferences.ANIMATABLE_XWALK_VIEW, true);
21 | super.setUp();
22 | }
23 |
24 | @SmallTest
25 | @Feature({"GetCompositingSurfaceType"})
26 | public void testGetCompositingSurfaceType() throws Throwable {
27 | String surfaceType = getCompositingSurfaceTypeOnUiThread();
28 | assertEquals("TextureView", surfaceType);
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/test/android/runtime_client/javatests/src/org/xwalk/runtime/client/test/XWalkRuntimeClientTestBase.java:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 | // Copyright (c) 2013 Intel Corporation. All rights reserved.
3 | // Use of this source code is governed by a BSD-style license that can be
4 | // found in the LICENSE file.
5 |
6 | package org.xwalk.runtime.client.test;
7 |
8 | import android.app.Activity;
9 | import android.test.ActivityInstrumentationTestCase2;
10 |
11 | import org.xwalk.runtime.client.shell.XWalkRuntimeClientShellActivity;
12 | import org.xwalk.test.util.XWalkRuntimeClientTestGeneric;
13 | import org.xwalk.test.util.XWalkRuntimeClientTestUtilBase;
14 | import org.xwalk.test.util.XWalkRuntimeClientTestUtilBase.PageStatusCallback;
15 |
16 | public class XWalkRuntimeClientTestBase
17 | extends XWalkRuntimeClientTestGeneric {
18 |
19 | public XWalkRuntimeClientTestBase() {
20 | super(XWalkRuntimeClientShellActivity.class);
21 | }
22 |
23 | @Override
24 | public void postSetUp() {
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/extensions/test/data/crash_demo.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | 0
4 |
5 |
6 | Counter: 0
7 |
8 |
45 |
46 |
47 |
--------------------------------------------------------------------------------