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

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

Issue 2128773004: MD Settings: Display: Add mirroring and other fixes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@issue_625106_settings_dropdown_style
Patch Set: 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/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
index acbe3dc0115ea823423b694364c1ca39af02c2cc..23a70f4b25528e4b7fc2246cb4c672aac67e0856 100644
--- a/chrome/browser/resources/settings/device_page/display_layout.html
+++ b/chrome/browser/resources/settings/device_page/display_layout.html
@@ -16,6 +16,8 @@
position: relative;
width: 100%;
}
+ /* Note: the size of the border / box shadow affects the style generated
+ in getDivStyle_ and gitMirrorDivStyle_ */
michaelpg 2016/07/11 13:37:55 git => get
stevenjb 2016/07/11 19:45:35 Done.
.display {
align-items: center;
background: var(--paper-grey-200);
@@ -30,6 +32,10 @@
border: var(--google-blue-500) solid 2px;
box-shadow: none;
}
+ .display.mirror {
+ border: var(--google-blue-500) solid 1px;
+ box-shadow: none;
+ }
.highlight-left {
border-left: var(--google-blue-700) solid 1px;
}
@@ -45,6 +51,12 @@
</style>
<div id="displayArea" on-iron-resize="calculateVisualScale_">
<template is="dom-repeat" items="[[displays]]">
+ <div id="_mirror_[[item.id]]" class="display mirror"
michaelpg 2016/07/11 13:37:55 do we consider these beginning underscores valid P
stevenjb 2016/07/11 19:45:35 I used an initial _ to explicitly differentiate th
+ hidden$="[[!mirroring]]"
+ style$="[[getMirrorDivStyle_(item.id, item.bounds, visualScale)]]"
+ </div>
+ </template>
+ <template is="dom-repeat" items="[[displays]]">
<div id="_[[item.id]]" class="display" draggable="true"
style$="[[getDivStyle_(item.id, item.bounds, visualScale)]]"
selected$="[[isSelected_(item, selectedDisplay)]]"

Powered by Google App Engine
This is Rietveld 408576698