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

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: Updating the intros Created 5 years, 4 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..64f2405a175e716af3eb48bd412c045cf6754a16
--- /dev/null
+++ b/chrome/common/extensions/docs/examples/api/i18n/detectLanguage/popup.html
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+ <title>chrome.i18n.detectLanguage example</title>
+ <style>
+ body {
mkearney1 2015/09/03 17:29:16 html is formatted a bit messy. Good idea to clean
amalika 2015/09/03 21:37:45 Done.
+ font-family: "Segoe UI", "Lucida Grande", Tahoma, sans-serif;
+ font-size: 100%;
+ }
+ #status {
+ /* avoid an excessively wide status text */
+ white-space: pre;
+ text-overflow: ellipsis;
+ overflow: hidden;
+ max-width: 400px;
+ }
+ </style>
+ <script src="popup.js"></script>
+ </head>
+ <body>
+ <textarea id="text" placeholder="Text to translate" style="padding: 10px; width: 200px;"></textarea>
+ <button id="btn-detect">Translate</button>
+</body></html>

Powered by Google App Engine
This is Rietveld 408576698