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

Unified Diff: chrome/common/extensions/docs/examples/api/i18n/getMessage/popup.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/api/i18n/getMessage/popup.html
diff --git a/chrome/common/extensions/docs/examples/api/i18n/getMessage/popup.html b/chrome/common/extensions/docs/examples/api/i18n/getMessage/popup.html
index f73477922a0e70b84e7926c6f90995fe675dac05..d765b9d8864650e423e617d1542002409f61697e 100644
--- a/chrome/common/extensions/docs/examples/api/i18n/getMessage/popup.html
+++ b/chrome/common/extensions/docs/examples/api/i18n/getMessage/popup.html
@@ -1,5 +1,5 @@
<!--
-Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this
+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.
-->
@@ -7,32 +7,16 @@ LICENSE file.
<html>
<head>
<style>
-body {
- color: black;
- width: 300px;
-}
- </style>
- <script>
- function setChildTextNode(elementId, text) {
- document.getElementById(elementId).innerText = text;
- }
-
- function init() {
- setChildTextNode('languageSpan', chrome.i18n.getMessage("click_here"));
+ body {
+ color: black;
+ width: 300px;
}
-
- function getAcceptLanguages() {
- chrome.i18n.getAcceptLanguages(function(languageList) {
- var languages = languageList.join(",");
- setChildTextNode('languageSpan',
- chrome.i18n.getMessage("chrome_accept_languages", languages));
- })
- }
- </script>
+ </style>
+ <script src="popup.js"></script>
</head>
- <body onload="init()">
- <div onclick="getAcceptLanguages();">
- <span id="languageSpan"></span>
+ <body>
+ <div id="accept_lang">
+ <span id="languageSpan"></span>
</div>
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698