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

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..58b6185de324cc9d5826c2341cadb9d7afeafd39
--- /dev/null
+++ b/chrome/browser/resources/chromeos/emulator/device_emulator.html
@@ -0,0 +1,75 @@
+<!DOCTYPE HTML>
+<html>
+<head>
+ <meta charset="utf-8">
+ <title>Device Emulator</title>
+ <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">
+ <h1>ChromeOS Device Emulator</h1>
+ <hr>
+
+ <div class="form-group">
+ <div class="group-header">
+ <h2>Battery/Power Settings</h2>
+ </div>
+ <div class="group-body">
+ <form id="power-settings-form">
+ <div class="control-group">
+ <label>
+ Battery Present
+ <input id="battery-present-checkbox" type="checkbox">
+ </label>
+ </div>
+
+ <div class="control-group">
+ <label>
+ Battery Percentage
+ <input id="battery-percent-slider" type="range" min="0" max="100">
+ </label>
+ <input id="battery-percent-text" type="number" min="0" max="100">
+ </div>
+
+ <div class="control-group">
+ <label>
+ Power Source
+ <select id="power-source-select">
+ </select>
+ </label>
+ </div>
+
+ <div class="control-group">
+ <label>
+ <p>Set Battery Timing</p>
+ <label>
+ <p>
+ <input id="time-until-empty-radio" type="radio"
+ name="time-until-radio">
+ Time Until Battery Empty
+ </p>
+ </label>
+
+ <label>
+ <p>
+ <input id="time-until-full-radio" type="radio"
+ name="time-until-radio">
+ Time Until Battery Full
+ </p>
+ </label>
+ <input id="time-until-text" type="text">
+
+ </label>
+ </div>
+
+ </form>
+ </div>
+ </div>
+ </div>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698