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

Unified Diff: chrome/browser/resources/settings/device_page/display_layout.html

Issue 2084673003: MD Settings: Add display layout (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@issue_547080_display_settings6
Patch Set: Nit Created 4 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/settings/device_page/display_layout.html
diff --git a/chrome/browser/resources/settings/device_page/display_layout.html b/chrome/browser/resources/settings/device_page/display_layout.html
new file mode 100644
index 0000000000000000000000000000000000000000..ea9d5f55e24c9c51d0ea7209774ab80608479619
--- /dev/null
+++ b/chrome/browser/resources/settings/device_page/display_layout.html
@@ -0,0 +1,44 @@
+<link rel="import" href="chrome://resources/html/polymer.html">
+<link rel="import" href="chrome://resources/polymer/v1_0/iron-resizable-behavior/iron-resizable-behavior.html">
+<link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-button.html">
+<link rel="import" href="/settings_shared_css.html">
+
+<dom-module id="display-layout">
+ <template>
+ <style include="settings-shared">
+ /* Use relative position with no offset so that display divs (children),
+ which have absolute positions, are offset from the displayArea div. */
+ #displayArea {
+ border: lightgrey solid 1px;
+ height: 100%;
+ position: relative;
+ width: 100%;
+ }
+ .display {
+ align-items: center;
+ background: var(--paper-grey-200);
+ border: var(--paper-grey-200) solid 1px;
+ box-shadow: 2px 2px var(--paper-grey-400);
+ cursor: default;
+ display: flex;
+ justify-content: center;
+ position: absolute;
+ }
+ .display[selected] {
+ border: var(--google-blue-500) solid 2px;
+ box-shadow: none;
+ }
+ </style>
+ <div id="displayArea" on-iron-resize="calculateVisualScale_">
+ <template is="dom-repeat" items="[[displays]]">
+ <div id="_[[item.id]]" class="display"
+ style$="[[getDivStyle_(item, visualScale)]]"
+ selected$="[[isSelected_(item, selectedDisplay)]]"
+ on-tap="onSelectDisplayTap_">
+ [[item.name]]
+ </div>
+ </template>
+ </div>
+ </template>
+ <script src="display_layout.js"></script>
+</dom-module>

Powered by Google App Engine
This is Rietveld 408576698