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

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

Issue 2006083002: Use fake Input Device Settings with chrome://device-emulator (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@DevicePageTestsFixes
Patch Set: make dependent on a11y fix Created 4 years, 5 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/input_device_settings.html
diff --git a/chrome/browser/resources/chromeos/emulator/input_device_settings.html b/chrome/browser/resources/chromeos/emulator/input_device_settings.html
new file mode 100644
index 0000000000000000000000000000000000000000..871e31e50b7ce23ba1df3031d7582cda9e9fc3b6
--- /dev/null
+++ b/chrome/browser/resources/chromeos/emulator/input_device_settings.html
@@ -0,0 +1,37 @@
+<link rel="import" href="chrome://resources/html/polymer.html">
+<link rel="import" href="chrome://resources/polymer/v1_0/iron-collapse/iron-collapse.html">
+<link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/iron-flex-layout-classes.html">
+<link rel="import" href="chrome://resources/polymer/v1_0/paper-toggle-button/paper-toggle-button.html">
+<link rel="import" href="icons.html">
+<link rel="import" href="shared_styles.html">
+
+<dom-module id="input-device-settings">
+ <template>
+ <!-- TODO(michaelpg): Wrap the line below to fit within the 80-char limit.
+ See https://github.com/Polymer/polymer/pull/3668. -->
+ <style include="device-emulator-shared-styles iron-flex iron-flex-alignment iron-positioning">
+ .content > *:not(:first-child) {
+ margin-top: 10px;
+ }
+ </style>
+ <div class="layout vertical">
+ <div class="element-label">
+ <paper-icon-button icon="device-emulator:mouse"></paper-icon-button>
+ Input Devices
+ </div>
+ <div class="content">
+ <paper-toggle-button id="touchpad" on-change="onTouchpadChange">
+ Touchpad
+ </paper-toggle-button>
+ <paper-toggle-button id="mouse" on-change="onMouseChange">
+ Mouse
+ </paper-toggle-button>
+ <iron-collapse id="changeDescription">
+ Any existing Settings windows must be reloaded to reflect these
+ changes.
+ </iron-collapse>
+ </div>
+ </div>
+ </template>
+ <script src="input_device_settings.js"></script>
+</dom-module>

Powered by Google App Engine
This is Rietveld 408576698