diff options
author | Yves Fischer <yvesf-git@xapek.org> | 2015-12-20 18:47:45 +0100 |
---|---|---|
committer | Yves Fischer <yvesf-git@xapek.org> | 2015-12-20 18:47:45 +0100 |
commit | 570c0a93fb24a393a2bf013a5aad5b6759713ce7 (patch) | |
tree | 430499b41b4defac779fa3f3967bf0fa7af9f418 /packages/gwt-chromium | |
download | debian-packages-570c0a93fb24a393a2bf013a5aad5b6759713ce7.tar.gz debian-packages-570c0a93fb24a393a2bf013a5aad5b6759713ce7.zip |
start migrating from shell scripts
Diffstat (limited to 'packages/gwt-chromium')
15 files changed, 722 insertions, 0 deletions
diff --git a/packages/gwt-chromium/build.gradle b/packages/gwt-chromium/build.gradle new file mode 100644 index 0000000..5b3c467 --- /dev/null +++ b/packages/gwt-chromium/build.gradle @@ -0,0 +1,43 @@ +//chrome nightly build, one of the last with npapi +final revision = '242519' +version "34-r${revision}" + +task downloadChrome(type: buildSrc.DownloadTask) { + source "http://gsdview.appspot.com/chromium-browser-continuous/Linux_x64/${revision}/chrome-linux.zip" + sha256sum '7269d35b51fb16ebd11af92cdaba933fb73f8984949952888e30fab63dc78df8' +} + +task unpackChrome(type: Copy) { + from zipTree(downloadChrome.destFile) + into file("${buildDir}/unpacked/dist") +} +unpackChrome.dependsOn(downloadChrome) + +task downloadGwtPlugin(type: buildSrc.DownloadTask) { + source 'https://clients2.googleusercontent.com/crx/blobs/QgAAAC6zw0qH2DJtnXe8Z7rUJP3brylTnXsqSLH8EJLp' + + 'Cpq2560pdQWMapnnCQsWYAxwMN2Pa2mZkH4aA9in1i3WTJKG0OUyFhe7lScnMNxhS1yjAMZSmuVxRW6MIEDyZkO8bJcfTSNy6GZA2g/' + + 'extension_1_0_11357.crx' + sha256sum '5716f39ca4dadb47f571f65f631a00854487971f42ad24aa3a36a99e78d33134' +} + +task downloadPdfPlugin(type: buildSrc.DownloadTask) { + source 'https://clients2.googleusercontent.com/crx/blobs/QgAAAC6zw0qH2DJtnXe8Z7rUJP2i3UKpz0eTiopC2Qlk_FXWm-wYwG' + + 'N2MPtjDt7LaoCfAScKzPva1bZi2q-9pYXZOibTl1nwFns1ZGCCvKGnyPQ0AMZSmuVlD6-IvZI2Yaw8Sj800M072EC85w/'+ + 'extension_1_1_527.crx' + sha256sum '' +} + +ospackage { + into("/opt/${project.name}") + from(unpackChrome.outputs.files) + from(fileTree(dir: 'resources/chrome-profile')) + from('resources/rewrite-locale/output.pak') { + into '/chrome-linux/locales/en-US.pak' + } + from(downloadGwtPlugin.outputs.files) { + into "/opt/${project.name}/chrome-profile/Default/Extensions/jpjpnpmbddbjkfaccnmhnkdgjideieim" + } + from(downloadPdfPlugin.outputs.files) { + into "/opt/${project.name}/chrome-profile/Default/Extensions/oemmndcbldboiebfnladdacbdfmadadm" + } +}
\ No newline at end of file diff --git a/packages/gwt-chromium/resources/chrome-profile/bin/gwt-chrome-persistent b/packages/gwt-chromium/resources/chrome-profile/bin/gwt-chrome-persistent new file mode 100755 index 0000000..c0b2ef1 --- /dev/null +++ b/packages/gwt-chromium/resources/chrome-profile/bin/gwt-chrome-persistent @@ -0,0 +1,12 @@ +#!/bin/sh +HERE=`dirname "$0"` +profile="$HOME/.config/gwt-chrome" +if ! [ -e "$profile" ]; then + mkdir -p "$profile" + cp -r "$HERE/../chrome-profile"/* "$profile" +fi +chmod -R u+w "$profile" +LD_LIBRARY_PATH="$HERE/../lib/chrome-support" \ + "$HERE"/../chrome-linux/chrome \ + --auth-server-whitelist="*cern.ch" \ + --disable-setuid-sandbox --user-data-dir="$profile" $* diff --git a/packages/gwt-chromium/resources/chrome-profile/bin/gwt-chrome-volatile b/packages/gwt-chromium/resources/chrome-profile/bin/gwt-chrome-volatile new file mode 100755 index 0000000..99f2a21 --- /dev/null +++ b/packages/gwt-chromium/resources/chrome-profile/bin/gwt-chrome-volatile @@ -0,0 +1,16 @@ +#!/bin/sh +HERE=`dirname "$0"` +persistent_profile="$HOME/.config/gwt-chrome" +tmp_profile=`mktemp -d` +cp -r "$HERE/../chrome-profile"/* "$tmp_profile" +chmod -R u+w "$tmp_profile" + +# copy from persistent profile +test -e "$persistent_profile/Default/Bookmarks" && \ + cp "$persistent_profile/Default/Bookmarks" "$tmp_profile/Default/Bookmarks" + +LD_LIBRARY_PATH="$HERE/../lib/chrome-support" \ + "$HERE/../chrome-linux/"/chrome \ + --auth-server-whitelist="*cern.ch" \ + --disable-setuid-sandbox --user-data-dir="$tmp_profile" $* +rm -r "$tmp_profile" diff --git a/packages/gwt-chromium/resources/chrome-profile/bin/product_logo_48.png b/packages/gwt-chromium/resources/chrome-profile/bin/product_logo_48.png Binary files differnew file mode 100644 index 0000000..7690049 --- /dev/null +++ b/packages/gwt-chromium/resources/chrome-profile/bin/product_logo_48.png diff --git a/packages/gwt-chromium/resources/chrome-profile/chrome-profile/Default/Extension State/000003.log b/packages/gwt-chromium/resources/chrome-profile/chrome-profile/Default/Extension State/000003.log Binary files differnew file mode 100644 index 0000000..da73f93 --- /dev/null +++ b/packages/gwt-chromium/resources/chrome-profile/chrome-profile/Default/Extension State/000003.log diff --git a/packages/gwt-chromium/resources/chrome-profile/chrome-profile/Default/Extension State/CURRENT b/packages/gwt-chromium/resources/chrome-profile/chrome-profile/Default/Extension State/CURRENT new file mode 100644 index 0000000..1a84852 --- /dev/null +++ b/packages/gwt-chromium/resources/chrome-profile/chrome-profile/Default/Extension State/CURRENT @@ -0,0 +1 @@ +MANIFEST-000002 diff --git a/packages/gwt-chromium/resources/chrome-profile/chrome-profile/Default/Extension State/LOCK b/packages/gwt-chromium/resources/chrome-profile/chrome-profile/Default/Extension State/LOCK new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/packages/gwt-chromium/resources/chrome-profile/chrome-profile/Default/Extension State/LOCK diff --git a/packages/gwt-chromium/resources/chrome-profile/chrome-profile/Default/Extension State/LOG b/packages/gwt-chromium/resources/chrome-profile/chrome-profile/Default/Extension State/LOG new file mode 100644 index 0000000..1f2a05e --- /dev/null +++ b/packages/gwt-chromium/resources/chrome-profile/chrome-profile/Default/Extension State/LOG @@ -0,0 +1 @@ +2015/02/16-10:24:53.226 17564 Delete type=3 #1 diff --git a/packages/gwt-chromium/resources/chrome-profile/chrome-profile/Default/Extension State/MANIFEST-000002 b/packages/gwt-chromium/resources/chrome-profile/chrome-profile/Default/Extension State/MANIFEST-000002 Binary files differnew file mode 100644 index 0000000..bbbc585 --- /dev/null +++ b/packages/gwt-chromium/resources/chrome-profile/chrome-profile/Default/Extension State/MANIFEST-000002 diff --git a/packages/gwt-chromium/resources/chrome-profile/chrome-profile/Default/Preferences b/packages/gwt-chromium/resources/chrome-profile/chrome-profile/Default/Preferences new file mode 100644 index 0000000..8d11020 --- /dev/null +++ b/packages/gwt-chromium/resources/chrome-profile/chrome-profile/Default/Preferences @@ -0,0 +1,529 @@ +{ + "apps": { + "shortcuts_have_been_created": true + }, + "bookmark_bar": { + "show_on_all_tabs": true + }, + "browser": { + "last_known_google_url": "https://www.google.ch/", + "last_prompted_google_url": "https://www.google.ch/", + "window_placement": { + "bottom": 1029, + "left": 1330, + "maximized": false, + "right": 2275, + "top": 33, + "work_area_bottom": 1058, + "work_area_left": 1280, + "work_area_right": 3200, + "work_area_top": 33 + } + }, + "countryid_at_install": 21843, + "default_apps_install_state": 3, + "default_search_provider": { + "alternate_urls": [ "{google:baseURL}#q={searchTerms}", "{google:baseURL}search#q={searchTerms}", "{google:baseURL}webhp#q={searchTerms}" ], + "enabled": true, + "encodings": "UTF-8", + "icon_url": "http://www.google.com/favicon.ico", + "id": "2", + "image_url": "{google:baseURL}searchbyimage/upload", + "image_url_post_params": "encoded_image={google:imageThumbnail},image_url={google:imageURL},sbisrc={google:imageSearchSource},original_width={google:imageOriginalWidth},original_height={google:imageOriginalHeight}", + "instant_url": "{google:baseURL}webhp?sourceid=chrome-instant&{google:RLZ}{google:forceInstantResults}{google:instantExtendedEnabledParameter}{google:ntpIsThemedParameter}{google:omniboxStartMarginParameter}ie={inputEncoding}", + "instant_url_post_params": "", + "keyword": "google.ch", + "name": "Google", + "new_tab_url": "{google:baseURL}_/chrome/newtab?{google:RLZ}{google:instantExtendedEnabledParameter}{google:ntpIsThemedParameter}ie={inputEncoding}", + "prepopulate_id": "1", + "search_terms_replacement_key": "espv", + "search_url": "{google:baseURL}search?q={searchTerms}&{google:RLZ}{google:originalQueryForSuggestion}{google:assistedQueryStats}{google:searchFieldtrialParameter}{google:bookmarkBarPinned}{google:searchClient}{google:sourceId}{google:instantExtendedEnabledParameter}{google:omniboxStartMarginParameter}ie={inputEncoding}", + "search_url_post_params": "", + "suggest_url": "{google:baseSuggestURL}search?{google:searchFieldtrialParameter}client={google:suggestClient}&gs_ri={google:suggestRid}&xssi=t&q={searchTerms}&{google:cursorPosition}{google:currentPageUrl}{google:pageClassification}sugkey={google:suggestAPIKeyParameter}", + "suggest_url_post_params": "" + }, + "dns_prefetching": { + "host_referral_list": [ 2, [ "https://accounts.google.com/", [ "https://apis.google.com/", 2.2733802, "https://oauth.googleusercontent.com/", 2.2733802, "https://ssl.gstatic.com/", 2.2733802 ] ], [ "https://apis.google.com/", [ "https://apis.google.com/", 2.6037003999999997, "https://fonts.gstatic.com/", 2.2733802 ] ], [ "https://www.google.com/", [ "https://accounts.google.com/", 2.2733802, "https://apis.google.com/", 3.2643407999999994, "https://fonts.googleapis.com/", 2.2733802, "https://fonts.gstatic.com/", 3.2643407999999994, "https://ssl.google-analytics.com/", 2.6037003999999997, "https://ssl.gstatic.com/", 2.2733802, "https://www.google.com/", 5.246261999999999, "https://www.gstatic.com/", 2.2733802, "https://www.youtube.com/", 2.2733802 ] ], [ "https://www.youtube.com/", [ "https://i.ytimg.com/", 2.2733802, "https://s.ytimg.com/", 3.5946609999999994, "https://www.google.com/", 2.2733802 ] ] ], + "startup_list": [ 1, "http://tools.google.com/", "https://clients2.google.com/", "https://clients2.googleusercontent.com/", "https://fonts.googleapis.com/", "https://fonts.gstatic.com/", "https://ssl.google-analytics.com/", "https://ssl.gstatic.com/", "https://www.google.com/", "https://www.gstatic.com/", "https://www.youtube.com/" ] + }, + "extensions": { + "alerts": { + "initialized": true + }, + "autoupdate": { + "next_check": "13068571833446583" + }, + "chrome_url_overrides": { + "bookmarks": [ "chrome-extension://eemcgdkfndhakfknompkggombfjjjeno/main.html" ] + }, + "known_disabled": [ ], + "last_chrome_version": "34.0.1761.0", + "settings": { + "hnmkfcicjochbbdloamlldphmhbbkenb": { + "active_permissions": { + "api": [ "plugin", "tabs" ], + "manifest_permissions": [ ] + }, + "content_settings": [ ], + "creation_flags": 38, + "events": [ ], + "from_bookmark": false, + "from_webstore": false, + "granted_permissions": { + "api": [ "plugin", "tabs" ], + "manifest_permissions": [ ] + }, + "incognito_content_settings": [ ], + "incognito_preferences": { + + }, + "initial_keybindings_set": true, + "install_time": "13068552374378446", + "location": 4, + "newAllowFileAccess": true, + "path": "jpjpnpmbddbjkfaccnmhnkdgjideieim", + "preferences": { + + }, + "regular_only_preferences": { + + }, + "state": 1, + "was_installed_by_default": false + }, + "mfehgcgbbipciphmccgaenjidiccnmng": { + "active_permissions": { + "api": [ "cloudPrintPrivate" ], + "manifest_permissions": [ ] + }, + "content_settings": [ ], + "creation_flags": 1, + "events": [ ], + "from_bookmark": false, + "from_webstore": false, + "incognito_content_settings": [ ], + "incognito_preferences": { + + }, + "install_time": "13068552291983812", + "location": 5, + "manifest": { + "app": { + "launch": { + "web_url": "https://www.google.com/cloudprint" + }, + "urls": [ "https://www.google.com/cloudprint/enable_chrome_connector" ] + }, + "description": "Cloud Print", + "display_in_launcher": false, + "icons": { + + }, + "key": "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDqOhnwk4+HXVfGyaNsAQdU/js1Na56diW08oF1MhZiwzSnJsEaeuMN9od9q9N4ZdK3o1xXOSARrYdE+syV7Dl31nf6qz3A6K+D5NHe6sSB9yvYlIiN37jdWdrfxxE0pRYEVYZNTe3bzq3NkcYJlOdt1UPcpJB+isXpAGUKUvt7EQIDAQAB", + "name": "Cloud Print", + "permissions": [ "cloudPrintPrivate" ], + "version": "0.1" + }, + "path": "/home/yfischer/.nixpkgs/store/wmzb416rhym02j7rp19ffnqjdi2q093v-gwt-chromium/opt/chrome-linux/resources/cloud_print", + "preferences": { + + }, + "regular_only_preferences": { + + }, + "was_installed_by_default": false + }, + "oemmndcbldboiebfnladdacbdfmadadm": { + "active_permissions": { + "api": [ "fileBrowserHandler", "fileBrowserHandlerInternal", "storage", "tabs", "webNavigation", "webRequest", "webRequestBlocking", "webRequestInternal" ], + "explicit_host": [ "\u003Call_urls>", "chrome://favicon/*" ], + "manifest_permissions": [ ], + "scriptable_host": [ "file:///*", "ftp://*/*", "http://*/*", "https://*/*" ] + }, + "content_settings": [ ], + "creation_flags": 9, + "events": [ ], + "from_bookmark": false, + "from_webstore": true, + "granted_permissions": { + "api": [ "fileBrowserHandler", "fileBrowserHandlerInternal", "storage", "tabs", "webNavigation", "webRequest", "webRequestBlocking", "webRequestInternal" ], + "explicit_host": [ "\u003Call_urls>", "chrome://favicon/*" ], + "manifest_permissions": [ ], + "scriptable_host": [ "file:///*", "ftp://*/*", "http://*/*", "https://*/*" ] + }, + "incognito_content_settings": [ ], + "incognito_preferences": { + + }, + "initial_keybindings_set": true, + "install_time": "13069340611715590", + "location": 1, + "manifest": { + "background": { + "page": "pdfHandler.html" + }, + "content_scripts": [ { + "all_frames": true, + "css": [ "contentstyle.css" ], + "js": [ "contentscript.js" ], + "matches": [ "http://*/*", "https://*/*", "ftp://*/*", "file://*/*" ], + "run_at": "document_start" + } ], + "content_security_policy": "script-src 'self' 'unsafe-eval'; object-src 'self'", + "description": "Uses HTML5 to display PDF files directly in the browser.", + "file_browser_handlers": [ { + "default_title": "Open with PDF Viewer", + "file_filters": [ "filesystem:*.pdf" ], + "id": "open-as-pdf" + } ], + "icons": { + "128": "icon128.png", + "16": "icon16.png", + "48": "icon48.png" + }, + "incognito": "split", + "key": "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDb5PIb8ayK6vHvEIY1nJKRSCDE8iJ1T43qFN+5dvCVQrmyEkgqB9ZuZNT24Lwot96HV51VoITHKRNIVKI2Nrbfn0M49t7qtaP34g/GXJ7mAIbSzsY4+i+Wsz8EL2SNEIw6uH8RmXG7nZ29NJ7sk7jn17QmMsO2UJ01UT8hfOOOEQIDAQAB", + "manifest_version": 2, + "mime_types": [ "application/pdf" ], + "name": "PDF Viewer", + "options_page": "options/options.html", + "options_ui": { + "chrome_style": true, + "page": "options/options.html" + }, + "page_action": { + "default_icon": { + "19": "icon19.png", + "38": "icon38.png" + }, + "default_popup": "pageActionPopup.html", + "default_title": "Show PDF URL" + }, + "permissions": [ "fileBrowserHandler", "webRequest", "webRequestBlocking", "\u003Call_urls>", "tabs", "webNavigation", "storage", "streamsPrivate" ], + "storage": { + "managed_schema": "preferences_schema.json" + }, + "update_url": "https://clients2.google.com/service/update2/crx", + "version": "1.0.1143", + "web_accessible_resources": [ "getFrameId", "content/web/viewer.html", "http:/*", "https:/*", "ftp:/*", "file:/*", "chrome-extension:/*", "filesystem:/*", "drive:*" ] + }, + "path": "oemmndcbldboiebfnladdacbdfmadadm", + "preferences": { + + }, + "regular_only_preferences": { + + }, + "state": 1, + "was_installed_by_default": false + }, + "pafkbggdmjlpgkdkcbjmhmfcdpncadgh": { + "active_permissions": { + "api": [ "alarms", "identity", "location", "metricsPrivate", "notifications", "preferencesPrivate", "pushMessaging", "storage", "tabs", "webstorePrivate" ], + "explicit_host": [ "\u003Call_urls>", "chrome://favicon/*" ], + "manifest_permissions": [ ] + }, + "content_settings": [ ], + "creation_flags": 1, + "events": [ "alarms.onAlarm", "identity.onSignInChanged", "location.onLocationUpdate", "notifications.onButtonClicked", "notifications.onClicked", "notifications.onClosed", "notifications.onPermissionLevelChanged", "notifications.onShowSettings", "pushMessaging.onMessage", "runtime.onInstalled", "runtime.onStartup", "runtime.onSuspend", "types.private.ChromeDirectSetting.googlegeolocationaccess.enabled.onChange" ], + "from_bookmark": false, + "from_webstore": false, + "incognito_content_settings": [ ], + "incognito_preferences": { + + }, + "initial_keybindings_set": true, + "install_time": "13068552291985445", + "location": 5, + "manifest": { + "background": { + "persistent": false, + "scripts": [ "utility.js", "cards.js", "background.js" ] + }, + "description": "Integrates Google Now into Chrome.", + "icons": { + "128": "images/icon128.png", + "16": "images/icon16.png", + "48": "images/icon48.png" + }, + "key": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAkhqJr32OFD/bMXW4Md7jMfd7LbwHXVc6x5bBQG5U+dloofoxrICDR20yur/40mQ8O//0sS1b8srvbab1CRlSrxoNCr9T80NAkfzx0gHyVS+p1Zow+1FzLMu9PiGwwFyN80HIB7GI/dIa0wC9K/2OrrzcHEhVH96DacTtWQqjfDVtZPjT7Xwv23dgoWcpbkRC86jMJot3dmX9xnn0KzoVc9gDOHSIkBLbkkr6Sp3LGXCCM4L0DJgxdFwaLr5WBzgC3y5x0/wwPIwN4PtIaK3BhH6njlksfnKwwIJ9iRT41V4BqbWu4mszO/7VJ3HJyw2DBpIc2grU9ZRRxrV3fRQG4wIDAQAB", + "manifest_version": 2, + "name": "Google Now", + "oauth2": { + "auto_approve": true, + "scopes": [ "https://www.googleapis.com/auth/googlenow" ] + }, + "optional_permissions": [ "background" ], + "permissions": [ "alarms", "identity", "location", "metricsPrivate", "notifications", "preferencesPrivate", "pushMessaging", "storage", "tabs", "webstorePrivate", "\u003Call_urls>" ], + "version": "1.2.0.1" + }, + "path": "/home/yfischer/.nixpkgs/store/wmzb416rhym02j7rp19ffnqjdi2q093v-gwt-chromium/opt/chrome-linux/resources/google_now", + "preferences": { + + }, + "regular_only_preferences": { + + }, + "was_installed_by_default": false + }, + "pmjbhfmaphnpbehdanbjphdcniaelfie": { + "active_bit": true, + "active_permissions": { + "api": [ "background", "storage", "tabs", "webRequest", "webRequestBlocking", "webRequestInternal" ], + "explicit_host": [ "\u003Call_urls>", "chrome://favicon/*" ], + "manifest_permissions": [ ] + }, + "content_settings": [ ], + "creation_flags": 9, + "events": [ ], + "from_bookmark": false, + "from_webstore": true, + "granted_permissions": { + "api": [ "background", "storage", "tabs", "webRequest", "webRequestBlocking", "webRequestInternal" ], + "explicit_host": [ "\u003Call_urls>", "chrome://favicon/*" ], + "manifest_permissions": [ ] + }, + "incognito_content_settings": [ ], + "incognito_preferences": { + + }, + "initial_keybindings_set": true, + "install_time": "13069340790430209", + "last_launch_time": "13069340811551561", + "location": 1, + "manifest": { + "background": { + "persistent": true, + "scripts": [ "lib/dojo.js", "code/background.js" ] + }, + "browser_action": { + "default_icon": "icons/icon.png", + "default_popup": "popup.html" + }, + "content_security_policy": "script-src 'self' 'unsafe-eval'; object-src 'self'", + "description": "An Extension for chrome to easily change the language. This makes testing locale related problems easier", + "key": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAge4+rEOVAsU1R7JIe8HE/wiaU5SnyrGPWFkSOk5uRfXdxcfZdj9UnTnIpGdexs8iGD1G63+NMeL0R0sxeZEAb4FLdRKAcslf4DwbxZPrV+rb8j4GcEzwaz/VEBvblE8TyfJTymWO3ZjpR93PvEIwjkDLiAXUabfL0JrPGGTYXg+rcINJDnXc8+8FIYfrXlaY76HtCEXRplqIFxEB8lxcXUyPtoD2Ugg7tXbKGQCkWjxiCA3ZFQneEymWmXWhS9NOpH0cf1qnvqtLt4cHGAFB/vRP1hKIwNE63NNsbB2DYrOtaGs2bglNrsKHLCjjVoTt58cZQaUbBwR1vczjpdqtFQIDAQAB", + "manifest_version": 2, + "name": "Quick Language Switcher", + "options_page": "options.html", + "permissions": [ "\u003Call_urls>", "webRequest", "webRequestBlocking", "background", "storage", "tabs" ], + "update_url": "https://clients2.google.com/service/update2/crx", + "version": "0.0.0.4" + }, + "path": "pmjbhfmaphnpbehdanbjphdcniaelfie", + "preferences": { + + }, + "regular_only_preferences": { + + }, + "state": 1, + "was_installed_by_default": false + } + }, + "theme": { + "use_system": false + }, + "ui": { + "developer_mode": true + } + }, + "google": { + "services": { + "signin": { + "LSID": "", + "SID": "" + } + } + }, + "intl": { + "accept_languages": "en-US,en" + }, + "invalidator": { + "client_id": "l+abZwfh80KDwgMJkMLA1g==" + }, + "media": { + "device_id_salt": "FtrdBPEmfQM7NJMrmjg9KQ==" + }, + "net": { + "http_server_properties": { + "servers": { + "accounts.google.com:443": { + "alternate_protocol": { + "port": 443, + "protocol_str": "quic" + }, + "settings": { + "4": 100 + }, + "supports_spdy": true + }, + "apis.google.com:443": { + "alternate_protocol": { + "port": 443, + "protocol_str": "quic" + }, + "settings": { + "4": 100 + }, + "supports_spdy": true + }, + "clients2.google.com:443": { + "alternate_protocol": { + "port": 443, + "protocol_str": "quic" + }, + "settings": { + "4": 100 + }, + "supports_spdy": true + }, + "clients2.googleusercontent.com:443": { + "alternate_protocol": { + "port": 443, + "protocol_str": "quic" + }, + "settings": { + "4": 100 + }, + "supports_spdy": true + }, + "fonts.googleapis.com:443": { + "alternate_protocol": { + "port": 443, + "protocol_str": "quic" + }, + "settings": { + "4": 100 + }, + "supports_spdy": true + }, + "fonts.gstatic.com:443": { + "alternate_protocol": { + "port": 443, + "protocol_str": "quic" + }, + "supports_spdy": false + }, + "i.ytimg.com:443": { + "alternate_protocol": { + "port": 443, + "protocol_str": "quic" + }, + "supports_spdy": false + }, + "oauth.googleusercontent.com:443": { + "alternate_protocol": { + "port": 443, + "protocol_str": "quic" + }, + "settings": { + "4": 100 + }, + "supports_spdy": true + }, + "s.ytimg.com:443": { + "alternate_protocol": { + "port": 443, + "protocol_str": "quic" + }, + "settings": { + "4": 100 + }, + "supports_spdy": true + }, + "ssl.google-analytics.com:443": { + "alternate_protocol": { + "port": 443, + "protocol_str": "quic" + }, + "settings": { + "4": 100 + }, + "supports_spdy": true + }, + "ssl.gstatic.com:443": { + "alternate_protocol": { + "port": 443, + "protocol_str": "quic" + }, + "supports_spdy": false + }, + "tools.google.com:80": { + "alternate_protocol": { + "port": 80, + "protocol_str": "quic" + }, + "supports_spdy": false + }, + "www.google.com:443": { + "alternate_protocol": { + "port": 443, + "protocol_str": "quic" + }, + "settings": { + "4": 100 + }, + "supports_spdy": true + }, + "www.google.com:80": { + "alternate_protocol": { + "port": 80, + "protocol_str": "quic" + }, + "supports_spdy": false + }, + "www.gstatic.com:443": { + "alternate_protocol": { + "port": 443, + "protocol_str": "quic" + }, + "settings": { + "4": 100 + }, + "supports_spdy": true + }, + "www.youtube.com:443": { + "alternate_protocol": { + "port": 443, + "protocol_str": "quic" + }, + "settings": { + "4": 100 + }, + "supports_spdy": true + } + }, + "version": 2 + } + }, + "pinned_tabs": [ ], + "plugins": { + "plugins_list": [ ], + "removed_old_component_pepper_flash_settings": true + }, + "profile": { + "avatar_index": 0, + "content_settings": { + "clear_on_exit_migrated": true, + "pattern_pairs": { + + }, + "pref_version": 1 + }, + "created_by_version": "34.0.1761.0", + "exit_type": "Normal", + "exited_cleanly": true, + "local_profile_id": 11453368, + "managed_user_id": "", + "name": "First user" + }, + "session": { + "restore_on_startup_migrated": true, + "startup_urls_migration_time": "13068552291979007" + }, + "translate_blocked_languages": [ "en" ], + "translate_whitelists": { + + } +} diff --git a/packages/gwt-chromium/resources/chrome-profile/chrome-profile/Local State b/packages/gwt-chromium/resources/chrome-profile/chrome-profile/Local State new file mode 100644 index 0000000..df85908 --- /dev/null +++ b/packages/gwt-chromium/resources/chrome-profile/chrome-profile/Local State @@ -0,0 +1,5 @@ +{ + "background_mode": { + "enabled": false + } +} diff --git a/packages/gwt-chromium/resources/chrome-profile/lib/chrome-support/libudev.so.0 b/packages/gwt-chromium/resources/chrome-profile/lib/chrome-support/libudev.so.0 Binary files differnew file mode 100755 index 0000000..2786d6a --- /dev/null +++ b/packages/gwt-chromium/resources/chrome-profile/lib/chrome-support/libudev.so.0 diff --git a/packages/gwt-chromium/resources/rewrite-locale/data_pack.py b/packages/gwt-chromium/resources/rewrite-locale/data_pack.py new file mode 100755 index 0000000..ba9790b --- /dev/null +++ b/packages/gwt-chromium/resources/rewrite-locale/data_pack.py @@ -0,0 +1,115 @@ +#!/usr/bin/env python +# Copyright (c) 2012 The Chromium Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +"""Support for formatting a data pack file used for platform agnostic resource +files. +""" + +import collections +import exceptions +import os +import struct +import sys +if __name__ == '__main__': + sys.path.append(os.path.join(os.path.dirname(__file__), '../..')) + + +PACK_FILE_VERSION = 4 +HEADER_LENGTH = 2 * 4 + 1 # Two uint32s. (file version, number of entries) and + # one uint8 (encoding of text resources) +BINARY, UTF8, UTF16 = range(3) + + +class WrongFileVersion(Exception): + pass + + +DataPackContents = collections.namedtuple( + 'DataPackContents', 'resources encoding') + + +def ReadDataPack(input_file): + """Reads a data pack file and returns a dictionary.""" + data = open(input_file, "rb").read() + original_data = data + + # Read the header. + version, num_entries, encoding = struct.unpack('<IIB', data[:HEADER_LENGTH]) + if version != PACK_FILE_VERSION: + print 'Wrong file version in ', input_file + raise WrongFileVersion + + resources = {} + if num_entries == 0: + return DataPackContents(resources, encoding) + + # Read the index and data. + data = data[HEADER_LENGTH:] + kIndexEntrySize = 2 + 4 # Each entry is a uint16 and a uint32. + for _ in range(num_entries): + id, offset = struct.unpack('<HI', data[:kIndexEntrySize]) + data = data[kIndexEntrySize:] + next_id, next_offset = struct.unpack('<HI', data[:kIndexEntrySize]) + resources[id] = original_data[offset:next_offset] + + return DataPackContents(resources, encoding) + + +def WriteDataPackToString(resources, encoding): + """Returns a string with a map of id=>data in the data pack format.""" + ids = sorted(resources.keys()) + ret = [] + + # Write file header. + ret.append(struct.pack('<IIB', PACK_FILE_VERSION, len(ids), encoding)) + HEADER_LENGTH = 2 * 4 + 1 # Two uint32s and one uint8. + + # Each entry is a uint16 + a uint32s. We have one extra entry for the last + # item. + index_length = (len(ids) + 1) * (2 + 4) + + # Write index. + data_offset = HEADER_LENGTH + index_length + for id in ids: + ret.append(struct.pack('<HI', id, data_offset)) + data_offset += len(resources[id]) + + ret.append(struct.pack('<HI', 0, data_offset)) + + # Write data. + for id in ids: + ret.append(resources[id]) + return ''.join(ret) + + +def WriteDataPack(resources, output_file, encoding): + """Writes a map of id=>data into output_file as a data pack.""" + content = WriteDataPackToString(resources, encoding) + with open(output_file, 'wb') as file: + file.write(content) + + + + + +# Temporary hack for external programs that import data_pack. +# TODO(benrg): Remove this. +class DataPack(object): + pass +DataPack.ReadDataPack = staticmethod(ReadDataPack) +DataPack.WriteDataPackToString = staticmethod(WriteDataPackToString) +DataPack.WriteDataPack = staticmethod(WriteDataPack) + + +def main(): + data = ReadDataPack("input.pak").resources + for (key,val) in data.items(): + if "Chromium" in val: + data[key] = val.replace("Chromium", "GWT-Chromium") + WriteDataPack(data, "output.pak", UTF8) + + +if __name__ == '__main__': + main() diff --git a/packages/gwt-chromium/resources/rewrite-locale/input.pak b/packages/gwt-chromium/resources/rewrite-locale/input.pak Binary files differnew file mode 100644 index 0000000..689c22f --- /dev/null +++ b/packages/gwt-chromium/resources/rewrite-locale/input.pak diff --git a/packages/gwt-chromium/resources/rewrite-locale/output.pak b/packages/gwt-chromium/resources/rewrite-locale/output.pak Binary files differnew file mode 100644 index 0000000..fe141a2 --- /dev/null +++ b/packages/gwt-chromium/resources/rewrite-locale/output.pak |