Index: chrome/common/extensions/docs/examples/extensions/imageinfo/background.html |
diff --git a/chrome/common/extensions/docs/examples/extensions/imageinfo/background.html b/chrome/common/extensions/docs/examples/extensions/imageinfo/background.html |
index f454111b486fb7b68ff6fc063116d4c164ff8d51..406dfc8f383597847b9731376d67e2186e9f28e7 100644 |
--- a/chrome/common/extensions/docs/examples/extensions/imageinfo/background.html |
+++ b/chrome/common/extensions/docs/examples/extensions/imageinfo/background.html |
@@ -1,38 +1,14 @@ |
<!DOCTYPE html> |
<!-- |
- * Copyright (c) 2010 The Chromium Authors. All rights reserved. Use of this |
+ * Copyright (c) 2011 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. |
--> |
<html> |
<head> |
- |
+ <title>Background Page</title> |
</head> |
<body> |
- <script> |
- /** |
- * Returns a handler which will open a new window when activated. |
- */ |
- function getClickHandler() { |
- return function(info, tab) { |
- |
- // The srcUrl property is only available for image elements. |
- var url = 'info.html#' + info.srcUrl; |
- |
- // Create a new window to the info page. |
- chrome.windows.create({ url: url, width: 520, height: 660 }); |
- }; |
- }; |
- |
- /** |
- * Create a context menu which will only show up for images. |
- */ |
- chrome.contextMenus.create({ |
- "title" : "Get image info", |
- "type" : "normal", |
- "contexts" : ["image"], |
- "onclick" : getClickHandler() |
- }); |
- </script> |
+ <script src="./background.js"></script> |
abarth-chromium
2011/10/15 18:23:12
why ./background rather than just background.js ?
Use mkwst_at_chromium.org plz.
2011/10/15 18:41:26
Done.
|
</body> |
-</html> |
+</html> |