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

Unified Diff: chrome/common/extensions/docs/examples/api/i18n/detectLanguage/popup.html

Issue 1306873003: Added example of chrome.i18n.detectLanguage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added License header in comments in js file Created 5 years, 3 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/detectLanguage/popup.html
diff --git a/chrome/common/extensions/docs/examples/api/i18n/detectLanguage/popup.html b/chrome/common/extensions/docs/examples/api/i18n/detectLanguage/popup.html
new file mode 100644
index 0000000000000000000000000000000000000000..f017bae1917e1487ac0b80d1b5bd5b0844b19a6f
--- /dev/null
+++ b/chrome/common/extensions/docs/examples/api/i18n/detectLanguage/popup.html
@@ -0,0 +1,17 @@
+<html>
+ <head>
+ <style>
+ body {
+ font-family: "Segoe UI", "Lucida Grande", Tahoma, sans-serif;
+ font-size: 100%;
+ }
+ </style>
+ <script src="popup.js"></script>
+ </head>
+ <body>
+ <div id="detect_lang">
+ <textarea id="text" placeholder="Text to translate" style="padding: 10px; width: 300px;"></textarea>
+ <button id="btn-detect">Translate</button>
+ </div>
+ </body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698