rho-tau-extensions 5.5.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG.md +2 -0
- data/LICENSE +21 -0
- data/README.md +6 -0
- data/Rakefile +90 -0
- data/libs/crosswalk.rb +2 -0
- data/libs/crosswalk/crosswalk.rb +2 -0
- data/libs/crosswalk/ext.yml +21 -0
- data/libs/crosswalk/ext/Crosswalk.xml +27 -0
- data/libs/crosswalk/ext/build +19 -0
- data/libs/crosswalk/ext/build.bat +29 -0
- data/libs/crosswalk/ext/platform/android/AndroidManifest.xml +9 -0
- data/libs/crosswalk/ext/platform/android/Rakefile +141 -0
- data/libs/crosswalk/ext/platform/android/adds/lib/armeabi/libxwalkcore.so +0 -0
- data/libs/crosswalk/ext/platform/android/adds/lib/armeabi/libxwalkdummy.so +0 -0
- data/libs/crosswalk/ext/platform/android/adds/lib/x86/libxwalkcore.so +0 -0
- data/libs/crosswalk/ext/platform/android/adds/lib/x86/libxwalkdummy.so +0 -0
- data/libs/crosswalk/ext/platform/android/adds/lib/xwalk_core_library_java.jar +0 -0
- data/libs/crosswalk/ext/platform/android/adds/res/drawable-hdpi/bubble.9.png +0 -0
- data/libs/crosswalk/ext/platform/android/adds/res/drawable-hdpi/bubble_arrow_up.png +0 -0
- data/libs/crosswalk/ext/platform/android/adds/res/drawable-hdpi/color_picker_advanced_select_handle.png +0 -0
- data/libs/crosswalk/ext/platform/android/adds/res/drawable-hdpi/crosswalk.png +0 -0
- data/libs/crosswalk/ext/platform/android/adds/res/drawable-hdpi/dropdown_popup_background_down.9.png +0 -0
- data/libs/crosswalk/ext/platform/android/adds/res/drawable-hdpi/dropdown_popup_background_up.9.png +0 -0
- data/libs/crosswalk/ext/platform/android/adds/res/drawable-hdpi/ic_menu_share_holo_light.png +0 -0
- data/libs/crosswalk/ext/platform/android/adds/res/drawable-hdpi/ic_search.png +0 -0
- data/libs/crosswalk/ext/platform/android/adds/res/drawable-hdpi/ic_warning.png +0 -0
- data/libs/crosswalk/ext/platform/android/adds/res/drawable-hdpi/ondemand_overlay.9.png +0 -0
- data/libs/crosswalk/ext/platform/android/adds/res/drawable-hdpi/verify_checkmark.png +0 -0
- data/libs/crosswalk/ext/platform/android/adds/res/drawable-ldpi/crosswalk.png +0 -0
- data/libs/crosswalk/ext/platform/android/adds/res/drawable-mdpi/crosswalk.png +0 -0
- data/libs/crosswalk/ext/platform/android/adds/res/drawable-v21/button_borderless_compat.xml +10 -0
- data/libs/crosswalk/ext/platform/android/adds/res/drawable-v21/button_compat.xml +9 -0
- data/libs/crosswalk/ext/platform/android/adds/res/drawable-xhdpi/bubble.9.png +0 -0
- data/libs/crosswalk/ext/platform/android/adds/res/drawable-xhdpi/bubble_arrow_up.png +0 -0
- data/libs/crosswalk/ext/platform/android/adds/res/drawable-xhdpi/color_picker_advanced_select_handle.png +0 -0
- data/libs/crosswalk/ext/platform/android/adds/res/drawable-xhdpi/crosswalk.png +0 -0
- data/libs/crosswalk/ext/platform/android/adds/res/drawable-xhdpi/dropdown_popup_background_down.9.png +0 -0
- data/libs/crosswalk/ext/platform/android/adds/res/drawable-xhdpi/dropdown_popup_background_up.9.png +0 -0
- data/libs/crosswalk/ext/platform/android/adds/res/drawable-xhdpi/ic_menu_share_holo_light.png +0 -0
- data/libs/crosswalk/ext/platform/android/adds/res/drawable-xhdpi/ic_search.png +0 -0
- data/libs/crosswalk/ext/platform/android/adds/res/drawable-xhdpi/ic_warning.png +0 -0
- data/libs/crosswalk/ext/platform/android/adds/res/drawable-xhdpi/ondemand_overlay.9.png +0 -0
- data/libs/crosswalk/ext/platform/android/adds/res/drawable-xhdpi/verify_checkmark.png +0 -0
- data/libs/crosswalk/ext/platform/android/adds/res/drawable-xxhdpi/ic_menu_share_holo_light.png +0 -0
- data/libs/crosswalk/ext/platform/android/adds/res/drawable-xxhdpi/ic_search.png +0 -0
- data/libs/crosswalk/ext/platform/android/adds/res/drawable-xxhdpi/ic_warning.png +0 -0
- data/libs/crosswalk/ext/platform/android/adds/res/drawable-xxhdpi/verify_checkmark.png +0 -0
- data/libs/crosswalk/ext/platform/android/adds/res/drawable-xxxhdpi/ic_menu_share_holo_light.png +0 -0
- data/libs/crosswalk/ext/platform/android/adds/res/drawable-xxxhdpi/ic_search.png +0 -0
- data/libs/crosswalk/ext/platform/android/adds/res/drawable-xxxhdpi/ic_warning.png +0 -0
- data/libs/crosswalk/ext/platform/android/adds/res/drawable-xxxhdpi/verify_checkmark.png +0 -0
- data/libs/crosswalk/ext/platform/android/adds/res/drawable/autofill_chip_inset.xml +15 -0
- data/libs/crosswalk/ext/platform/android/adds/res/drawable/bubble.9.png +0 -0
- data/libs/crosswalk/ext/platform/android/adds/res/drawable/bubble_arrow_up.png +0 -0
- data/libs/crosswalk/ext/platform/android/adds/res/drawable/button_compat_shape.xml +9 -0
- data/libs/crosswalk/ext/platform/android/adds/res/drawable/color_button_background.xml +36 -0
- data/libs/crosswalk/ext/platform/android/adds/res/drawable/color_picker_advanced_select_handle.png +0 -0
- data/libs/crosswalk/ext/platform/android/adds/res/drawable/color_picker_border.xml +12 -0
- data/libs/crosswalk/ext/platform/android/adds/res/drawable/dropdown_label_color.xml +11 -0
- data/libs/crosswalk/ext/platform/android/adds/res/drawable/dropdown_popup_background.xml +13 -0
- data/libs/crosswalk/ext/platform/android/adds/res/drawable/dropdown_popup_background_down.9.png +0 -0
- data/libs/crosswalk/ext/platform/android/adds/res/drawable/dropdown_popup_background_up.9.png +0 -0
- data/libs/crosswalk/ext/platform/android/adds/res/drawable/ic_menu_share_holo_light.png +0 -0
- data/libs/crosswalk/ext/platform/android/adds/res/drawable/ic_search.png +0 -0
- data/libs/crosswalk/ext/platform/android/adds/res/drawable/ic_warning.png +0 -0
- data/libs/crosswalk/ext/platform/android/adds/res/drawable/launchscreen_bg.xml +19 -0
- data/libs/crosswalk/ext/platform/android/adds/res/drawable/ondemand_overlay.9.png +0 -0
- data/libs/crosswalk/ext/platform/android/adds/res/drawable/verify_checkmark.png +0 -0
- data/libs/crosswalk/ext/platform/android/adds/res/layout-land/date_time_picker_dialog.xml +42 -0
- data/libs/crosswalk/ext/platform/android/adds/res/layout-v17/autofill_keyboard_accessory_item.xml +40 -0
- data/libs/crosswalk/ext/platform/android/adds/res/layout-v17/autofill_suggestion_item.xml +18 -0
- data/libs/crosswalk/ext/platform/android/adds/res/layout-v17/color_picker_advanced_component.xml +46 -0
- data/libs/crosswalk/ext/platform/android/adds/res/layout-v17/color_picker_dialog_content.xml +51 -0
- data/libs/crosswalk/ext/platform/android/adds/res/layout-v17/color_picker_dialog_title.xml +41 -0
- data/libs/crosswalk/ext/platform/android/adds/res/layout-v17/date_time_suggestion.xml +35 -0
- data/libs/crosswalk/ext/platform/android/adds/res/layout-v17/dropdown_item.xml +58 -0
- data/libs/crosswalk/ext/platform/android/adds/res/layout-v17/multi_field_time_picker_dialog.xml +122 -0
- data/libs/crosswalk/ext/platform/android/adds/res/layout-v17/two_field_date_picker.xml +38 -0
- data/libs/crosswalk/ext/platform/android/adds/res/layout-v17/validation_message_bubble.xml +72 -0
- data/libs/crosswalk/ext/platform/android/adds/res/layout/autofill_keyboard_accessory_icon.xml +13 -0
- data/libs/crosswalk/ext/platform/android/adds/res/layout/autofill_keyboard_accessory_item.xml +17 -0
- data/libs/crosswalk/ext/platform/android/adds/res/layout/autofill_suggestion_item.xml +7 -0
- data/libs/crosswalk/ext/platform/android/adds/res/layout/color_picker_advanced_component.xml +30 -0
- data/libs/crosswalk/ext/platform/android/adds/res/layout/color_picker_dialog_content.xml +36 -0
- data/libs/crosswalk/ext/platform/android/adds/res/layout/color_picker_dialog_title.xml +25 -0
- data/libs/crosswalk/ext/platform/android/adds/res/layout/date_time_picker_dialog.xml +42 -0
- data/libs/crosswalk/ext/platform/android/adds/res/layout/date_time_suggestion.xml +16 -0
- data/libs/crosswalk/ext/platform/android/adds/res/layout/dropdown_item.xml +34 -0
- data/libs/crosswalk/ext/platform/android/adds/res/layout/multi_field_time_picker_dialog.xml +50 -0
- data/libs/crosswalk/ext/platform/android/adds/res/layout/two_field_date_picker.xml +26 -0
- data/libs/crosswalk/ext/platform/android/adds/res/layout/validation_message_bubble.xml +47 -0
- data/libs/crosswalk/ext/platform/android/adds/res/menu/select_action_menu.xml +54 -0
- data/libs/crosswalk/ext/platform/android/adds/res/raw/contacts_api.js +206 -0
- data/libs/crosswalk/ext/platform/android/adds/res/raw/device_capabilities_api.js +231 -0
- data/libs/crosswalk/ext/platform/android/adds/res/raw/empty.wav +0 -0
- data/libs/crosswalk/ext/platform/android/adds/res/raw/icudtl.dat +0 -0
- data/libs/crosswalk/ext/platform/android/adds/res/raw/launch_screen_api.js +9 -0
- data/libs/crosswalk/ext/platform/android/adds/res/raw/messaging_api.js +359 -0
- data/libs/crosswalk/ext/platform/android/adds/res/raw/presentation_api.js +144 -0
- data/libs/crosswalk/ext/platform/android/adds/res/raw/wifidirect_api.js +227 -0
- data/libs/crosswalk/ext/platform/android/adds/res/raw/xwalk.pak +0 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values-am/android_content_strings.xml +15 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values-am/android_ui_strings.xml +47 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values-ar/android_content_strings.xml +15 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values-ar/android_ui_strings.xml +47 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values-bg/android_content_strings.xml +15 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values-bg/android_ui_strings.xml +47 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values-ca/android_content_strings.xml +15 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values-ca/android_ui_strings.xml +47 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values-cs/android_content_strings.xml +15 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values-cs/android_ui_strings.xml +47 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values-da/android_content_strings.xml +15 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values-da/android_ui_strings.xml +47 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values-de/android_content_strings.xml +15 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values-de/android_ui_strings.xml +47 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values-el/android_content_strings.xml +15 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values-el/android_ui_strings.xml +47 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values-en-rGB/android_content_strings.xml +15 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values-en-rGB/android_ui_strings.xml +47 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values-es-rUS/android_content_strings.xml +15 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values-es-rUS/android_ui_strings.xml +47 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values-es/android_content_strings.xml +15 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values-es/android_ui_strings.xml +47 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values-fa/android_content_strings.xml +15 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values-fa/android_ui_strings.xml +47 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values-fi/android_content_strings.xml +15 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values-fi/android_ui_strings.xml +47 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values-fr/android_content_strings.xml +15 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values-fr/android_ui_strings.xml +47 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values-hi/android_content_strings.xml +15 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values-hi/android_ui_strings.xml +47 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values-hr/android_content_strings.xml +15 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values-hr/android_ui_strings.xml +47 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values-hu/android_content_strings.xml +15 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values-hu/android_ui_strings.xml +47 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values-in/android_content_strings.xml +15 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values-in/android_ui_strings.xml +47 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values-it/android_content_strings.xml +15 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values-it/android_ui_strings.xml +47 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values-iw/android_content_strings.xml +15 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values-iw/android_ui_strings.xml +47 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values-ja/android_content_strings.xml +15 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values-ja/android_ui_strings.xml +47 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values-ko/android_content_strings.xml +15 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values-ko/android_ui_strings.xml +47 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values-lt/android_content_strings.xml +15 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values-lt/android_ui_strings.xml +47 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values-lv/android_content_strings.xml +15 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values-lv/android_ui_strings.xml +47 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values-nb/android_content_strings.xml +15 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values-nb/android_ui_strings.xml +47 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values-nl/android_content_strings.xml +15 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values-nl/android_ui_strings.xml +47 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values-pl/android_content_strings.xml +15 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values-pl/android_ui_strings.xml +47 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values-pt-rBR/android_content_strings.xml +15 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values-pt-rBR/android_ui_strings.xml +47 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values-pt-rPT/android_content_strings.xml +15 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values-pt-rPT/android_ui_strings.xml +47 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values-ro/android_content_strings.xml +15 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values-ro/android_ui_strings.xml +47 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values-ru/android_content_strings.xml +15 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values-ru/android_ui_strings.xml +47 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values-sk/android_content_strings.xml +15 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values-sk/android_ui_strings.xml +47 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values-sl/android_content_strings.xml +15 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values-sl/android_ui_strings.xml +47 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values-sr/android_content_strings.xml +15 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values-sr/android_ui_strings.xml +47 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values-sv/android_content_strings.xml +15 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values-sv/android_ui_strings.xml +47 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values-sw/android_content_strings.xml +15 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values-sw/android_ui_strings.xml +47 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values-th/android_content_strings.xml +15 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values-th/android_ui_strings.xml +47 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values-tl/android_content_strings.xml +15 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values-tl/android_ui_strings.xml +47 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values-tr/android_content_strings.xml +15 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values-tr/android_ui_strings.xml +47 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values-uk/android_content_strings.xml +15 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values-uk/android_ui_strings.xml +47 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values-v14/theme.xml +16 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values-v17/styles.xml +19 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values-v17/ui_java_styles.xml +41 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values-v21/styles.xml +14 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values-v21/ui_java_styles.xml +14 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values-vi/android_content_strings.xml +15 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values-vi/android_ui_strings.xml +47 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values-zh-rCN/android_content_strings.xml +15 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values-zh-rCN/android_ui_strings.xml +47 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values-zh-rTW/android_content_strings.xml +15 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values-zh-rTW/android_ui_strings.xml +47 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values/android_content_strings.xml +15 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values/android_ui_strings.xml +47 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values/android_xwalk_strings.xml +17 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values/ui_java_attrs.xml +9 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values/ui_java_dimens.xml +31 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values/ui_java_strings.xml +16 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values/ui_java_styles.xml +101 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values/xwalk_app_strings.xml +28 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values/xwalk_attrs.xml +11 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values/xwalk_colors.xml +13 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values/xwalk_core_internal_java_strings.xml +16 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values/xwalk_core_java_strings.xml +16 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values/xwalk_dimens.xml +11 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values/xwalk_resources_list.xml +7 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values/xwalk_styles.xml +40 -0
- data/libs/crosswalk/ext/platform/android/adds/res/values/xwalk_values.xml +10 -0
- data/libs/crosswalk/ext/platform/android/ext_java.files +14 -0
- data/libs/crosswalk/ext/platform/android/ext_native.files +7 -0
- data/libs/crosswalk/ext/platform/android/jni/Crosswalk_impl.cpp +61 -0
- data/libs/crosswalk/ext/platform/android/src/com/rho/crosswalk/Crosswalk.java +14 -0
- data/libs/crosswalk/ext/platform/android/src/com/rho/crosswalk/CrosswalkFactory.java +18 -0
- data/libs/crosswalk/ext/platform/android/src/com/rho/crosswalk/CrosswalkSingleton.java +24 -0
- data/libs/crosswalk/ext/platform/android/src/com/tautechnologies/tau/crosswalk/CrosswalkExtension.java +16 -0
- data/libs/crosswalk/ext/platform/android/src/com/tautechnologies/tau/crosswalk/RhodesListener.java +18 -0
- data/libs/crosswalk/ext/platform/android/src/com/tautechnologies/tau/crosswalk/TauXWResourceClient.java +182 -0
- data/libs/crosswalk/ext/platform/android/src/com/tautechnologies/tau/crosswalk/TauXWUIClient.java +125 -0
- data/libs/crosswalk/ext/platform/android/src/com/tautechnologies/tau/crosswalk/TauXWalkWebView.java +368 -0
- data/libs/crosswalk/ext/platform/iphone/Crosswalk.xcodeproj/project.pbxproj +368 -0
- data/libs/crosswalk/ext/platform/iphone/Crosswalk_Prefix.pch +7 -0
- data/libs/crosswalk/ext/platform/iphone/Rakefile +73 -0
- data/libs/crosswalk/ext/platform/iphone/impl/Crosswalk.h +14 -0
- data/libs/crosswalk/ext/platform/iphone/impl/Crosswalk.m +24 -0
- data/libs/crosswalk/ext/platform/iphone/impl/CrosswalkFactorySingleton.m +16 -0
- data/libs/crosswalk/ext/platform/iphone/impl/CrosswalkSetup.m +9 -0
- data/libs/crosswalk/ext/platform/iphone/impl/CrosswalkSingleton.h +17 -0
- data/libs/crosswalk/ext/platform/iphone/impl/CrosswalkSingleton.m +23 -0
- data/libs/crosswalk/ext/platform/iphone/impl/readme.txt +7 -0
- data/libs/crosswalk/ext/platform/qt/Crosswalk.pro +66 -0
- data/libs/crosswalk/ext/platform/qt/Rakefile +35 -0
- data/libs/crosswalk/ext/platform/qt/src/Crosswalk_impl.cpp +77 -0
- data/libs/crosswalk/ext/platform/wm/Crosswalk.sln +52 -0
- data/libs/crosswalk/ext/platform/wm/Crosswalk.vcproj +714 -0
- data/libs/crosswalk/ext/platform/wm/Crosswalk.vsprops +15 -0
- data/libs/crosswalk/ext/platform/wm/src/Crosswalk_impl.cpp +77 -0
- data/libs/crosswalk/ext/platform/wp8/Crosswalk.props +18 -0
- data/libs/crosswalk/ext/platform/wp8/Crosswalk.vcxproj +170 -0
- data/libs/crosswalk/ext/platform/wp8/Crosswalk.vcxproj.filters +50 -0
- data/libs/crosswalk/ext/platform/wp8/CrosswalkImpl.csproj +119 -0
- data/libs/crosswalk/ext/platform/wp8/CrosswalkImpl.props +8 -0
- data/libs/crosswalk/ext/platform/wp8/CrosswalkImpl.targets +7 -0
- data/libs/crosswalk/ext/platform/wp8/CrosswalkLib.props +18 -0
- data/libs/crosswalk/ext/platform/wp8/CrosswalkLib.vcxproj +185 -0
- data/libs/crosswalk/ext/platform/wp8/CrosswalkLib.vcxproj.filters +58 -0
- data/libs/crosswalk/ext/platform/wp8/src/Crosswalk_impl.cpp +76 -0
- data/libs/crosswalk/ext/platform/wp8/src/Crosswalk_impl.cs +69 -0
- data/libs/crosswalk/ext/platform/wp8/src/Properties/AssemblyInfo.cs +37 -0
- data/libs/enterprise-barcode/ext.yml +13 -0
- data/libs/enterprise-barcode/ext/barcode.xml +2144 -0
- data/libs/enterprise-barcode/ext/build +17 -0
- data/libs/enterprise-barcode/ext/build.bat +29 -0
- data/libs/enterprise-barcode/ext/platform/android/AndroidManifest.xml +31 -0
- data/libs/enterprise-barcode/ext/platform/android/ZXing_Info/AUTHORS +58 -0
- data/libs/enterprise-barcode/ext/platform/android/ZXing_Info/CHANGES +266 -0
- data/libs/enterprise-barcode/ext/platform/android/ZXing_Info/COPYING +201 -0
- data/libs/enterprise-barcode/ext/platform/android/ZXing_Info/README +11 -0
- data/libs/enterprise-barcode/ext/platform/android/additional_files/res/drawable-hdpi/cancel_icon.png +0 -0
- data/libs/enterprise-barcode/ext/platform/android/additional_files/res/drawable-hdpi/ok_icon.png +0 -0
- data/libs/enterprise-barcode/ext/platform/android/additional_files/res/drawable-hdpi/retake_icon.png +0 -0
- data/libs/enterprise-barcode/ext/platform/android/additional_files/res/drawable/cancel_icon.png +0 -0
- data/libs/enterprise-barcode/ext/platform/android/additional_files/res/drawable/ok_icon.png +0 -0
- data/libs/enterprise-barcode/ext/platform/android/additional_files/res/drawable/retake_icon.png +0 -0
- data/libs/enterprise-barcode/ext/platform/android/additional_files/res/layout/capture.xml +122 -0
- data/libs/enterprise-barcode/ext/platform/android/additional_files/res/raw/beep.ogg +0 -0
- data/libs/enterprise-barcode/ext/platform/android/additional_files/res/values/attrs.xml +20 -0
- data/libs/enterprise-barcode/ext/platform/android/additional_files/res/values/colors.xml +42 -0
- data/libs/enterprise-barcode/ext/platform/android/additional_files/res/values/ids.xml +31 -0
- data/libs/enterprise-barcode/ext/platform/android/adds/lib/armeabi/liballbarcode.a +0 -0
- data/libs/enterprise-barcode/ext/platform/android/adds/lib/x86/liballbarcode.a +0 -0
- data/libs/enterprise-barcode/ext/platform/android/allbarcode.jar +0 -0
- data/libs/enterprise-barcode/ext/platform/iphone/Barcode.xcodeproj/project.pbxproj +524 -0
- data/libs/enterprise-barcode/ext/platform/iphone/Barcode_Prefix.pch +7 -0
- data/libs/enterprise-barcode/ext/platform/iphone/Classes/BarcodeCallbackHelper.h +27 -0
- data/libs/enterprise-barcode/ext/platform/iphone/Classes/BarcodeCallbackHelper.mm +231 -0
- data/libs/enterprise-barcode/ext/platform/iphone/Classes/BarcodeViewController.h +95 -0
- data/libs/enterprise-barcode/ext/platform/iphone/Classes/BarcodeViewController.m +1017 -0
- data/libs/enterprise-barcode/ext/platform/iphone/Classes/BarcodeViewFactory.h +7 -0
- data/libs/enterprise-barcode/ext/platform/iphone/Classes/BarcodeViewFactory.mm +58 -0
- data/libs/enterprise-barcode/ext/platform/iphone/Classes/BarcodeViewFactoryRegister.mm +18 -0
- data/libs/enterprise-barcode/ext/platform/iphone/Classes/BarcodeViewManager.h +16 -0
- data/libs/enterprise-barcode/ext/platform/iphone/Classes/BarcodeViewManager.mm +32 -0
- data/libs/enterprise-barcode/ext/platform/iphone/Classes/ImageProvider.cpp +25 -0
- data/libs/enterprise-barcode/ext/platform/iphone/Classes/ImageProvider.h +15 -0
- data/libs/enterprise-barcode/ext/platform/iphone/Classes/ImageProvider.mm +159 -0
- data/libs/enterprise-barcode/ext/platform/iphone/Classes/barcode.m +123 -0
- data/libs/enterprise-barcode/ext/platform/iphone/Rakefile +69 -0
- data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/COPYING +27 -0
- data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Headers/ZBarSDK/ZBarCameraSimulator.h +45 -0
- data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Headers/ZBarSDK/ZBarCaptureReader.h +111 -0
- data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Headers/ZBarSDK/ZBarHelpController.h +60 -0
- data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Headers/ZBarSDK/ZBarImage.h +69 -0
- data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Headers/ZBarSDK/ZBarImageScanner.h +51 -0
- data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Headers/ZBarSDK/ZBarReaderController.h +142 -0
- data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Headers/ZBarSDK/ZBarReaderView.h +135 -0
- data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Headers/ZBarSDK/ZBarReaderViewController.h +130 -0
- data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Headers/ZBarSDK/ZBarSDK.h +34 -0
- data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Headers/ZBarSDK/ZBarSymbol.h +71 -0
- data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Headers/ZBarSDK/zbar.h +1497 -0
- data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Headers/ZBarSDK/zbar/Decoder.h +202 -0
- data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Headers/ZBarSDK/zbar/Exception.h +187 -0
- data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Headers/ZBarSDK/zbar/Image.h +321 -0
- data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Headers/ZBarSDK/zbar/ImageScanner.h +130 -0
- data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Headers/ZBarSDK/zbar/Processor.h +223 -0
- data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Headers/ZBarSDK/zbar/Scanner.h +162 -0
- data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Headers/ZBarSDK/zbar/Symbol.h +528 -0
- data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Headers/ZBarSDK/zbar/Video.h +170 -0
- data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Headers/ZBarSDK/zbar/Window.h +136 -0
- data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/LICENSE +504 -0
- data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/README +59 -0
- data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Resources/zbar-back.png +0 -0
- data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Resources/zbar-help.html +88 -0
- data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Resources/zbar-helpicons.png +0 -0
- data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Resources/zbar-samples.png +0 -0
- data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/libzbar.a +0 -0
- data/libs/enterprise-barcode/ext/platform/iphone/impl/Barcode.h +21 -0
- data/libs/enterprise-barcode/ext/platform/iphone/impl/Barcode.m +132 -0
- data/libs/enterprise-barcode/ext/platform/iphone/impl/BarcodeFactory.h +10 -0
- data/libs/enterprise-barcode/ext/platform/iphone/impl/BarcodeFactory.m +16 -0
- data/libs/enterprise-barcode/ext/platform/iphone/impl/BarcodeFactorySingleton.m +16 -0
- data/libs/enterprise-barcode/ext/platform/iphone/impl/BarcodeSetup.m +8 -0
- data/libs/enterprise-barcode/ext/platform/iphone/impl/BarcodeSingleton.h +17 -0
- data/libs/enterprise-barcode/ext/platform/iphone/impl/BarcodeSingleton.m +22 -0
- data/libs/enterprise-barcode/ext/platform/iphone/impl/readme.txt +7 -0
- data/libs/enterprise-barcode/ext/platform/wm/Barcode.sln +44 -0
- data/libs/enterprise-barcode/ext/platform/wm/Barcode.vcproj +836 -0
- data/libs/enterprise-barcode/ext/platform/wm/Barcode.vsprops +15 -0
- data/libs/enterprise-barcode/ext/platform/wm/readme.txt +0 -0
- data/libs/enterprise-barcode/ext/platform/wm/src/Barcode_impl.cpp +376 -0
- data/libs/enterprise-barcode/ext/platform/wm/src/DecodeNotifier.cpp +173 -0
- data/libs/enterprise-barcode/ext/platform/wm/src/DecodeNotifier.h +149 -0
- data/libs/enterprise-barcode/ext/platform/wm/src/EMDKInterfaceAbstraction.cpp +476 -0
- data/libs/enterprise-barcode/ext/platform/wm/src/GetDecoderProperties.cpp +1195 -0
- data/libs/enterprise-barcode/ext/platform/wm/src/GetScannerProperties.cpp +553 -0
- data/libs/enterprise-barcode/ext/platform/wm/src/KeyInjector.cpp +177 -0
- data/libs/enterprise-barcode/ext/platform/wm/src/KeyInjector.h +40 -0
- data/libs/enterprise-barcode/ext/platform/wm/src/NotificationLoader.cpp +76 -0
- data/libs/enterprise-barcode/ext/platform/wm/src/NotificationLoader.h +44 -0
- data/libs/enterprise-barcode/ext/platform/wm/src/RSM.cpp +1211 -0
- data/libs/enterprise-barcode/ext/platform/wm/src/Scanner.cpp +2609 -0
- data/libs/enterprise-barcode/ext/platform/wm/src/Scanner.h +1099 -0
- data/libs/enterprise-barcode/ext/platform/wm/src/ScannerDefines.h +322 -0
- data/libs/enterprise-barcode/ext/platform/wm/src/SetDecoderProperties.cpp +2106 -0
- data/libs/enterprise-barcode/ext/platform/wm/src/SetScannerProperties.cpp +1060 -0
- data/libs/enterprise-barcode/ext/platform/wm/src/Utilities.cpp +184 -0
- data/libs/enterprise-barcode/ext/platform/wp8/BarcodeImpl.csproj +119 -0
- data/libs/enterprise-barcode/ext/platform/wp8/BarcodeImpl.props +8 -0
- data/libs/enterprise-barcode/ext/platform/wp8/BarcodeImpl.targets +35 -0
- data/libs/enterprise-barcode/ext/platform/wp8/BarcodeLib.props +18 -0
- data/libs/enterprise-barcode/ext/platform/wp8/BarcodeLib.vcxproj +185 -0
- data/libs/enterprise-barcode/ext/platform/wp8/BarcodeLib.vcxproj.filters +58 -0
- data/libs/enterprise-barcode/ext/platform/wp8/lib/ARM/Nokia.Graphics.Imaging.dll +0 -0
- data/libs/enterprise-barcode/ext/platform/wp8/lib/ARM/Nokia.Graphics.Imaging.winmd +0 -0
- data/libs/enterprise-barcode/ext/platform/wp8/lib/ARM/Nokia.Graphics.Imaging.xml +4813 -0
- data/libs/enterprise-barcode/ext/platform/wp8/lib/ARM/Nokia.InteropServices.WindowsRuntime.dll +0 -0
- data/libs/enterprise-barcode/ext/platform/wp8/lib/ARM/Nokia.InteropServices.WindowsRuntime.winmd +0 -0
- data/libs/enterprise-barcode/ext/platform/wp8/lib/ARM/Nokia.InteropServices.WindowsRuntime.xml +41 -0
- data/libs/enterprise-barcode/ext/platform/wp8/lib/ARM/OpticalReaderLib.dll +0 -0
- data/libs/enterprise-barcode/ext/platform/wp8/lib/BarcodeReaderLib.XML +68 -0
- data/libs/enterprise-barcode/ext/platform/wp8/lib/BarcodeReaderLib.dll +0 -0
- data/libs/enterprise-barcode/ext/platform/wp8/lib/BarcodeReaderLib/BarcodeReaderLib.csproj +120 -0
- data/libs/enterprise-barcode/ext/platform/wp8/lib/BarcodeReaderLib/BarcodeReaderLib.sln +34 -0
- data/libs/enterprise-barcode/ext/platform/wp8/lib/BarcodeReaderLib/CameraNavigatePage.xaml +32 -0
- data/libs/enterprise-barcode/ext/platform/wp8/lib/BarcodeReaderLib/CameraNavigatePage.xaml.cs +235 -0
- data/libs/enterprise-barcode/ext/platform/wp8/lib/BarcodeReaderLib/OpticalReaderTask.cs +182 -0
- data/libs/enterprise-barcode/ext/platform/wp8/lib/BarcodeReaderLib/Properties/AssemblyInfo.cs +37 -0
- data/libs/enterprise-barcode/ext/platform/wp8/lib/Nokia.Graphics.Imaging.Managed.dll +0 -0
- data/libs/enterprise-barcode/ext/platform/wp8/lib/Nokia.Graphics.Imaging.Managed.xml +341 -0
- data/libs/enterprise-barcode/ext/platform/wp8/lib/x86/Nokia.Graphics.Imaging.dll +0 -0
- data/libs/enterprise-barcode/ext/platform/wp8/lib/x86/Nokia.Graphics.Imaging.winmd +0 -0
- data/libs/enterprise-barcode/ext/platform/wp8/lib/x86/Nokia.Graphics.Imaging.xml +4813 -0
- data/libs/enterprise-barcode/ext/platform/wp8/lib/x86/Nokia.InteropServices.WindowsRuntime.dll +0 -0
- data/libs/enterprise-barcode/ext/platform/wp8/lib/x86/Nokia.InteropServices.WindowsRuntime.winmd +0 -0
- data/libs/enterprise-barcode/ext/platform/wp8/lib/x86/Nokia.InteropServices.WindowsRuntime.xml +41 -0
- data/libs/enterprise-barcode/ext/platform/wp8/lib/x86/OpticalReaderLib.dll +0 -0
- data/libs/enterprise-barcode/ext/platform/wp8/lib/zxing.wp8.0.XML +10324 -0
- data/libs/enterprise-barcode/ext/platform/wp8/lib/zxing.wp8.0.dll +0 -0
- data/libs/enterprise-barcode/ext/platform/wp8/src/Barcode_impl.cs +630 -0
- data/libs/enterprise-barcode/ext/platform/wp8/src/Properties/AssemblyInfo.cs +37 -0
- data/libs/enterprise-barcode/public/api/generated/Rho.Barcode.js +772 -0
- data/libs/ie/rhobrowser.dll +0 -0
- data/libs/nodejs.rb +2 -0
- data/libs/nodejs/ext.yml +25 -0
- data/libs/nodejs/ext/Nodejs.xml +37 -0
- data/libs/nodejs/ext/build +19 -0
- data/libs/nodejs/ext/build.bat +29 -0
- data/libs/nodejs/ext/platform/android/Rakefile +161 -0
- data/libs/nodejs/ext/platform/android/ext_native.files +8 -0
- data/libs/nodejs/ext/platform/android/jxCore/jx.h +134 -0
- data/libs/nodejs/ext/platform/android/jxCore/jx_result.h +221 -0
- data/libs/nodejs/ext/platform/android/jxCore/libcares_arm.a +0 -0
- data/libs/nodejs/ext/platform/android/jxCore/libcares_ia32.a +0 -0
- data/libs/nodejs/ext/platform/android/jxCore/libcares_x64.a +0 -0
- data/libs/nodejs/ext/platform/android/jxCore/libchrome_zlib_arm.a +0 -0
- data/libs/nodejs/ext/platform/android/jxCore/libchrome_zlib_ia32.a +0 -0
- data/libs/nodejs/ext/platform/android/jxCore/libchrome_zlib_x64.a +0 -0
- data/libs/nodejs/ext/platform/android/jxCore/libhttp_parser_arm.a +0 -0
- data/libs/nodejs/ext/platform/android/jxCore/libhttp_parser_ia32.a +0 -0
- data/libs/nodejs/ext/platform/android/jxCore/libhttp_parser_x64.a +0 -0
- data/libs/nodejs/ext/platform/android/jxCore/libjx_arm.a +0 -0
- data/libs/nodejs/ext/platform/android/jxCore/libjx_ia32.a +0 -0
- data/libs/nodejs/ext/platform/android/jxCore/libjx_x64.a +0 -0
- data/libs/nodejs/ext/platform/android/jxCore/libopenssl_arm.a +0 -0
- data/libs/nodejs/ext/platform/android/jxCore/libopenssl_ia32.a +0 -0
- data/libs/nodejs/ext/platform/android/jxCore/libopenssl_x64.a +0 -0
- data/libs/nodejs/ext/platform/android/jxCore/libsqlite3_arm.a +0 -0
- data/libs/nodejs/ext/platform/android/jxCore/libsqlite3_ia32.a +0 -0
- data/libs/nodejs/ext/platform/android/jxCore/libsqlite3_x64.a +0 -0
- data/libs/nodejs/ext/platform/android/jxCore/libuv_arm.a +0 -0
- data/libs/nodejs/ext/platform/android/jxCore/libuv_ia32.a +0 -0
- data/libs/nodejs/ext/platform/android/jxCore/libuv_x64.a +0 -0
- data/libs/nodejs/ext/platform/android/jxCore/libv8_base_arm.a +0 -0
- data/libs/nodejs/ext/platform/android/jxCore/libv8_base_ia32.a +0 -0
- data/libs/nodejs/ext/platform/android/jxCore/libv8_base_x64.a +0 -0
- data/libs/nodejs/ext/platform/android/jxCore/libv8_nosnapshot_arm.a +0 -0
- data/libs/nodejs/ext/platform/android/jxCore/libv8_nosnapshot_ia32.a +0 -0
- data/libs/nodejs/ext/platform/android/jxCore/libv8_nosnapshot_x64.a +0 -0
- data/libs/nodejs/ext/platform/iphone/Nodejs.xcodeproj/project.pbxproj +350 -0
- data/libs/nodejs/ext/platform/iphone/Nodejs_Prefix.pch +7 -0
- data/libs/nodejs/ext/platform/iphone/Rakefile +73 -0
- data/libs/nodejs/ext/platform/iphone/jxCore/jx.h +134 -0
- data/libs/nodejs/ext/platform/iphone/jxCore/jx_result.h +221 -0
- data/libs/nodejs/ext/platform/iphone/jxCore/libcares.a +0 -0
- data/libs/nodejs/ext/platform/iphone/jxCore/libchrome_zlib.a +0 -0
- data/libs/nodejs/ext/platform/iphone/jxCore/libhttp_parser.a +0 -0
- data/libs/nodejs/ext/platform/iphone/jxCore/libjx.a +0 -0
- data/libs/nodejs/ext/platform/iphone/jxCore/libmozjs.a +0 -0
- data/libs/nodejs/ext/platform/iphone/jxCore/libopenssl.a +0 -0
- data/libs/nodejs/ext/platform/iphone/jxCore/libsqlite3.a +0 -0
- data/libs/nodejs/ext/platform/iphone/jxCore/libuv.a +0 -0
- data/libs/nodejs/ext/shared/jxcore/jx.h +134 -0
- data/libs/nodejs/ext/shared/jxcore/jx_result.h +221 -0
- data/libs/nodejs/ext/shared/jxcoretau.cpp +454 -0
- data/libs/nodejs/ext/shared/jxcoretau.h +20 -0
- data/libs/nodejs/ext/shared/nodejs_impl.cpp +106 -0
- data/libs/nodejs/nodejs.rb +2 -0
- data/libs/openssl-edge.rb +2 -0
- data/libs/openssl-edge/ext.yml +4 -0
- data/libs/openssl-edge/ext/Rakefile +145 -0
- data/libs/openssl-edge/ext/android/Rakefile +107 -0
- data/libs/openssl-edge/ext/android/ext_native.files +32 -0
- data/libs/openssl-edge/ext/android/extconf.h +91 -0
- data/libs/openssl-edge/ext/build +12 -0
- data/libs/openssl-edge/ext/build.bat +5 -0
- data/libs/openssl-edge/ext/extconf.rb +141 -0
- data/libs/openssl-edge/ext/openssl.pro +109 -0
- data/libs/openssl-edge/ext/openssl.sln +52 -0
- data/libs/openssl-edge/ext/openssl.vcproj +1010 -0
- data/libs/openssl-edge/ext/openssl_missing.c +1163 -0
- data/libs/openssl-edge/ext/openssl_missing.h +537 -0
- data/libs/openssl-edge/ext/ossl.c +1203 -0
- data/libs/openssl-edge/ext/ossl.h +242 -0
- data/libs/openssl-edge/ext/ossl_asn1.c +2008 -0
- data/libs/openssl-edge/ext/ossl_asn1.h +66 -0
- data/libs/openssl-edge/ext/ossl_bio.c +118 -0
- data/libs/openssl-edge/ext/ossl_bio.h +19 -0
- data/libs/openssl-edge/ext/ossl_bn.c +1153 -0
- data/libs/openssl-edge/ext/ossl_bn.h +23 -0
- data/libs/openssl-edge/ext/ossl_cipher.c +1085 -0
- data/libs/openssl-edge/ext/ossl_cipher.h +20 -0
- data/libs/openssl-edge/ext/ossl_config.c +89 -0
- data/libs/openssl-edge/ext/ossl_config.h +19 -0
- data/libs/openssl-edge/ext/ossl_digest.c +453 -0
- data/libs/openssl-edge/ext/ossl_digest.h +20 -0
- data/libs/openssl-edge/ext/ossl_engine.c +580 -0
- data/libs/openssl-edge/ext/ossl_engine.h +19 -0
- data/libs/openssl-edge/ext/ossl_hmac.c +398 -0
- data/libs/openssl-edge/ext/ossl_hmac.h +18 -0
- data/libs/openssl-edge/ext/ossl_ns_spki.c +406 -0
- data/libs/openssl-edge/ext/ossl_ns_spki.h +19 -0
- data/libs/openssl-edge/ext/ossl_ocsp.c +2013 -0
- data/libs/openssl-edge/ext/ossl_ocsp.h +23 -0
- data/libs/openssl-edge/ext/ossl_pkcs12.c +261 -0
- data/libs/openssl-edge/ext/ossl_pkcs12.h +13 -0
- data/libs/openssl-edge/ext/ossl_pkcs5.c +180 -0
- data/libs/openssl-edge/ext/ossl_pkcs5.h +6 -0
- data/libs/openssl-edge/ext/ossl_pkcs7.c +1157 -0
- data/libs/openssl-edge/ext/ossl_pkcs7.h +20 -0
- data/libs/openssl-edge/ext/ossl_pkey.c +469 -0
- data/libs/openssl-edge/ext/ossl_pkey.h +245 -0
- data/libs/openssl-edge/ext/ossl_pkey_dh.c +650 -0
- data/libs/openssl-edge/ext/ossl_pkey_dsa.c +672 -0
- data/libs/openssl-edge/ext/ossl_pkey_ec.c +1806 -0
- data/libs/openssl-edge/ext/ossl_pkey_rsa.c +768 -0
- data/libs/openssl-edge/ext/ossl_rand.c +238 -0
- data/libs/openssl-edge/ext/ossl_rand.h +18 -0
- data/libs/openssl-edge/ext/ossl_ssl.c +2724 -0
- data/libs/openssl-edge/ext/ossl_ssl.h +41 -0
- data/libs/openssl-edge/ext/ossl_ssl_session.c +352 -0
- data/libs/openssl-edge/ext/ossl_version.h +15 -0
- data/libs/openssl-edge/ext/ossl_x509.c +186 -0
- data/libs/openssl-edge/ext/ossl_x509.h +119 -0
- data/libs/openssl-edge/ext/ossl_x509attr.c +328 -0
- data/libs/openssl-edge/ext/ossl_x509cert.c +863 -0
- data/libs/openssl-edge/ext/ossl_x509crl.c +565 -0
- data/libs/openssl-edge/ext/ossl_x509ext.c +480 -0
- data/libs/openssl-edge/ext/ossl_x509name.c +547 -0
- data/libs/openssl-edge/ext/ossl_x509req.c +492 -0
- data/libs/openssl-edge/ext/ossl_x509revoked.c +279 -0
- data/libs/openssl-edge/ext/ossl_x509store.c +846 -0
- data/libs/openssl-edge/ext/ruby_missing.h +32 -0
- data/libs/openssl-edge/openssl-edge.rb +2 -0
- data/libs/openssl-edge/openssl.rb +24 -0
- data/libs/openssl-edge/openssl/bn.rb +35 -0
- data/libs/openssl-edge/openssl/buffering.rb +341 -0
- data/libs/openssl-edge/openssl/cipher.rb +65 -0
- data/libs/openssl-edge/openssl/digest.rb +61 -0
- data/libs/openssl-edge/openssl/ssl-internal.rb +180 -0
- data/libs/openssl-edge/openssl/ssl.rb +1 -0
- data/libs/openssl-edge/openssl/x509-internal.rb +153 -0
- data/libs/openssl-edge/openssl/x509.rb +1 -0
- data/libs/openssl.so-edge.rb +2 -0
- data/libs/openssl.so-edge/ext.yml +8 -0
- data/libs/openssl.so-edge/ext/Rakefile +140 -0
- data/libs/openssl.so-edge/ext/android/armeabi/libcrypto.a +0 -0
- data/libs/openssl.so-edge/ext/android/armeabi/libssl.a +0 -0
- data/libs/openssl.so-edge/ext/android/x86/libcrypto.a +0 -0
- data/libs/openssl.so-edge/ext/android/x86/libssl.a +0 -0
- data/libs/openssl.so-edge/ext/build +12 -0
- data/libs/openssl.so-edge/ext/build.bat +1 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/dh/dh_locl.h +56 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/dsa/dsa_locl.h +76 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/evp/evp_locl.h +66 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/hmac/hmac_lcl.h +33 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/include/internal/asn1_int.h +94 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/include/internal/async.h +14 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/include/internal/bn_conf.h +28 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/include/internal/bn_dh.h +17 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/include/internal/bn_int.h +82 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/include/internal/bn_srp.h +32 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/include/internal/chacha.h +49 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/include/internal/cryptlib.h +81 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/include/internal/cryptlib_int.h +31 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/include/internal/dso_conf.h +16 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/include/internal/engine.h +20 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/include/internal/err_int.h +17 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/include/internal/evp_int.h +382 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/include/internal/md32_common.h +383 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/include/internal/objects.h +12 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/include/internal/poly1305.h +19 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/include/internal/rand.h +20 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/include/internal/x509_int.h +267 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/ocsp/ocsp_lcl.h +216 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/rsa/rsa_locl.h +96 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/x509/x509_lcl.h +142 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/e_os.h +520 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/internal/bio.h +26 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/internal/comp.h +12 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/internal/conf.h +32 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/internal/constant_time_locl.h +185 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/internal/dane.h +103 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/internal/dso.h +216 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/internal/err.h +15 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/internal/numbers.h +68 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/internal/o_dir.h +63 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/internal/o_str.h +17 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/internal/thread_once.h +42 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/__DECC_INCLUDE_EPILOGUE.H +16 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/__DECC_INCLUDE_PROLOGUE.H +20 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/aes.h +92 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/asn1.h +1096 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/asn1_mac.h +10 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/asn1t.h +924 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/async.h +98 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/bio.h +854 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/blowfish.h +61 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/bn.h +575 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/buffer.h +76 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/camellia.h +83 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/cast.h +53 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/cmac.h +41 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/cms.h +512 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/comp.h +72 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/conf.h +216 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/conf_api.h +40 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/crypto.h +463 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/ct.h +518 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/des.h +174 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/dh.h +343 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/dsa.h +282 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/dtls1.h +56 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/e_os2.h +311 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/ebcdic.h +33 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/ec.h +1581 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/ecdh.h +10 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/ecdsa.h +10 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/engine.h +842 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/err.h +259 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/evp.h +1586 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/hmac.h +49 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/idea.h +64 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/kdf.h +75 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/lhash.h +204 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/md2.h +44 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/md4.h +51 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/md5.h +50 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/mdc2.h +42 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/modes.h +203 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/obj_mac.h +4577 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/objects.h +1097 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/ocsp.h +409 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/opensslconf.h +169 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/opensslconf.h.in +141 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/opensslv.h +105 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/ossl_typ.h +190 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/pem.h +501 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/pem2.h +20 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/pkcs12.h +282 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/pkcs7.h +404 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/rand.h +89 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/rc2.h +51 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/rc4.h +36 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/rc5.h +63 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/ripemd.h +47 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/rsa.h +588 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/safestack.h +164 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/seed.h +98 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/sha.h +119 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/srp.h +131 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/srtp.h +50 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/ssl.h +2527 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/ssl2.h +24 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/ssl3.h +307 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/stack.h +78 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/symhacks.h +52 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/tls1.h +972 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/ts.h +643 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/txt_db.h +57 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/ui.h +368 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/whrlpool.h +48 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/x509.h +1123 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/x509_vfy.h +539 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/x509v3.h +1005 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/ssl/packet_locl.h +555 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/ssl/record/record.h +240 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/ssl/record/record_locl.h +114 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/ssl/ssl_locl.h +2127 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/ssl/statem/statem.h +123 -0
- data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/ssl/statem/statem_locl.h +124 -0
- data/libs/openssl.so-edge/openssl.so.rb +2 -0
- data/libs/webkit.rb +2 -0
- data/libs/webkit/ext.yml +4 -0
- data/libs/webkit/ext/build +12 -0
- data/libs/webkit/ext/build.bat +7 -0
- data/libs/webkit/ext/wm/Rakefile +61 -0
- data/libs/webkit/ext/wm/RhoMsgs.cpp +17 -0
- data/libs/webkit/ext/wm/RhoMsgs.h +14 -0
- data/libs/webkit/ext/wm/RhoWKBrowserEngine.cpp +736 -0
- data/libs/webkit/ext/wm/RhoWKBrowserEngine.h +105 -0
- data/libs/webkit/ext/wm/lib/npapi/rhobridge.dll +0 -0
- data/libs/webkit/ext/wm/lib/rhoengine_defs.h +80 -0
- data/libs/webkit/ext/wm/lib/rhowebkit.dll +0 -0
- data/libs/webkit/ext/wm/webkit.sln +36 -0
- data/libs/webkit/ext/wm/webkit.suo +0 -0
- data/libs/webkit/ext/wm/webkit.vcproj +800 -0
- data/libs/webkit/ext/wm/webkit.vsprops +20 -0
- data/libs/webkit/webkit.rb +2 -0
- data/rho-tau-extensions.gemspec +23 -0
- data/version +1 -0
- metadata +705 -0
@@ -0,0 +1,123 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright 2015-2016 The OpenSSL Project Authors. All Rights Reserved.
|
3
|
+
*
|
4
|
+
* Licensed under the OpenSSL license (the "License"). You may not use
|
5
|
+
* this file except in compliance with the License. You can obtain a copy
|
6
|
+
* in the file LICENSE in the source distribution or at
|
7
|
+
* https://www.openssl.org/source/license.html
|
8
|
+
*/
|
9
|
+
|
10
|
+
/*****************************************************************************
|
11
|
+
* *
|
12
|
+
* These enums should be considered PRIVATE to the state machine. No *
|
13
|
+
* non-state machine code should need to use these *
|
14
|
+
* *
|
15
|
+
*****************************************************************************/
|
16
|
+
/*
|
17
|
+
* Valid return codes used for functions performing work prior to or after
|
18
|
+
* sending or receiving a message
|
19
|
+
*/
|
20
|
+
typedef enum {
|
21
|
+
/* Something went wrong */
|
22
|
+
WORK_ERROR,
|
23
|
+
/* We're done working and there shouldn't be anything else to do after */
|
24
|
+
WORK_FINISHED_STOP,
|
25
|
+
/* We're done working move onto the next thing */
|
26
|
+
WORK_FINISHED_CONTINUE,
|
27
|
+
/* We're working on phase A */
|
28
|
+
WORK_MORE_A,
|
29
|
+
/* We're working on phase B */
|
30
|
+
WORK_MORE_B
|
31
|
+
} WORK_STATE;
|
32
|
+
|
33
|
+
/* Write transition return codes */
|
34
|
+
typedef enum {
|
35
|
+
/* Something went wrong */
|
36
|
+
WRITE_TRAN_ERROR,
|
37
|
+
/* A transition was successfully completed and we should continue */
|
38
|
+
WRITE_TRAN_CONTINUE,
|
39
|
+
/* There is no more write work to be done */
|
40
|
+
WRITE_TRAN_FINISHED
|
41
|
+
} WRITE_TRAN;
|
42
|
+
|
43
|
+
/* Message flow states */
|
44
|
+
typedef enum {
|
45
|
+
/* No handshake in progress */
|
46
|
+
MSG_FLOW_UNINITED,
|
47
|
+
/* A permanent error with this connection */
|
48
|
+
MSG_FLOW_ERROR,
|
49
|
+
/* We are about to renegotiate */
|
50
|
+
MSG_FLOW_RENEGOTIATE,
|
51
|
+
/* We are reading messages */
|
52
|
+
MSG_FLOW_READING,
|
53
|
+
/* We are writing messages */
|
54
|
+
MSG_FLOW_WRITING,
|
55
|
+
/* Handshake has finished */
|
56
|
+
MSG_FLOW_FINISHED
|
57
|
+
} MSG_FLOW_STATE;
|
58
|
+
|
59
|
+
/* Read states */
|
60
|
+
typedef enum {
|
61
|
+
READ_STATE_HEADER,
|
62
|
+
READ_STATE_BODY,
|
63
|
+
READ_STATE_POST_PROCESS
|
64
|
+
} READ_STATE;
|
65
|
+
|
66
|
+
/* Write states */
|
67
|
+
typedef enum {
|
68
|
+
WRITE_STATE_TRANSITION,
|
69
|
+
WRITE_STATE_PRE_WORK,
|
70
|
+
WRITE_STATE_SEND,
|
71
|
+
WRITE_STATE_POST_WORK
|
72
|
+
} WRITE_STATE;
|
73
|
+
|
74
|
+
/*****************************************************************************
|
75
|
+
* *
|
76
|
+
* This structure should be considered "opaque" to anything outside of the *
|
77
|
+
* state machine. No non-state machine code should be accessing the members *
|
78
|
+
* of this structure. *
|
79
|
+
* *
|
80
|
+
*****************************************************************************/
|
81
|
+
|
82
|
+
struct ossl_statem_st {
|
83
|
+
MSG_FLOW_STATE state;
|
84
|
+
WRITE_STATE write_state;
|
85
|
+
WORK_STATE write_state_work;
|
86
|
+
READ_STATE read_state;
|
87
|
+
WORK_STATE read_state_work;
|
88
|
+
OSSL_HANDSHAKE_STATE hand_state;
|
89
|
+
int in_init;
|
90
|
+
int read_state_first_init;
|
91
|
+
/* true when we are actually in SSL_accept() or SSL_connect() */
|
92
|
+
int in_handshake;
|
93
|
+
/* Should we skip the CertificateVerify message? */
|
94
|
+
unsigned int no_cert_verify;
|
95
|
+
int use_timer;
|
96
|
+
#ifndef OPENSSL_NO_SCTP
|
97
|
+
int in_sctp_read_sock;
|
98
|
+
#endif
|
99
|
+
};
|
100
|
+
typedef struct ossl_statem_st OSSL_STATEM;
|
101
|
+
|
102
|
+
/*****************************************************************************
|
103
|
+
* *
|
104
|
+
* The following macros/functions represent the libssl internal API to the *
|
105
|
+
* state machine. Any libssl code may call these functions/macros *
|
106
|
+
* *
|
107
|
+
*****************************************************************************/
|
108
|
+
|
109
|
+
__owur int ossl_statem_accept(SSL *s);
|
110
|
+
__owur int ossl_statem_connect(SSL *s);
|
111
|
+
void ossl_statem_clear(SSL *s);
|
112
|
+
void ossl_statem_set_renegotiate(SSL *s);
|
113
|
+
void ossl_statem_set_error(SSL *s);
|
114
|
+
int ossl_statem_in_error(const SSL *s);
|
115
|
+
void ossl_statem_set_in_init(SSL *s, int init);
|
116
|
+
int ossl_statem_get_in_handshake(SSL *s);
|
117
|
+
void ossl_statem_set_in_handshake(SSL *s, int inhand);
|
118
|
+
void ossl_statem_set_hello_verify_done(SSL *s);
|
119
|
+
__owur int ossl_statem_app_data_allowed(SSL *s);
|
120
|
+
#ifndef OPENSSL_NO_SCTP
|
121
|
+
void ossl_statem_set_sctp_read_sock(SSL *s, int read_sock);
|
122
|
+
__owur int ossl_statem_in_sctp_read_sock(SSL *s);
|
123
|
+
#endif
|
@@ -0,0 +1,124 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright 2015-2016 The OpenSSL Project Authors. All Rights Reserved.
|
3
|
+
*
|
4
|
+
* Licensed under the OpenSSL license (the "License"). You may not use
|
5
|
+
* this file except in compliance with the License. You can obtain a copy
|
6
|
+
* in the file LICENSE in the source distribution or at
|
7
|
+
* https://www.openssl.org/source/license.html
|
8
|
+
*/
|
9
|
+
|
10
|
+
/*****************************************************************************
|
11
|
+
* *
|
12
|
+
* The following definitions are PRIVATE to the state machine. They should *
|
13
|
+
* NOT be used outside of the state machine. *
|
14
|
+
* *
|
15
|
+
*****************************************************************************/
|
16
|
+
|
17
|
+
/* Max message length definitions */
|
18
|
+
|
19
|
+
/* The spec allows for a longer length than this, but we limit it */
|
20
|
+
#define HELLO_VERIFY_REQUEST_MAX_LENGTH 258
|
21
|
+
#define SERVER_HELLO_MAX_LENGTH 20000
|
22
|
+
#define SERVER_KEY_EXCH_MAX_LENGTH 102400
|
23
|
+
#define SERVER_HELLO_DONE_MAX_LENGTH 0
|
24
|
+
#define CCS_MAX_LENGTH 1
|
25
|
+
/* Max should actually be 36 but we are generous */
|
26
|
+
#define FINISHED_MAX_LENGTH 64
|
27
|
+
|
28
|
+
/* Message processing return codes */
|
29
|
+
typedef enum {
|
30
|
+
/* Something bad happened */
|
31
|
+
MSG_PROCESS_ERROR,
|
32
|
+
/* We've finished reading - swap to writing */
|
33
|
+
MSG_PROCESS_FINISHED_READING,
|
34
|
+
/*
|
35
|
+
* We've completed the main processing of this message but there is some
|
36
|
+
* post processing to be done.
|
37
|
+
*/
|
38
|
+
MSG_PROCESS_CONTINUE_PROCESSING,
|
39
|
+
/* We've finished this message - read the next message */
|
40
|
+
MSG_PROCESS_CONTINUE_READING
|
41
|
+
} MSG_PROCESS_RETURN;
|
42
|
+
|
43
|
+
/* Flush the write BIO */
|
44
|
+
int statem_flush(SSL *s);
|
45
|
+
|
46
|
+
/*
|
47
|
+
* TLS/DTLS client state machine functions
|
48
|
+
*/
|
49
|
+
int ossl_statem_client_read_transition(SSL *s, int mt);
|
50
|
+
WRITE_TRAN ossl_statem_client_write_transition(SSL *s);
|
51
|
+
WORK_STATE ossl_statem_client_pre_work(SSL *s, WORK_STATE wst);
|
52
|
+
WORK_STATE ossl_statem_client_post_work(SSL *s, WORK_STATE wst);
|
53
|
+
int ossl_statem_client_construct_message(SSL *s);
|
54
|
+
unsigned long ossl_statem_client_max_message_size(SSL *s);
|
55
|
+
MSG_PROCESS_RETURN ossl_statem_client_process_message(SSL *s, PACKET *pkt);
|
56
|
+
WORK_STATE ossl_statem_client_post_process_message(SSL *s, WORK_STATE wst);
|
57
|
+
|
58
|
+
/*
|
59
|
+
* TLS/DTLS server state machine functions
|
60
|
+
*/
|
61
|
+
int ossl_statem_server_read_transition(SSL *s, int mt);
|
62
|
+
WRITE_TRAN ossl_statem_server_write_transition(SSL *s);
|
63
|
+
WORK_STATE ossl_statem_server_pre_work(SSL *s, WORK_STATE wst);
|
64
|
+
WORK_STATE ossl_statem_server_post_work(SSL *s, WORK_STATE wst);
|
65
|
+
int ossl_statem_server_construct_message(SSL *s);
|
66
|
+
unsigned long ossl_statem_server_max_message_size(SSL *s);
|
67
|
+
MSG_PROCESS_RETURN ossl_statem_server_process_message(SSL *s, PACKET *pkt);
|
68
|
+
WORK_STATE ossl_statem_server_post_process_message(SSL *s, WORK_STATE wst);
|
69
|
+
|
70
|
+
/* Functions for getting new message data */
|
71
|
+
__owur int tls_get_message_header(SSL *s, int *mt);
|
72
|
+
__owur int tls_get_message_body(SSL *s, unsigned long *len);
|
73
|
+
__owur int dtls_get_message(SSL *s, int *mt, unsigned long *len);
|
74
|
+
|
75
|
+
/* Message construction and processing functions */
|
76
|
+
__owur MSG_PROCESS_RETURN tls_process_change_cipher_spec(SSL *s, PACKET *pkt);
|
77
|
+
__owur MSG_PROCESS_RETURN tls_process_finished(SSL *s, PACKET *pkt);
|
78
|
+
__owur int tls_construct_change_cipher_spec(SSL *s);
|
79
|
+
__owur int dtls_construct_change_cipher_spec(SSL *s);
|
80
|
+
|
81
|
+
__owur int tls_construct_finished(SSL *s, const char *sender, int slen);
|
82
|
+
__owur WORK_STATE tls_finish_handshake(SSL *s, WORK_STATE wst);
|
83
|
+
__owur WORK_STATE dtls_wait_for_dry(SSL *s);
|
84
|
+
|
85
|
+
/* some client-only functions */
|
86
|
+
__owur int tls_construct_client_hello(SSL *s);
|
87
|
+
__owur MSG_PROCESS_RETURN tls_process_server_hello(SSL *s, PACKET *pkt);
|
88
|
+
__owur MSG_PROCESS_RETURN tls_process_certificate_request(SSL *s, PACKET *pkt);
|
89
|
+
__owur MSG_PROCESS_RETURN tls_process_new_session_ticket(SSL *s, PACKET *pkt);
|
90
|
+
__owur MSG_PROCESS_RETURN tls_process_cert_status(SSL *s, PACKET *pkt);
|
91
|
+
__owur MSG_PROCESS_RETURN tls_process_server_done(SSL *s, PACKET *pkt);
|
92
|
+
__owur int tls_construct_client_verify(SSL *s);
|
93
|
+
__owur WORK_STATE tls_prepare_client_certificate(SSL *s, WORK_STATE wst);
|
94
|
+
__owur int tls_construct_client_certificate(SSL *s);
|
95
|
+
__owur int ssl_do_client_cert_cb(SSL *s, X509 **px509, EVP_PKEY **ppkey);
|
96
|
+
__owur int tls_construct_client_key_exchange(SSL *s);
|
97
|
+
__owur int tls_client_key_exchange_post_work(SSL *s);
|
98
|
+
__owur int tls_construct_cert_status(SSL *s);
|
99
|
+
__owur MSG_PROCESS_RETURN tls_process_key_exchange(SSL *s, PACKET *pkt);
|
100
|
+
__owur MSG_PROCESS_RETURN tls_process_server_certificate(SSL *s, PACKET *pkt);
|
101
|
+
__owur int ssl3_check_cert_and_algorithm(SSL *s);
|
102
|
+
#ifndef OPENSSL_NO_NEXTPROTONEG
|
103
|
+
__owur int tls_construct_next_proto(SSL *s);
|
104
|
+
#endif
|
105
|
+
__owur MSG_PROCESS_RETURN dtls_process_hello_verify(SSL *s, PACKET *pkt);
|
106
|
+
|
107
|
+
/* some server-only functions */
|
108
|
+
__owur MSG_PROCESS_RETURN tls_process_client_hello(SSL *s, PACKET *pkt);
|
109
|
+
__owur WORK_STATE tls_post_process_client_hello(SSL *s, WORK_STATE wst);
|
110
|
+
__owur int tls_construct_server_hello(SSL *s);
|
111
|
+
__owur int tls_construct_hello_request(SSL *s);
|
112
|
+
__owur int dtls_construct_hello_verify_request(SSL *s);
|
113
|
+
__owur int tls_construct_server_certificate(SSL *s);
|
114
|
+
__owur int tls_construct_server_key_exchange(SSL *s);
|
115
|
+
__owur int tls_construct_certificate_request(SSL *s);
|
116
|
+
__owur int tls_construct_server_done(SSL *s);
|
117
|
+
__owur MSG_PROCESS_RETURN tls_process_client_certificate(SSL *s, PACKET *pkt);
|
118
|
+
__owur MSG_PROCESS_RETURN tls_process_client_key_exchange(SSL *s, PACKET *pkt);
|
119
|
+
__owur WORK_STATE tls_post_process_client_key_exchange(SSL *s, WORK_STATE wst);
|
120
|
+
__owur MSG_PROCESS_RETURN tls_process_cert_verify(SSL *s, PACKET *pkt);
|
121
|
+
#ifndef OPENSSL_NO_NEXTPROTONEG
|
122
|
+
__owur MSG_PROCESS_RETURN tls_process_next_proto(SSL *s, PACKET *pkt);
|
123
|
+
#endif
|
124
|
+
__owur int tls_construct_new_session_ticket(SSL *s);
|
data/libs/webkit.rb
ADDED
data/libs/webkit/ext.yml
ADDED
@@ -0,0 +1,61 @@
|
|
1
|
+
require 'fileutils'
|
2
|
+
|
3
|
+
USE_STLPORT = true
|
4
|
+
|
5
|
+
|
6
|
+
def build_extension(name, arch)
|
7
|
+
objects = []
|
8
|
+
mkdir_p $tempdir unless File.exists? $tempdir
|
9
|
+
|
10
|
+
mkdir_p $targetdir unless File.exist? $targetdir
|
11
|
+
|
12
|
+
if ENV['RHO_PLATFORM'] == 'wm'
|
13
|
+
args = []
|
14
|
+
args << "/M4"
|
15
|
+
args << name + ".vcproj"
|
16
|
+
args << "\"Release|#{$sdk}\""
|
17
|
+
cmdline = "\"" + $vcbuild + "\"" + ' ' + args.join(' ')
|
18
|
+
puts cmdline
|
19
|
+
puts `#{cmdline}`
|
20
|
+
exit unless $? == 0
|
21
|
+
|
22
|
+
cp_r File.join($tempdir, "Release", name + ".lib"), $targetdir
|
23
|
+
|
24
|
+
elsif ENV['RHO_PLATFORM'] == 'win32'
|
25
|
+
args = []
|
26
|
+
args << "/M4"
|
27
|
+
args << name + ".vcxproj"
|
28
|
+
args << "\"Debug|Win32\""
|
29
|
+
cmdline = "\"" + $vcbuild + "\"" + ' ' + args.join(' ')
|
30
|
+
puts cmdline
|
31
|
+
puts `#{cmdline}`
|
32
|
+
exit unless $? == 0
|
33
|
+
|
34
|
+
cp_r File.join($tempdir, "Debug", name + ".lib"), $targetdir
|
35
|
+
end
|
36
|
+
|
37
|
+
end
|
38
|
+
|
39
|
+
namespace "build" do
|
40
|
+
task :config do
|
41
|
+
$targetdir = ENV['TARGET_TEMP_DIR']
|
42
|
+
raise "TARGET_TEMP_DIR is not set" if $targetdir.nil?
|
43
|
+
$tempdir = ENV['TEMP_FILES_DIR']
|
44
|
+
raise "TEMP_FILES_DIR is not set" if $tempdir.nil?
|
45
|
+
$rootdir = ENV['RHO_ROOT']
|
46
|
+
raise "RHO_ROOT is not set" if $rootdir.nil?
|
47
|
+
|
48
|
+
$vcbuild = ENV['VCBUILD']
|
49
|
+
raise "VCBUILD is not set" if $vcbuild.nil?
|
50
|
+
$sdk = ENV['SDK']
|
51
|
+
raise "SDK is not set" if $sdk.nil?
|
52
|
+
|
53
|
+
end
|
54
|
+
|
55
|
+
task :all => :config do
|
56
|
+
|
57
|
+
build_extension('webkit', $arch)
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
61
|
+
task :default => "build:all"
|
@@ -0,0 +1,17 @@
|
|
1
|
+
#include <windows.h>
|
2
|
+
|
3
|
+
//#include "common/app_build_capabilities.h"
|
4
|
+
#include "RhoMsgs.h"
|
5
|
+
|
6
|
+
//#ifdef APP_BUILD_CAPABILITY_WEBKIT_BROWSER
|
7
|
+
UINT WM_BROWSER_ONDOCUMENTCOMPLETE = ::RegisterWindowMessage(L"RHODES_WM_BROWSER_ONDOCUMENTCOMPLETE");
|
8
|
+
UINT WM_BROWSER_ONNAVIGATECOMPLETE = ::RegisterWindowMessage(L"RHODES_WM_BROWSER_ONNAVIGATECOMPLETE");
|
9
|
+
UINT WM_BROWSER_ONTITLECHANGE = ::RegisterWindowMessage(L"RHODES_WM_BROWSER_ONTITLECHANGE");
|
10
|
+
UINT WM_BROWSER_ONBEFORENAVIGATE = ::RegisterWindowMessage(L"RHODES_WM_BROWSER_ONBEFORENAVIGATE");
|
11
|
+
UINT WM_BROWSER_ONNAVIGATIONTIMEOUT = ::RegisterWindowMessage(L"RHODES_WM_BROWSER_ONNAVIGATIONTIMEOUT");
|
12
|
+
UINT WM_BROWSER_ONNAVIGATIONERROR = ::RegisterWindowMessage(L"RHODES_WM_BROWSER_ONNAVIGATIONERROR");
|
13
|
+
UINT WM_BROWSER_ONSETSIPSTATE = ::RegisterWindowMessage(L"RHODES_WM_BROWSER_ONSETSIPSTATE");
|
14
|
+
UINT WM_BROWSER_ONALERTPOPUP = ::RegisterWindowMessage(L"WM_BROWSER_ONALERTPOPUP");
|
15
|
+
UINT WM_BROWSER_ONAUTHENTICATIONREQUEST = ::RegisterWindowMessage(L"WM_BROWSER_ONAUTHENTICATIONREQUEST");
|
16
|
+
//UINT WM_BROWSER_ONGPSDATA = ::RegisterWindowMessage(L"WM_BROWSER_ONGPSDATA");
|
17
|
+
//#endif
|
@@ -0,0 +1,14 @@
|
|
1
|
+
#pragma once
|
2
|
+
|
3
|
+
//#ifdef APP_BUILD_CAPABILITY_WEBKIT_BROWSER
|
4
|
+
extern UINT WM_BROWSER_ONDOCUMENTCOMPLETE;
|
5
|
+
extern UINT WM_BROWSER_ONNAVIGATECOMPLETE;
|
6
|
+
extern UINT WM_BROWSER_ONTITLECHANGE;
|
7
|
+
extern UINT WM_BROWSER_ONBEFORENAVIGATE;
|
8
|
+
extern UINT WM_BROWSER_ONNAVIGATIONTIMEOUT;
|
9
|
+
extern UINT WM_BROWSER_ONSETSIPSTATE;
|
10
|
+
extern UINT WM_BROWSER_ONALERTPOPUP;
|
11
|
+
extern UINT WM_BROWSER_ONNAVIGATIONERROR;
|
12
|
+
extern UINT WM_BROWSER_ONAUTHENTICATIONREQUEST;
|
13
|
+
//extern UINT WM_BROWSER_ONGPSDATA;
|
14
|
+
//#endif //APP_BUILD_CAPABILITY_WEBKIT_BROWSER
|
@@ -0,0 +1,736 @@
|
|
1
|
+
#include "stdafx.h"
|
2
|
+
|
3
|
+
//#define USINGOUTPROCESSENGINE 1
|
4
|
+
|
5
|
+
//#include "common/app_build_capabilities.h"
|
6
|
+
#include "common/SplashScreen.h"
|
7
|
+
#include "common/RhodesApp.h"
|
8
|
+
#include "common/RhoStd.h"
|
9
|
+
#include "common/StringConverter.h"
|
10
|
+
#include "common/StringConverter.h"
|
11
|
+
#include "common/version.h"
|
12
|
+
#include "RhoWKBrowserEngine.h"
|
13
|
+
#include "RhoMsgs.h"
|
14
|
+
|
15
|
+
|
16
|
+
#include "logging/RhoLog.h"
|
17
|
+
#include "common/app_build_configs.h"
|
18
|
+
|
19
|
+
|
20
|
+
#define CAMERAWND_CLASSNAME TEXT("Camera View")
|
21
|
+
|
22
|
+
extern "C" HWND rho_wmimpl_get_mainwnd();
|
23
|
+
extern "C" HINSTANCE rho_wmimpl_get_appinstance();
|
24
|
+
extern "C" LRESULT rho_wmimpl_draw_splash_screen(HWND hWnd);
|
25
|
+
extern "C" LRESULT rho_wm_appmanager_ProcessOnTopMostWnd( WPARAM wParam, LPARAM lParam )
|
26
|
+
{
|
27
|
+
return S_OK;
|
28
|
+
}
|
29
|
+
extern "C" void rho_title_change(const int tabIndex, const char* strTitle);
|
30
|
+
extern "C" double rho_wmimpl_get_pagezoom()
|
31
|
+
{
|
32
|
+
return 0;
|
33
|
+
}
|
34
|
+
|
35
|
+
//Used for getting the editable window handle
|
36
|
+
HWND m_hEditableWindow = NULL;
|
37
|
+
//Used for checking whether the focus is on editable field or not.
|
38
|
+
BOOL g_EditableControlHasFocus = FALSE; //Initially it will be initialised with FALSE
|
39
|
+
|
40
|
+
//Application Quitting is true or false
|
41
|
+
bool appQuitted = false;
|
42
|
+
|
43
|
+
// DCC - For Testing Only
|
44
|
+
int REPLACE_WITH_ACTUAL_TAB_ID = 0;
|
45
|
+
|
46
|
+
class CSRCExtChecker
|
47
|
+
{
|
48
|
+
LPTSTR mTokenValue;
|
49
|
+
public:
|
50
|
+
CSRCExtChecker();
|
51
|
+
LPVOID getTokenValue();
|
52
|
+
void setTokenValue(LPVOID lpValue);
|
53
|
+
};
|
54
|
+
|
55
|
+
CSRCExtChecker::CSRCExtChecker(){
|
56
|
+
mTokenValue = L"";
|
57
|
+
}
|
58
|
+
LPVOID CSRCExtChecker::getTokenValue(){
|
59
|
+
if(mTokenValue)
|
60
|
+
return mTokenValue;
|
61
|
+
return NULL;
|
62
|
+
}
|
63
|
+
void CSRCExtChecker::setTokenValue(LPVOID lpValue){
|
64
|
+
if(lpValue)
|
65
|
+
mTokenValue = (LPTSTR)lpValue;
|
66
|
+
}
|
67
|
+
|
68
|
+
namespace rho
|
69
|
+
{
|
70
|
+
IMPLEMENT_LOGCLASS(CRhoWKBrowserEngine,"WKEngine");
|
71
|
+
|
72
|
+
WNDPROC CRhoWKBrowserEngine::m_WebKitOwnerProc = 0;
|
73
|
+
CRhoWKBrowserEngine* CRhoWKBrowserEngine::m_pInstance = 0;
|
74
|
+
|
75
|
+
LRESULT CALLBACK onTopmostWnd(EngineEventID eeID, LPARAM value, int tabIndex)
|
76
|
+
{
|
77
|
+
LOG(INFO) + "onTopmostWnd";
|
78
|
+
|
79
|
+
// The engine needs to navigate to a page before it can provide the topmost window.
|
80
|
+
// We cannot call preload until we have a valid window handle
|
81
|
+
// If all of the instances have been loaded then the meta event and navigate event will be registered
|
82
|
+
|
83
|
+
return PostMessage(rho_wmimpl_get_mainwnd(),PB_ONTOPMOSTWINDOW,(LPARAM)tabIndex,(WPARAM)value);
|
84
|
+
}
|
85
|
+
|
86
|
+
LRESULT CALLBACK WK_ExitHandler(EngineEventID eeID, LPARAM value, int tabIndex)
|
87
|
+
{
|
88
|
+
RHODESAPP().getExtManager().quitApp();
|
89
|
+
return (LRESULT)TRUE;
|
90
|
+
}
|
91
|
+
|
92
|
+
CRhoWKBrowserEngine* CRhoWKBrowserEngine::getInstance()
|
93
|
+
{
|
94
|
+
return m_pInstance;
|
95
|
+
}
|
96
|
+
|
97
|
+
CRhoWKBrowserEngine* CRhoWKBrowserEngine::getInstance(HWND hParentWnd, HINSTANCE hInstance)
|
98
|
+
{
|
99
|
+
if (!m_pInstance)
|
100
|
+
m_pInstance = new CRhoWKBrowserEngine(hParentWnd, hInstance);
|
101
|
+
return m_pInstance;
|
102
|
+
}
|
103
|
+
|
104
|
+
BOOL CRhoWKBrowserEngine::LoadWKDLL(WCHAR *path)
|
105
|
+
{
|
106
|
+
m_hWKInstance = LoadLibrary(path);
|
107
|
+
if(m_hWKInstance)
|
108
|
+
{
|
109
|
+
m_pWKInitialize = (PWKINITIALIZE) GetProcAddress(m_hWKInstance, L"initialize");
|
110
|
+
m_pWKCleanUp = (PWKCLEANUP) GetProcAddress(m_hWKInstance, L"cleanup");
|
111
|
+
m_pWKCreate = (PWKCREATE) GetProcAddress(m_hWKInstance, L"create");
|
112
|
+
m_pWKDestroy = (PWKDESTROY) GetProcAddress(m_hWKInstance, L"destroy");
|
113
|
+
m_pWKLoad = (PWKLOAD) GetProcAddress(m_hWKInstance, L"load");
|
114
|
+
m_pWKReload = (PWKRELOAD) GetProcAddress(m_hWKInstance, L"reload");
|
115
|
+
m_pWKStop = (PWKSTOP) GetProcAddress(m_hWKInstance, L"stop");
|
116
|
+
m_pWKRegisterForEvent = (PWKREGISTERFOREVENT) GetProcAddress(m_hWKInstance, L"RegisterForEvent");
|
117
|
+
m_pWKGetWKWindow = (PWGETWKWINDOW) GetProcAddress(m_hWKInstance, L"getWKWindow");
|
118
|
+
m_pWKJSInvoke = (PWKJSINVOKE) GetProcAddress(m_hWKInstance, L"jsInvoke");
|
119
|
+
m_pWKForward = (PWKFORWARD) GetProcAddress(m_hWKInstance, L"forward");
|
120
|
+
m_pWKResize = (PWKRESIZE) GetProcAddress(m_hWKInstance, L"resize");
|
121
|
+
m_pWKZoomPage = (PWKZOOMPAGE) GetProcAddress(m_hWKInstance, L"zoomPage");
|
122
|
+
m_pWKZoomText = (PWKZOOMTEXT) GetProcAddress(m_hWKInstance, L"zoomText");
|
123
|
+
m_pWKGetTextZoom = (PWKGETTEXTZOOM) GetProcAddress(m_hWKInstance, L"getTextZoom");
|
124
|
+
m_pWKBack = (PWKBACK) GetProcAddress(m_hWKInstance, L"back");
|
125
|
+
|
126
|
+
return TRUE;
|
127
|
+
}
|
128
|
+
|
129
|
+
return FALSE;
|
130
|
+
}
|
131
|
+
|
132
|
+
|
133
|
+
CRhoWKBrowserEngine::CRhoWKBrowserEngine(HWND hParentWnd, HINSTANCE hInstance)
|
134
|
+
{
|
135
|
+
LOG(INFO) + RHO_VERSION;
|
136
|
+
|
137
|
+
|
138
|
+
m_hParentWnd = hParentWnd;
|
139
|
+
//g_hBaseWnd = hParentWnd;
|
140
|
+
m_bLoadingComplete = false;
|
141
|
+
m_bLicenseChecked = false;
|
142
|
+
m_pInstance = this;
|
143
|
+
|
144
|
+
//webkit engine started, hence setting it to false
|
145
|
+
appQuitted = false;
|
146
|
+
|
147
|
+
/*HMODULE hModule = GetModuleHandleW(NULL);
|
148
|
+
WCHAR path[MAX_PATH];
|
149
|
+
GetModuleFileNameW(hModule, path, MAX_PATH);
|
150
|
+
WCHAR *pPath = wcsrchr(path, L'\\');
|
151
|
+
wsprintf(pPath, L"rhowebkit.dll");*/
|
152
|
+
|
153
|
+
if (LoadWKDLL(L"rhowebkit.dll") && m_pWKInitialize(hInstance) == S_OK)
|
154
|
+
{
|
155
|
+
m_pWKRegisterForEvent(EEID_TOPMOSTHWNDAVAILABLE, rho::onTopmostWnd);
|
156
|
+
m_pWKCreate(hParentWnd, true);
|
157
|
+
}
|
158
|
+
else
|
159
|
+
{
|
160
|
+
RHODESAPP().getExtManager().quitApp();
|
161
|
+
}
|
162
|
+
LOG(INFO) + "END WebKit";
|
163
|
+
}
|
164
|
+
|
165
|
+
CRhoWKBrowserEngine::~CRhoWKBrowserEngine(void)
|
166
|
+
{
|
167
|
+
//application quitting hence setting it to true
|
168
|
+
appQuitted = true;
|
169
|
+
m_pWKDestroy(0);//implement multuple tab support
|
170
|
+
m_pWKCleanUp();
|
171
|
+
}
|
172
|
+
|
173
|
+
extern "C" bool isApplicationQuitting(){
|
174
|
+
return appQuitted;
|
175
|
+
}
|
176
|
+
|
177
|
+
BOOL CRhoWKBrowserEngine::Navigate(LPCTSTR szURL, int iTabID)
|
178
|
+
{
|
179
|
+
LOG(INFO) + "Navigate :" + szURL;
|
180
|
+
|
181
|
+
BOOL res;
|
182
|
+
|
183
|
+
#ifdef _DEBUG
|
184
|
+
// DCC Testing the multi tab interface
|
185
|
+
if (wcsstr(szURL, L"createTab1") != 0)
|
186
|
+
{
|
187
|
+
// Design is to always specify bForeground as False
|
188
|
+
int ret = NewTab();
|
189
|
+
// TODO - NewTab should be blocking. Since it isn't currently this doesn't work.
|
190
|
+
SwitchTab(1);
|
191
|
+
return TRUE;
|
192
|
+
}
|
193
|
+
else if (wcsstr(szURL, L"navigateTab1") != 0)
|
194
|
+
{
|
195
|
+
REPLACE_WITH_ACTUAL_TAB_ID = 1;
|
196
|
+
LRESULT ret2 = Navigate(L"file:///he/miscellaneous/alerts.htm", 0);
|
197
|
+
return TRUE;
|
198
|
+
}
|
199
|
+
else if (wcsstr(szURL, L"createTab2") != 0)
|
200
|
+
{
|
201
|
+
int ret = NewTab();
|
202
|
+
SwitchTab(2);
|
203
|
+
return TRUE;
|
204
|
+
}
|
205
|
+
else if (wcsstr(szURL, L"navigateTab2") != 0)
|
206
|
+
{
|
207
|
+
REPLACE_WITH_ACTUAL_TAB_ID = 2;
|
208
|
+
LRESULT ret2 = Navigate(L"file:///he/miscellaneous/jserrors.htm", 0);
|
209
|
+
return TRUE;
|
210
|
+
}
|
211
|
+
else if (wcsstr(szURL, L"switch0") != 0)
|
212
|
+
{
|
213
|
+
REPLACE_WITH_ACTUAL_TAB_ID = 0;
|
214
|
+
SwitchTab(0);
|
215
|
+
return TRUE;
|
216
|
+
}
|
217
|
+
else if (wcsstr(szURL, L"switch1") != 0)
|
218
|
+
{
|
219
|
+
REPLACE_WITH_ACTUAL_TAB_ID = 1;
|
220
|
+
SwitchTab(1);
|
221
|
+
return TRUE;
|
222
|
+
}
|
223
|
+
else if (wcsstr(szURL, L"switch2") != 0)
|
224
|
+
{
|
225
|
+
REPLACE_WITH_ACTUAL_TAB_ID = 2;
|
226
|
+
SwitchTab(2);
|
227
|
+
return TRUE;
|
228
|
+
}
|
229
|
+
else if (wcsstr(szURL, L"close1") != 0)
|
230
|
+
{
|
231
|
+
CloseTab(1);
|
232
|
+
return TRUE;
|
233
|
+
}
|
234
|
+
else if (wcsstr(szURL, L"close2") != 0)
|
235
|
+
{
|
236
|
+
CloseTab(2);
|
237
|
+
return TRUE;
|
238
|
+
}
|
239
|
+
#endif
|
240
|
+
|
241
|
+
if (wcslen(szURL) >= wcslen(L"javascript:") && wcsnicmp(szURL, L"javascript:", 11) == 0) {
|
242
|
+
res = m_pWKStop(iTabID);
|
243
|
+
if (res)
|
244
|
+
res = m_pWKJSInvoke(iTabID, szURL+11);
|
245
|
+
} else {
|
246
|
+
res = m_pWKLoad(szURL, iTabID);
|
247
|
+
//SetFocus(m_pWKGetWKWindow(iTabID));
|
248
|
+
InvalidateRect(m_pWKGetWKWindow(iTabID), NULL, FALSE);
|
249
|
+
}
|
250
|
+
return res;
|
251
|
+
}
|
252
|
+
|
253
|
+
HWND CRhoWKBrowserEngine::GetHTMLWND(int iTabID)
|
254
|
+
{
|
255
|
+
return m_pWKGetWKWindow(iTabID);
|
256
|
+
}
|
257
|
+
|
258
|
+
// Creates a new Tab and returns the newly created tab ID, will be -1 in case of error.
|
259
|
+
int CRhoWKBrowserEngine::NewTab()
|
260
|
+
{
|
261
|
+
int iNewTab = m_pWKCreate(m_hParentWnd, true);
|
262
|
+
ZoomPageOnTab((float)rho_wmimpl_get_pagezoom(),iNewTab);
|
263
|
+
return iNewTab;
|
264
|
+
}
|
265
|
+
|
266
|
+
// Switches to the specified tab ID, returns the ID of the previous tab
|
267
|
+
// or -1 in case of error
|
268
|
+
int CRhoWKBrowserEngine::SwitchTab(int iTabID)
|
269
|
+
{
|
270
|
+
if (iTabID >= 0){
|
271
|
+
ZoomPageOnTab((float)rho_wmimpl_get_pagezoom(),iTabID);
|
272
|
+
return m_pWKSwitch(iTabID);
|
273
|
+
}
|
274
|
+
else
|
275
|
+
return -1;
|
276
|
+
}
|
277
|
+
|
278
|
+
BOOL CRhoWKBrowserEngine::CloseTab(int iTabID)
|
279
|
+
{
|
280
|
+
if (iTabID <= 0)
|
281
|
+
{
|
282
|
+
LOG(WARNING) + "ID of Tab to close must be positive and non-zero";
|
283
|
+
return FALSE;
|
284
|
+
}
|
285
|
+
return m_pWKDestroy(iTabID);
|
286
|
+
}
|
287
|
+
|
288
|
+
BOOL CRhoWKBrowserEngine::ResizeOnTab(int iInstID,RECT rcNewSize)
|
289
|
+
{
|
290
|
+
ZoomPageOnTab((float)rho_wmimpl_get_pagezoom(),iInstID);
|
291
|
+
return m_pWKResize(iInstID,rcNewSize);
|
292
|
+
}
|
293
|
+
|
294
|
+
BOOL CRhoWKBrowserEngine::BackOnTab(int iInstID,int iPagesBack/* = 1*/)
|
295
|
+
{
|
296
|
+
ZoomPageOnTab((float)rho_wmimpl_get_pagezoom(),iInstID);
|
297
|
+
BOOL bRes = m_pWKBack(iInstID,iPagesBack);
|
298
|
+
if ( bRes )
|
299
|
+
InvalidateRect(m_pWKGetWKWindow(iInstID), NULL, FALSE);
|
300
|
+
|
301
|
+
return bRes;
|
302
|
+
}
|
303
|
+
|
304
|
+
BOOL CRhoWKBrowserEngine::ForwardOnTab(int iInstID)
|
305
|
+
{
|
306
|
+
ZoomPageOnTab((float)rho_wmimpl_get_pagezoom(),iInstID);
|
307
|
+
BOOL bRes = m_pWKForward(iInstID);
|
308
|
+
|
309
|
+
if ( bRes )
|
310
|
+
InvalidateRect(m_pWKGetWKWindow(iInstID), NULL, FALSE);
|
311
|
+
|
312
|
+
return bRes;
|
313
|
+
}
|
314
|
+
|
315
|
+
BOOL CRhoWKBrowserEngine::ReloadOnTab(bool bFromCache, UINT iTab)
|
316
|
+
{
|
317
|
+
ZoomPageOnTab((float)rho_wmimpl_get_pagezoom(),iTab);
|
318
|
+
BOOL bRes = m_pWKReload(bFromCache, iTab);
|
319
|
+
if ( bRes )
|
320
|
+
InvalidateRect(m_pWKGetWKWindow(iTab), NULL, FALSE);
|
321
|
+
|
322
|
+
return bRes;
|
323
|
+
}
|
324
|
+
|
325
|
+
BOOL CRhoWKBrowserEngine::StopOnTab(UINT iTab)
|
326
|
+
{
|
327
|
+
ZoomPageOnTab((float)rho_wmimpl_get_pagezoom(),iTab);
|
328
|
+
return m_pWKStop(iTab);
|
329
|
+
}
|
330
|
+
|
331
|
+
BOOL CRhoWKBrowserEngine::ZoomPageOnTab(float fZoom, UINT iTab)
|
332
|
+
{
|
333
|
+
return m_pWKZoomPage(fZoom, iTab);
|
334
|
+
}
|
335
|
+
|
336
|
+
BOOL CRhoWKBrowserEngine::ZoomTextOnTab(int nZoom, UINT iTab)
|
337
|
+
{
|
338
|
+
return m_pWKZoomText((TextZoomValue)nZoom, iTab);
|
339
|
+
}
|
340
|
+
|
341
|
+
int CRhoWKBrowserEngine::GetTextZoomOnTab(UINT iTab)
|
342
|
+
{
|
343
|
+
TextZoomValue eZoomLevel;
|
344
|
+
m_pWKGetTextZoom(&eZoomLevel, iTab);
|
345
|
+
return eZoomLevel;
|
346
|
+
}
|
347
|
+
|
348
|
+
BOOL CRhoWKBrowserEngine::NavigateToHtml(LPCTSTR szHtml)
|
349
|
+
{
|
350
|
+
//return m_pEngine->NavigateToHtml(szHtml);
|
351
|
+
//TODO: NavigateToHtml
|
352
|
+
|
353
|
+
return FALSE;
|
354
|
+
}
|
355
|
+
|
356
|
+
bool CRhoWKBrowserEngine::isExistJavascript(const wchar_t* szJSFunction, int index)
|
357
|
+
{
|
358
|
+
///return m_pWKJSExist(index, szJSFunction) == TRUE ? true : false;
|
359
|
+
return true;
|
360
|
+
}
|
361
|
+
|
362
|
+
void CRhoWKBrowserEngine::executeJavascript(const wchar_t* szJSFunction, int index)
|
363
|
+
{
|
364
|
+
StringW strUrlW;
|
365
|
+
if(_memicmp(szJSFunction,L"JavaScript:",11*2) != 0)
|
366
|
+
strUrlW = L"javascript:";
|
367
|
+
|
368
|
+
strUrlW += szJSFunction;
|
369
|
+
StringW find = L"\"";
|
370
|
+
StringW replace = L"'";
|
371
|
+
findAndReplace<StringW>(strUrlW, find, replace);
|
372
|
+
m_pWKJSInvoke(index, strUrlW.c_str() );
|
373
|
+
}
|
374
|
+
|
375
|
+
void CRhoWKBrowserEngine::setBrowserGesturing(bool bEnableGesturing)
|
376
|
+
{
|
377
|
+
///m_pWKSetGesturing(bEnableGesturing);
|
378
|
+
}
|
379
|
+
|
380
|
+
void CRhoWKBrowserEngine::NotifyEngineOfSipPosition()
|
381
|
+
{
|
382
|
+
///m_pWKNotifyOfSipPosition();
|
383
|
+
}
|
384
|
+
|
385
|
+
void CRhoWKBrowserEngine::setNavigationTimeout(unsigned int dwMilliseconds)
|
386
|
+
{
|
387
|
+
///m_pWKSetNavTimeout(dwMilliseconds);
|
388
|
+
}
|
389
|
+
|
390
|
+
BOOL CRhoWKBrowserEngine::GetTitleOnTab(LPTSTR szURL, UINT iMaxLen, UINT iTab)
|
391
|
+
{
|
392
|
+
return true;//m_pWKGetTitle(szURL, iMaxLen, iTab);
|
393
|
+
}
|
394
|
+
|
395
|
+
LRESULT CALLBACK CRhoWKBrowserEngine::WK_HTMLWndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
|
396
|
+
{
|
397
|
+
if( !getInstance()->m_bLoadingComplete && message == WM_PAINT)
|
398
|
+
{
|
399
|
+
if ( rho_wmimpl_draw_splash_screen(getInstance()->GetHTMLWND(RHODESAPP().getExtManager().getCurrentTabID())) )
|
400
|
+
return 0;
|
401
|
+
}
|
402
|
+
|
403
|
+
if(RHODESAPP().m_cameraOpened)
|
404
|
+
{
|
405
|
+
HWND hwndCamera = FindWindow(CAMERAWND_CLASSNAME, NULL);
|
406
|
+
if (NULL != hwndCamera)
|
407
|
+
SetActiveWindow(hwndCamera);
|
408
|
+
}
|
409
|
+
|
410
|
+
// Pass message to original window procedure
|
411
|
+
//return CallWindowProc (m_WebKitOwnerProc, hwnd, message, wParam, lParam);
|
412
|
+
|
413
|
+
LRESULT result = CallWindowProc (m_WebKitOwnerProc, hwnd, message, wParam, lParam);
|
414
|
+
MSG msg = {0};
|
415
|
+
msg.hwnd = hwnd;
|
416
|
+
msg.lParam = lParam;
|
417
|
+
msg.message = message;
|
418
|
+
msg.wParam = wParam;
|
419
|
+
RHODESAPP().getExtManager().onHTMLWndMsg(msg);
|
420
|
+
return result;
|
421
|
+
}
|
422
|
+
|
423
|
+
BOOL CALLBACK CRhoWKBrowserEngine::WK_WMMsgHandler(int iTabID,LPMSG pMsg)
|
424
|
+
{
|
425
|
+
/******** THIS CANNOT STAY HERE, AS THE FUNCTION BELOW IT WOULD NEVER EXECUTE*********/
|
426
|
+
MSG msg = *pMsg;
|
427
|
+
if(pMsg->message == WM_PAINT)
|
428
|
+
{
|
429
|
+
return RHODESAPP().getExtManager().onHTMLWndMsg(msg);
|
430
|
+
}
|
431
|
+
|
432
|
+
/*
|
433
|
+
if (pMsg->message == WM_KILLFOCUS)
|
434
|
+
{
|
435
|
+
if (CRhoWKBrowserConfig::getInstance()->getFullScreen())
|
436
|
+
{
|
437
|
+
HWND taskbarWnd = FindWindow(L"HHTaskBar", NULL);
|
438
|
+
ShowWindow(taskbarWnd, SW_HIDE);
|
439
|
+
return FALSE;
|
440
|
+
}
|
441
|
+
}
|
442
|
+
*/
|
443
|
+
|
444
|
+
if( !getInstance()->m_bLoadingComplete && pMsg->message == WM_PAINT)
|
445
|
+
{
|
446
|
+
if ( rho_wmimpl_draw_splash_screen(getInstance()->GetHTMLWND(RHODESAPP().getExtManager().getCurrentTabID())) )
|
447
|
+
return FALSE;
|
448
|
+
}
|
449
|
+
|
450
|
+
if(RHODESAPP().m_cameraOpened)
|
451
|
+
{
|
452
|
+
HWND hwndCamera = FindWindow(CAMERAWND_CLASSNAME, NULL);
|
453
|
+
if (NULL != hwndCamera)
|
454
|
+
SetActiveWindow(hwndCamera);
|
455
|
+
}
|
456
|
+
|
457
|
+
if(RHODESAPP().isWebkitOutofProcess())
|
458
|
+
return RHODESAPP().getExtManager().onWndMsg(msg);
|
459
|
+
else
|
460
|
+
return FALSE;
|
461
|
+
|
462
|
+
}
|
463
|
+
|
464
|
+
LRESULT CALLBACK CRhoWKBrowserEngine::WK_GetEngineConfig(int iInstID, LPCTSTR tcSetting, TCHAR* tcValue)
|
465
|
+
{
|
466
|
+
/*LPCTSTR tcValueRead;
|
467
|
+
|
468
|
+
tcValueRead = CRhoWKBrowserConfig::getInstance()->getConfig()->GetAppSettingPtr(iInstID, tcSetting, L"Value");
|
469
|
+
if (tcValueRead != NULL)
|
470
|
+
wcscpy(tcValue, tcValueRead);
|
471
|
+
else
|
472
|
+
tcValue = NULL;
|
473
|
+
|
474
|
+
LOG(INFO) + "WebKit Settings: " + tcSetting + "=" + (tcValue ? tcValue : L"NULL");*/
|
475
|
+
|
476
|
+
return S_OK;
|
477
|
+
}
|
478
|
+
|
479
|
+
LRESULT CALLBACK onNavEvent(EngineEventID eeID, LPARAM value, int tabIndex)
|
480
|
+
{
|
481
|
+
BOOL bOk = FALSE;
|
482
|
+
DWORD dwRes = WAIT_FAILED;
|
483
|
+
HWND parentHWND = CRhoWKBrowserEngine::getInstance()->GetParentHWND();
|
484
|
+
switch(eeID)
|
485
|
+
{
|
486
|
+
case EEID_TITLECHANGE:
|
487
|
+
rho_title_change(tabIndex, (char*)value/*rho::common::convertToStringA((LPCTSTR)value).c_str()*/);
|
488
|
+
break;
|
489
|
+
/*case EEID_BEFORENAVIGATE:
|
490
|
+
g_EditableControlHasFocus = FALSE;
|
491
|
+
if ( !CRhoWKBrowserEngine::getInstance()->getWKConfig()->isHybridApp() )
|
492
|
+
PostMessage(parentHWND, WM_BROWSER_ONBEFORENAVIGATE, (WPARAM)tabIndex, (LPARAM)_tcsdup( (LPCTSTR)value) );
|
493
|
+
else
|
494
|
+
{
|
495
|
+
if ( CRhoWKBrowserEngine::getInstance()->getWebKitEngine()->Navigable((LPCTSTR)value) )
|
496
|
+
PostMessage(parentHWND, WM_BROWSER_ONBEFORENAVIGATE, (WPARAM)tabIndex, (LPARAM)_tcsdup( (LPCTSTR)value));
|
497
|
+
else
|
498
|
+
RHODESAPP().getExtManager().OnLicenseError((LPCTSTR)value);
|
499
|
+
}
|
500
|
+
break;*/
|
501
|
+
case EEID_NAVIGATECOMPLETE:
|
502
|
+
PostMessage(parentHWND, WM_BROWSER_ONNAVIGATECOMPLETE, (WPARAM)tabIndex, (LPARAM)_tcsdup( (LPCTSTR)value) );
|
503
|
+
break;
|
504
|
+
case EEID_DOCUMENTCOMPLETE:
|
505
|
+
{
|
506
|
+
LOG(INFO) + "before calling dominjector ";
|
507
|
+
RHODESAPP().getExtManager().getEngineEventMngr().injectDOMElements();
|
508
|
+
PostMessage(parentHWND, WM_BROWSER_ONDOCUMENTCOMPLETE, (WPARAM)tabIndex, (LPARAM)_tcsdup( (LPCTSTR)value));
|
509
|
+
|
510
|
+
if ( !CRhoWKBrowserEngine::getInstance()->m_bLoadingComplete )
|
511
|
+
{
|
512
|
+
CRhoWKBrowserEngine::getInstance()->m_bLoadingComplete = true;
|
513
|
+
InvalidateRect(CRhoWKBrowserEngine::getInstance()->GetHTMLWND(RHODESAPP().getExtManager().getCurrentTabID()), NULL, FALSE);
|
514
|
+
}
|
515
|
+
|
516
|
+
break;
|
517
|
+
}
|
518
|
+
case EEID_NAVIGATIONERROR:
|
519
|
+
//Check for common protocols
|
520
|
+
if (
|
521
|
+
(_tcsncmp((LPCTSTR)value,TEXT("tel:"),4) == 0) ||
|
522
|
+
(_tcsncmp((LPCTSTR)value,TEXT("sms:"),4) == 0) ||
|
523
|
+
(_tcsncmp((LPCTSTR)value,TEXT("mailto:"),7) == 0))
|
524
|
+
{
|
525
|
+
SHELLEXECUTEINFO shInfo;
|
526
|
+
|
527
|
+
//Run the Program
|
528
|
+
ZeroMemory(&shInfo,sizeof(shInfo));
|
529
|
+
shInfo.cbSize = sizeof(shInfo);
|
530
|
+
shInfo.fMask = SEE_MASK_FLAG_NO_UI | SEE_MASK_NOCLOSEPROCESS;
|
531
|
+
shInfo.lpVerb = L"open";
|
532
|
+
shInfo.lpFile = (LPCTSTR)value;
|
533
|
+
shInfo.nShow = SW_SHOWNORMAL;
|
534
|
+
ShellExecuteEx(&shInfo);
|
535
|
+
CloseHandle(shInfo.hProcess);
|
536
|
+
PostMessage(parentHWND, WM_BROWSER_ONDOCUMENTCOMPLETE, tabIndex, (LPARAM)_tcsdup( (LPCTSTR)value) );
|
537
|
+
return S_OK;
|
538
|
+
}
|
539
|
+
|
540
|
+
LOG(ERROR) + "Navigation error: " + (LPCTSTR)value;
|
541
|
+
|
542
|
+
PostMessage(parentHWND, WM_BROWSER_ONNAVIGATIONERROR, (WPARAM)tabIndex, (LPARAM)_tcsdup( (LPCTSTR)value));
|
543
|
+
return S_OK;
|
544
|
+
break;
|
545
|
+
case EEID_NAVIGATIONTIMEOUT:
|
546
|
+
PostMessage(parentHWND, WM_BROWSER_ONNAVIGATIONTIMEOUT, (WPARAM)tabIndex, (LPARAM)_tcsdup( (LPCTSTR)value));
|
547
|
+
return S_OK;
|
548
|
+
break;
|
549
|
+
}
|
550
|
+
|
551
|
+
return S_OK;
|
552
|
+
}
|
553
|
+
|
554
|
+
LRESULT CALLBACK onFieldFocus(EngineEventID eeID, LPARAM value, int tabIndex)
|
555
|
+
{
|
556
|
+
g_EditableControlHasFocus = (BOOL)value;
|
557
|
+
m_hEditableWindow = GetFocus();
|
558
|
+
return PostMessage(rho_wmimpl_get_mainwnd(), WM_BROWSER_ONSETSIPSTATE, (WPARAM)tabIndex, value);
|
559
|
+
}
|
560
|
+
|
561
|
+
LRESULT CALLBACK onConsoleMessage(EngineEventID eeID, LPARAM value, int tabIndex)
|
562
|
+
{
|
563
|
+
LOG(INFO) + "JS Log: " + (LPCTSTR)value;
|
564
|
+
|
565
|
+
return S_OK;
|
566
|
+
}
|
567
|
+
|
568
|
+
LRESULT CRhoWKBrowserEngine::ProcessOnTopMostWnd(HWND hWnd, int tabIndex)
|
569
|
+
{
|
570
|
+
LOG(INFO) + "ProcessOnTopMostWnd";
|
571
|
+
|
572
|
+
|
573
|
+
if(tabIndex)return S_OK;//only register on the first tab created, which will be 0
|
574
|
+
|
575
|
+
if(!m_pWKRegisterForEvent(EEID_ENGINE_EXIT,WK_ExitHandler)){
|
576
|
+
return S_FALSE;
|
577
|
+
}
|
578
|
+
|
579
|
+
if(!m_pWKRegisterForEvent(EEID_DOCUMENTCOMPLETE,onNavEvent)){
|
580
|
+
return S_FALSE;
|
581
|
+
}
|
582
|
+
if(!m_pWKRegisterForEvent(EEID_NAVIGATECOMPLETE,onNavEvent)){
|
583
|
+
return S_FALSE;
|
584
|
+
}
|
585
|
+
if(!m_pWKRegisterForEvent(EEID_BEFORENAVIGATE,onNavEvent)){
|
586
|
+
return S_FALSE;
|
587
|
+
}
|
588
|
+
|
589
|
+
if(!m_pWKRegisterForEvent(EEID_TITLECHANGE,onNavEvent)){
|
590
|
+
return S_FALSE;
|
591
|
+
}
|
592
|
+
|
593
|
+
//Fired when the page load takes longer than the value specified by 'NavTimeout' in the config file
|
594
|
+
if(!m_pWKRegisterForEvent(EEID_NAVIGATIONTIMEOUT,onNavEvent)){
|
595
|
+
return S_FALSE;
|
596
|
+
}
|
597
|
+
// Fired when the engine indicates an editable field has been clicked on
|
598
|
+
if (!m_pWKRegisterForEvent(EEID_SETSIPSTATE, onFieldFocus))
|
599
|
+
{
|
600
|
+
}
|
601
|
+
// Fired when the engine gives us a console log message (JS error or window.console.log)
|
602
|
+
if (!m_pWKRegisterForEvent(EEID_CONSOLEMESSAGE, onConsoleMessage))
|
603
|
+
{
|
604
|
+
}
|
605
|
+
|
606
|
+
//Fired if there is an error navigating to the page, for example attempting to navigate to http://www.symbol.com if the device does not have a network connection.
|
607
|
+
if(!m_pWKRegisterForEvent(EEID_NAVIGATIONERROR,onNavEvent)){
|
608
|
+
return S_FALSE;
|
609
|
+
}
|
610
|
+
|
611
|
+
return S_OK;
|
612
|
+
}
|
613
|
+
|
614
|
+
LRESULT CRhoWKBrowserEngine::OnWebKitMessages(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
|
615
|
+
{
|
616
|
+
int iTabID;
|
617
|
+
LPTSTR pStr;
|
618
|
+
|
619
|
+
bHandled = TRUE;
|
620
|
+
|
621
|
+
switch (uMsg)
|
622
|
+
{
|
623
|
+
|
624
|
+
case PB_ONTOPMOSTWINDOW:
|
625
|
+
{
|
626
|
+
LOG(INFO) + "START WK_ONTOPMOSTWINDOW";
|
627
|
+
/*return*/ CRhoWKBrowserEngine::ProcessOnTopMostWnd((HWND)lParam,(int)wParam);
|
628
|
+
//LRESULT rtRes = g_pAppManager->ProcessOnTopMostWnd((HWND)lParam,(int)wParam);
|
629
|
+
LRESULT rtRes = rho_wm_appmanager_ProcessOnTopMostWnd(wParam, lParam);
|
630
|
+
//if(rtRes == S_FALSE){
|
631
|
+
// PostMessage(PB_GEN_QUIT,0,0);//we have not successfully processed the topMostWindow so shutdown
|
632
|
+
//}
|
633
|
+
LOG(INFO) + "END WK_ONTOPMOSTWINDOW";
|
634
|
+
return rtRes;
|
635
|
+
break;
|
636
|
+
}
|
637
|
+
case PB_WINDOW_RESTORE:
|
638
|
+
// The window has been restored
|
639
|
+
//BrowserRestore(0, NULL);
|
640
|
+
ShowWindow(m_pWKGetWKWindow(RHODESAPP().getExtManager().getCurrentTabID()), SW_RESTORE);
|
641
|
+
// Hide the Start Bar
|
642
|
+
//PBScreenMode(g_bFullScreen, FALSE);
|
643
|
+
SetForegroundWindow(m_pWKGetWKWindow(RHODESAPP().getExtManager().getCurrentTabID()));
|
644
|
+
EnableWindow(m_pWKGetWKWindow(RHODESAPP().getExtManager().getCurrentTabID()), TRUE);
|
645
|
+
|
646
|
+
//RHODESAPP().getExtManager().OnWindowChanged((LPVOID) WK_WINRESTORED);
|
647
|
+
|
648
|
+
break;
|
649
|
+
case PB_SCREEN_ORIENTATION_CHANGED:
|
650
|
+
RHODESAPP().getExtManager().OnWindowChanged((LPVOID) lParam);
|
651
|
+
//g_bLeftRotated = wParam == TYPEHERE?TRUE:FALSE;//update the global
|
652
|
+
//use a thread so that we don't hold up the message pump
|
653
|
+
//CloseHandle(CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE) WindowChangedThread,(LPVOID) lParam, 0, 0));
|
654
|
+
break;
|
655
|
+
|
656
|
+
}
|
657
|
+
|
658
|
+
return 0;
|
659
|
+
}
|
660
|
+
|
661
|
+
void CRhoWKBrowserEngine::RunMessageLoop(CMainWindow& mainWnd)
|
662
|
+
{
|
663
|
+
//tPB_PreprocessMessage lpPreprocessMessage = m_pEngine->GetlpPreprocessMessage();
|
664
|
+
|
665
|
+
//LRESULT preProcRes;
|
666
|
+
MSG msg;
|
667
|
+
while (GetMessage(&msg, NULL, 0, 0))
|
668
|
+
{
|
669
|
+
//In the case of webkit inprocess, On keydown, it invokes RunMessageLoop followed by WK_WMMsgHandler.
|
670
|
+
//In the case of webkit outprocess, whenever Ehkio window has the focus, it invokes only WK_WMMsgHandler.
|
671
|
+
//But whenever webkit loses focus and MainWindow gets the focus, WM_KEYDOWN message will invoke RunMessageLoop and
|
672
|
+
//it won't invoke WK_WMMsgHandler
|
673
|
+
//We have lots of logic sucha as camera logic inside WK_WMMsgHandler, so we have to explicitly
|
674
|
+
//invoke this method if focus is with MainWindow
|
675
|
+
if(RHODESAPP().isWebkitOutofProcess())
|
676
|
+
{
|
677
|
+
//we reach here for outproc, WK_WMMsgHandler internally handover the message to extention manager
|
678
|
+
WK_WMMsgHandler(0,&msg);
|
679
|
+
}
|
680
|
+
else
|
681
|
+
{
|
682
|
+
if((WM_KEYDOWN == msg.message)||((WM_KEYUP == msg.message))||((WM_CHAR == msg.message)))
|
683
|
+
{
|
684
|
+
if(msg.wParam==VK_BACK)
|
685
|
+
{
|
686
|
+
HWND checkCurrentWindow = GetActiveWindow();
|
687
|
+
HWND checkIsParentHWND = CRhoWKBrowserEngine::getInstance()->GetParentHWND();
|
688
|
+
if(!g_EditableControlHasFocus && (checkCurrentWindow == checkIsParentHWND))
|
689
|
+
{
|
690
|
+
continue;
|
691
|
+
}
|
692
|
+
}
|
693
|
+
if(g_EditableControlHasFocus)
|
694
|
+
{
|
695
|
+
HWND checkFocusWindow = GetFocus();
|
696
|
+
if(m_hEditableWindow)
|
697
|
+
{
|
698
|
+
if(m_hEditableWindow != checkFocusWindow)
|
699
|
+
{
|
700
|
+
SetFocus(m_hEditableWindow);
|
701
|
+
}
|
702
|
+
}
|
703
|
+
}
|
704
|
+
}
|
705
|
+
|
706
|
+
//we reach here, only in the case of inproc
|
707
|
+
if( RHODESAPP().getExtManager().onWndMsg(msg) )
|
708
|
+
continue;
|
709
|
+
}
|
710
|
+
|
711
|
+
|
712
|
+
if (!TranslateAccelerator(msg.hwnd, 0, &msg))
|
713
|
+
//if (!mainWnd.TranslateAccelerator(&msg))
|
714
|
+
{
|
715
|
+
TranslateMessage(&msg);
|
716
|
+
DispatchMessage(&msg);
|
717
|
+
}
|
718
|
+
}
|
719
|
+
}
|
720
|
+
|
721
|
+
void CRhoWKBrowserEngine::SetCookie(char* url, char* cookie)
|
722
|
+
{
|
723
|
+
// can't implement: no webkit method exposed!
|
724
|
+
}
|
725
|
+
|
726
|
+
void CRhoWKBrowserEngine::OnDocumentComplete(LPCTSTR url)
|
727
|
+
{
|
728
|
+
}
|
729
|
+
|
730
|
+
}
|
731
|
+
|
732
|
+
rho::IBrowserEngine* rho_wmimpl_get_webkitBrowserEngine(HWND hwndParent, HINSTANCE rhoAppInstance)
|
733
|
+
{
|
734
|
+
return rho::CRhoWKBrowserEngine::getInstance(hwndParent, rhoAppInstance);
|
735
|
+
}
|
736
|
+
|