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

Unified Diff: chrome/browser/resources/md_user_manager/error_dialog.html

Issue 2025433002: MD User Manager: Display error message when all profiles are locked. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/md_user_manager/error_dialog.html
diff --git a/chrome/browser/resources/md_user_manager/error_dialog.html b/chrome/browser/resources/md_user_manager/error_dialog.html
new file mode 100644
index 0000000000000000000000000000000000000000..08cc7c78b2b47d7d4d4e473105925cda69aac43d
--- /dev/null
+++ b/chrome/browser/resources/md_user_manager/error_dialog.html
@@ -0,0 +1,61 @@
+<link rel="import" href="chrome://md-user-manager/shared_styles.html">
+<link rel="import" href="chrome://resources/cr_elements/icons.html">
+<link rel="import" href="chrome://resources/html/polymer.html">
+<link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/classes/iron-flex-layout.html">
+<link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper-icon-button.html">
+
+<dom-module id="error-dialog">
+ <template>
+ <style include="shared-styles">
+ #backdrop {
+ align-items: center;
+ background: rgba(255, 255, 255, 0.6);
+ bottom: 0;
+ display: flex;
+ justify-content: center;
+ left: 0;
+ position: absolute;
+ right: 0;
+ top: 0;
+ }
+
+ #dialog {
+ background: white;
+ border-radius: 2px;
+ box-shadow: 0 16px 24px 2px rgba(0, 0, 0, 0.14),
+ 0 6px 30px 5px rgba(0, 0, 0, 0.12),
+ 0 8px 10px -5px rgba(0, 0, 0, 0.4);
+ color: var(--primary-text-color);
+ width: 512px;
+ }
+
+ #title-bar {
+ padding: 6px;
+ }
+
+ #title-bar paper-icon-button {
+ --paper-icon-button: {
+ padding: 10px;
+ };
+ }
+
+ #message {
+ padding: 10px 16px 62px;
+ white-space: pre-wrap;
+ word-wrap: break-word;
+ }
+ </style>
+ <template is="dom-if" if="[[!popupHidden_]]">
+ <div id="backdrop">
dpapad 2016/05/27 23:59:42 Should we be using <paper-dialog> or re-using <set
Moe 2016/05/30 18:33:05 Ah, i didn't know about those other dialog impleme
dpapad 2016/05/31 19:11:59 SG.
+ <div id="dialog">
+ <div id="title-bar" class="horizontal end-justified layout">
+ <paper-icon-button icon="cr:close" on-tap="onCloseTap_">
+ </paper-icon-button>
+ </div>
+ <div id="message">[[message_]]</div>
+ </div>
+ </div>
+ </template>
+ </template>
+ <script src="chrome://md-user-manager/error_dialog.js"></script>
+</dom-module>

Powered by Google App Engine
This is Rietveld 408576698