Skip to content

Commit

Permalink
Fixed issues in the README.md file for multiple projects.
Browse files Browse the repository at this point in the history
Fixed the minimum chrome version in the manifest.json file.
  • Loading branch information
ehsan-karamad committed Aug 20, 2015
1 parent ba7762e commit 2c49af9
Show file tree
Hide file tree
Showing 17 changed files with 45 additions and 50 deletions.
3 changes: 1 addition & 2 deletions samples/webview-samples/declarative-web-request/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,4 @@ top-right.


## Screenshot

![screenshot](https://raw.github.com/GoogleChrome/chrome-app-samples/webview-samples/declarative-web-request/assets/screenshot_1280_800.png)
![screenshot](/samples/webview-samples/declarative-web-request/assets/screenshot_1280_800.png)
6 changes: 3 additions & 3 deletions samples/webview-samples/declarative-web-request/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @see http://developer.chrome.com/apps/app.runtime.html
* @see http://developer.chrome.com/apps/app.window.html
*/
window.chrome.app.runtime.onLaunched.addListener(function() {
chrome.app.runtime.onLaunched.addListener(function() {
runApp();
});

Expand All @@ -13,7 +13,7 @@ window.chrome.app.runtime.onLaunched.addListener(function() {
*
* @see http://developer.chrome.com/apps/app.runtime.html
*/
window.chrome.app.runtime.onRestarted.addListener(function() {
chrome.app.runtime.onRestarted.addListener(function() {
runApp();
});

Expand All @@ -23,7 +23,7 @@ window.chrome.app.runtime.onRestarted.addListener(function() {
* @see http://developer.chrome.com/apps/app.window.html
*/
function runApp() {
window.chrome.app.window.create(
chrome.app.window.create(
'browser.html',
{'id': 'initialBrowserWindowID', 'state': 'maximized'});
}
2 changes: 1 addition & 1 deletion samples/webview-samples/insert-css/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ following links within the webview.

## Screenshot

![screenshot](https://raw.github.com/mdittmer/chrome-app-samples/insert-css/webview-samples/insert-css/assets/screenshot_1280_800.png)
![screenshot](/samples/webview-samples/insert-css/assets/screenshot_1280_800.png)
6 changes: 3 additions & 3 deletions samples/webview-samples/insert-css/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @see http://developer.chrome.com/apps/app.runtime.html
* @see http://developer.chrome.com/apps/app.window.html
*/
window.chrome.app.runtime.onLaunched.addListener(function() {
chrome.app.runtime.onLaunched.addListener(function() {
runApp();
});

Expand All @@ -13,7 +13,7 @@ window.chrome.app.runtime.onLaunched.addListener(function() {
*
* @see http://developer.chrome.com/apps/app.runtime.html
*/
window.chrome.app.runtime.onRestarted.addListener(function() {
chrome.app.runtime.onRestarted.addListener(function() {
runApp();
});

Expand All @@ -23,7 +23,7 @@ window.chrome.app.runtime.onRestarted.addListener(function() {
* @see http://developer.chrome.com/apps/app.window.html
*/
function runApp() {
window.chrome.app.window.create(
chrome.app.window.create(
'browser.html',
{'id': 'initialBrowserWindowID', 'state': 'maximized'});
}
2 changes: 1 addition & 1 deletion samples/webview-samples/local-resources/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ to particular `webview` partitions to access trusted package-local content.


## Screenshot
![screenshot](https://raw.github.com/mdittmer/chrome-app-samples/local-resources/webview-samples/local-resources/assets/screenshot_1280_800.png)
![screenshot](/samples/webview-samples/local-resources/assets/screenshot_1280_800.png)
8 changes: 4 additions & 4 deletions samples/webview-samples/local-resources/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @see http://developer.chrome.com/apps/app.runtime.html
* @see http://developer.chrome.com/apps/app.window.html
*/
window.chrome.app.runtime.onLaunched.addListener(function() {
chrome.app.runtime.onLaunched.addListener(function() {
runApp();
});

Expand All @@ -13,7 +13,7 @@ window.chrome.app.runtime.onLaunched.addListener(function() {
*
* @see http://developer.chrome.com/apps/app.runtime.html
*/
window.chrome.app.runtime.onRestarted.addListener(function() {
chrome.app.runtime.onRestarted.addListener(function() {
runApp();
});

Expand All @@ -23,10 +23,10 @@ window.chrome.app.runtime.onRestarted.addListener(function() {
* @see http://developer.chrome.com/apps/app.window.html
*/
function runApp() {
window.chrome.app.window.create(
chrome.app.window.create(
'good_app.html',
{'id': 'GoodWindowID'});
window.chrome.app.window.create(
chrome.app.window.create(
'bad_app.html',
{'id': 'BadWindowID'});
}
22 changes: 9 additions & 13 deletions samples/webview-samples/multi-tab-browser/README.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,24 @@
<a target="_blank" href="https://chrome.google.com/webstore/detail/jhgiafbilglmngpgkhcmnicfkpfihggo">![Try it now in CWS](https://raw.github.com/GoogleChrome/chrome-app-samples/master/tryitnowbutton.png "Click here to install this sample from the Chrome Web Store")</a>


# New Window API
# Multi-Tab Browser

Sample that shows one way to combine the [New Window
API](https://developer.chrome.com/apps/tags/webview#event-newwindow) with the
[User Agent
API](https://developer.chrome.com/apps/tags/webview#method-setUserAgentOverride)
for
[webviews](http://developer.chrome.com/apps/app_external.html#webview). The
app combines the [New Window
Sample](https://github.com/GoogleChrome/chrome-app-samples/tree/master/webview-samples/new-window)
and the [User Agent
Sample](https://github.com/GoogleChrome/chrome-app-samples/tree/master/webview-samples/user-agent)
by supporting `Open link in new tab/window as...` via the [Context Menu
API](https://developer.chrome.com/extensions/contextMenus) (see screenshot).
app combines the
[New Window User Agent Sample](https://github.com/GoogleChrome/chrome-app-samples/tree/master/samples/webview-samples/new-window-user-agent)
and the [Browser Sample](https://github.com/GoogleChrome/chrome-app-samples/tree/master/samples/webview-samples/browser).

## Features

* All features from the [New Window
Sample](https://github.com/GoogleChrome/chrome-app-samples/tree/master/webview-samples/new-window)
* Context menu entries for `Open link in new tab/window
as Android/iPhone/Nokia Mobile/BlackBerry Playbook`
* All features from the [New Window User Agent Sample](https://github.com/GoogleChrome/chrome-app-samples/tree/master/samples/webview-samples/new-window-user-agent)
* All features from the
[Browser Sample](https://github.com/GoogleChrome/chrome-app-samples/tree/master/samples/webview-samples/browser) except for [clearData API](https://developer.chrome.com/apps/tags/webview#method-clearData) and simulate crash.
* Added a new permissions feature based on [webview permissinorequest event](https://developer.chrome.com/apps/tags/webview#event-permissionrequest)

## Limitations

Expand All @@ -35,6 +32,5 @@ Sample](https://github.com/GoogleChrome/chrome-app-samples/tree/master/webview-s
* [Webview](http://developer.chrome.com/apps/app_external.html#webview)
* [Permissions](http://developer.chrome.com/apps/manifest.html#permissions)


## Screenshot
![screenshot](/samples/webview-samples/new-window-user-agent/assets/screenshot_1280_800.png)
![screenshot](/samples/webview-samples/multi-tab-browser/assets/screenshot_1280_800.png)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions samples/webview-samples/multi-tab-browser/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @see http://developer.chrome.com/apps/app.runtime.html
* @see http://developer.chrome.com/apps/app.window.html
*/
window.chrome.app.runtime.onLaunched.addListener(function() {
chrome.app.runtime.onLaunched.addListener(function() {
runApp();
});

Expand All @@ -13,7 +13,7 @@ window.chrome.app.runtime.onLaunched.addListener(function() {
*
* @see http://developer.chrome.com/apps/app.runtime.html
*/
window.chrome.app.runtime.onRestarted.addListener(function() {
chrome.app.runtime.onRestarted.addListener(function() {
runApp();
});

Expand All @@ -23,9 +23,9 @@ window.chrome.app.runtime.onRestarted.addListener(function() {
* @see http://developer.chrome.com/apps/app.window.html
*/
function runApp() {
window.chrome.app.window.create(
chrome.app.window.create(
'browser.html',
{'id': 'initialBrowserWindowID', 'state': 'maximized'},
{'id': 'initialBrowserWindowID'},
function(newWindow) {
// Do not inject meaningful window.newWindowEvent; browser will instead
// load the homepage
Expand Down
2 changes: 1 addition & 1 deletion samples/webview-samples/multi-tab-browser/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name": "Multi-tabbed Browser",
"minimum_chrome_version": "24.0.1307.0",
"minimum_chrome_version": "35.0.0.0",
"version": "0.7",
"icons": {
"16": "icon_16.png",
Expand Down
6 changes: 3 additions & 3 deletions samples/webview-samples/new-window-user-agent/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ API](https://developer.chrome.com/apps/tags/webview#method-setUserAgentOverride)
for
[webviews](http://developer.chrome.com/apps/app_external.html#webview). The
app combines the [New Window
Sample](https://github.com/GoogleChrome/chrome-app-samples/tree/master/webview-samples/new-window)
Sample](https://github.com/GoogleChrome/chrome-app-samples/tree/master/samples/webview-samples/new-window)
and the [User Agent
Sample](https://github.com/GoogleChrome/chrome-app-samples/tree/master/webview-samples/user-agent)
Sample](https://github.com/GoogleChrome/chrome-app-samples/tree/master/samples/webview-samples/user-agent)
by supporting `Open link in new tab/window as...` via the [Context Menu
API](https://developer.chrome.com/extensions/contextMenus) (see screenshot).

## Features

* All features from the [New Window
Sample](https://github.com/GoogleChrome/chrome-app-samples/tree/master/webview-samples/new-window)
Sample](https://github.com/GoogleChrome/chrome-app-samples/tree/master/samples/webview-samples/new-window)
* Context menu entries for `Open link in new tab/window
as Android/iPhone/Nokia Mobile/BlackBerry Playbook`

Expand Down
6 changes: 3 additions & 3 deletions samples/webview-samples/new-window-user-agent/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @see http://developer.chrome.com/apps/app.runtime.html
* @see http://developer.chrome.com/apps/app.window.html
*/
window.chrome.app.runtime.onLaunched.addListener(function() {
chrome.app.runtime.onLaunched.addListener(function() {
runApp();
});

Expand All @@ -13,7 +13,7 @@ window.chrome.app.runtime.onLaunched.addListener(function() {
*
* @see http://developer.chrome.com/apps/app.runtime.html
*/
window.chrome.app.runtime.onRestarted.addListener(function() {
chrome.app.runtime.onRestarted.addListener(function() {
runApp();
});

Expand All @@ -23,7 +23,7 @@ window.chrome.app.runtime.onRestarted.addListener(function() {
* @see http://developer.chrome.com/apps/app.window.html
*/
function runApp() {
window.chrome.app.window.create(
chrome.app.window.create(
'browser.html',
{'id': 'initialBrowserWindowID', 'state': 'maximized'},
function(newWindow) {
Expand Down
2 changes: 1 addition & 1 deletion samples/webview-samples/new-window/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ that identify a different window open a new window.


## Screenshot
![screenshot](https://raw.github.com/mdittmer/chrome-app-samples/new-window/webview-samples/new-window/assets/screenshot_1280_800.png)
![screenshot](/samples/webview-samples/new-window/assets/screenshot_1280_800.png)
6 changes: 3 additions & 3 deletions samples/webview-samples/new-window/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @see http://developer.chrome.com/apps/app.runtime.html
* @see http://developer.chrome.com/apps/app.window.html
*/
window.chrome.app.runtime.onLaunched.addListener(function() {
chrome.app.runtime.onLaunched.addListener(function() {
runApp();
});

Expand All @@ -13,7 +13,7 @@ window.chrome.app.runtime.onLaunched.addListener(function() {
*
* @see http://developer.chrome.com/apps/app.runtime.html
*/
window.chrome.app.runtime.onRestarted.addListener(function() {
chrome.app.runtime.onRestarted.addListener(function() {
runApp();
});

Expand All @@ -23,7 +23,7 @@ window.chrome.app.runtime.onRestarted.addListener(function() {
* @see http://developer.chrome.com/apps/app.window.html
*/
function runApp() {
window.chrome.app.window.create(
chrome.app.window.create(
'browser.html',
{'id': 'initialBrowserWindowID', 'state': 'maximized'},
function(newWindow) {
Expand Down
8 changes: 4 additions & 4 deletions samples/webview-samples/shared-script/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @see http://developer.chrome.com/apps/app.runtime.html
* @see http://developer.chrome.com/apps/app.window.html
*/
window.chrome.app.runtime.onLaunched.addListener(function() {
chrome.app.runtime.onLaunched.addListener(function() {
runApp();
});

Expand All @@ -13,7 +13,7 @@ window.chrome.app.runtime.onLaunched.addListener(function() {
*
* @see http://developer.chrome.com/apps/app.runtime.html
*/
window.chrome.app.runtime.onRestarted.addListener(function() {
chrome.app.runtime.onRestarted.addListener(function() {
runApp();
});

Expand All @@ -23,14 +23,14 @@ window.chrome.app.runtime.onRestarted.addListener(function() {
* @see http://developer.chrome.com/apps/app.window.html
*/
function runApp() {
window.chrome.app.window.create('correct_injection.html', {'id': 'goodWindowID'},
chrome.app.window.create('correct_injection.html', {'id': 'goodWindowID'},
function(appGoodWindow) {
var offset = 20;
var badWindowOuterBounds = {
'left': appGoodWindow.outerBounds.left + offset,
'top': appGoodWindow.outerBounds.top + offset
};
window.chrome.app.window.create('incorrect_injection.html', {'id': 'badWindowID', 'outerBounds': badWindowOuterBounds});
chrome.app.window.create('incorrect_injection.html', {'id': 'badWindowID', 'outerBounds': badWindowOuterBounds});
}
);
}
2 changes: 1 addition & 1 deletion samples/webview-samples/user-agent/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ security and reliability of your application.


## Screenshot
![screenshot](https://raw.github.com/mdittmer/chrome-app-samples/user-agent/webview-samples/user-agent/assets/screenshot_1280_800.png)
![screenshot](/samples/webview-samples/user-agent/assets/screenshot_1280_800.png)
6 changes: 3 additions & 3 deletions samples/webview-samples/user-agent/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @see http://developer.chrome.com/apps/app.runtime.html
* @see http://developer.chrome.com/apps/app.window.html
*/
window.chrome.app.runtime.onLaunched.addListener(function() {
chrome.app.runtime.onLaunched.addListener(function() {
runApp();
});

Expand All @@ -13,7 +13,7 @@ window.chrome.app.runtime.onLaunched.addListener(function() {
*
* @see http://developer.chrome.com/apps/app.runtime.html
*/
window.chrome.app.runtime.onRestarted.addListener(function() {
chrome.app.runtime.onRestarted.addListener(function() {
runApp();
});

Expand All @@ -23,7 +23,7 @@ window.chrome.app.runtime.onRestarted.addListener(function() {
* @see http://developer.chrome.com/apps/app.window.html
*/
function runApp() {
window.chrome.app.window.create(
chrome.app.window.create(
'browser.html',
{'id': 'browserWinID', 'state': 'maximized'});
}

0 comments on commit 2c49af9

Please sign in to comment.