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

Unified Diff: Source/devtools/front_end/ui/Dialog.js

Issue 1327903003: DevTools: tint the glass pane when modal dialog is being shown (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 3 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
« no previous file with comments | « Source/devtools/front_end/dialog.css ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/ui/Dialog.js
diff --git a/Source/devtools/front_end/ui/Dialog.js b/Source/devtools/front_end/ui/Dialog.js
index 211f834c603835974a9464a15135157209a29753..3ba4851dc3c23616d6b3ff4849e3cb751be0688e 100644
--- a/Source/devtools/front_end/ui/Dialog.js
+++ b/Source/devtools/front_end/ui/Dialog.js
@@ -46,6 +46,8 @@ WebInspector.Dialog = function(relativeToElement, delegate, modal)
// Install glass pane capturing events.
this._glassPane.element.tabIndex = 0;
this._glassPane.element.addEventListener("focus", this._onGlassPaneFocus.bind(this), false);
+ if (this._modal)
+ this._glassPane.element.classList.add("tinted");
this._element = this._glassPane.element.createChild("div");
this._element.tabIndex = 0;
« no previous file with comments | « Source/devtools/front_end/dialog.css ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698