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

Unified Diff: chrome/browser/resources/chromeos/emulator/device_emulator.html

Issue 1205753002: Create chrome://device-emulator and add the ability to get a battery percentage and send an updated… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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/browser/resources/chromeos/emulator/device_emulator.html
diff --git a/chrome/browser/resources/chromeos/emulator/device_emulator.html b/chrome/browser/resources/chromeos/emulator/device_emulator.html
new file mode 100644
index 0000000000000000000000000000000000000000..49c1fe6a8b7b1a37673b25bc4b1169486a4c9c05
--- /dev/null
+++ b/chrome/browser/resources/chromeos/emulator/device_emulator.html
@@ -0,0 +1,37 @@
+<!DOCTYPE HTML>
+<html>
+<head>
+ <meta charset="utf-8">
+ <!-- <title i18n-content="deviceEmulatorTitle"></title> -->
michaelpg 2015/06/24 23:33:48 Don't comment things out. Just use placeholder str
rfrappier 2015/06/25 17:09:20 Done.
+ <link rel="stylesheet" href="device_emulator.css">
+ <script src="chrome://resources/js/cr.js"></script>
+ <script src="chrome://resources/js/load_time_data.js"></script>
+ <script src="chrome://resources/js/util.js"></script>
+ <script src="strings.js"></script>
+ <script src="device_emulator.js"></script>
+</head>
+<body>
+ <div class="container">
michaelpg 2015/06/24 23:33:48 throughout: don't use "class" until you need it (w
rfrappier 2015/06/25 17:09:20 Done.
+ <!-- <h1 i18n-content="deviceEmulatorTitle"></h1> -->
+ <h1>ChromeOS Device Emulator</h1>
+ <hr>
+
+ <div class="control-group">
+ <div class="title">
+ <h2>Battery/Power Settings</h2>
+ </div>
+ <div class="group-body">
+ <form class="power-settings-form">
+ <label>
+ Battery Percentage
+ <input id="batteryPercentSlider" type="range" min="0" max="100">
michaelpg 2015/06/24 23:33:48 Per the style guide, element IDs use-hyphen-form.
rfrappier 2015/06/25 17:09:20 Done.
+ </label>
+ <input id="batteryPercentText" type="number" min="0" max="100">
+ </form>
+ </div>
+ </div>
+ </div>
+
+ <!-- <script src="chrome://resources/js/i18n_template2.js"></script> -->
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698