Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4526)

Unified Diff: chrome/common/extensions/docs/examples/apps/background-simple/index.html

Issue 9289057: Changing manifest to v2 extension samples (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Adding zip files after rebasing with master Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/docs/examples/apps/background-simple/index.html
diff --git a/chrome/common/extensions/docs/examples/apps/background-simple/index.html b/chrome/common/extensions/docs/examples/apps/background-simple/index.html
index e5da99b70dfacf4128ab7ad73bd517c1a77bfafc..5a106037bd4df84439ec45f0c0b1e7f31a1b9493 100644
--- a/chrome/common/extensions/docs/examples/apps/background-simple/index.html
+++ b/chrome/common/extensions/docs/examples/apps/background-simple/index.html
@@ -6,40 +6,23 @@
-->
<html>
<head>
- <title> Simple Background App </title>
+ <title>Simple Background App</title>
<style>
.hidden { display: none; }
#unsupported { color: #d00; }
</style>
</head>
<body>
- <h1> Simple Background App </h1>
+ <h1>Simple Background App</h1>
<p id="supported" class="hidden">
- <button onclick="openBackgroundWindow()">Open background window</button>
- <button onclick="closeBackgroundWindow()">Close background window</button>
+ <button id="openBackgroundWindow">Open background window</button>
+ <button id="closeBackgroundWindow">Close background window</button>
</p>
<p id="unsupported" class="hidden">
You are not using Chrome or have not installed the application for this
page.
</p>
- <script>
- // Check for support
- if (window.chrome && window.chrome.app && window.chrome.app.isInstalled) {
- document.getElementById('supported').className = '';
- } else {
- document.getElementById('unsupported').className = '';
- }
- var bgWinUrl = "background.html#yay";
- var bgWinName = "bgNotifier";
-
- function openBackgroundWindow() {
- window.open(bgWinUrl, bgWinName, "background");
- }
- function closeBackgroundWindow() {
- var w = window.open(bgWinUrl, bgWinName, "background");
- w.close();
- }
- </script>
+ <script src="index.js"></script>
<p>
This app displays a notification
whenever its background window is created.

Powered by Google App Engine
This is Rietveld 408576698