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

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

Issue 660483002: DevTools: Fix focus handling in debug mode. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 2 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/main/Main.js ('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/UIUtils.js
diff --git a/Source/devtools/front_end/ui/UIUtils.js b/Source/devtools/front_end/ui/UIUtils.js
index 9cd3db0da0672c15c2d057ab35f53d4b00c3e2bc..4d721b4d2904358422dc9dad6cfc1b04882634b0 100644
--- a/Source/devtools/front_end/ui/UIUtils.js
+++ b/Source/devtools/front_end/ui/UIUtils.js
@@ -1071,17 +1071,10 @@ WebInspector.LongClickController.prototype = {
__proto__: WebInspector.Object.prototype
}
-;(function() {
-
-function windowLoaded()
+WebInspector.initializeUIUtils = function()
{
window.addEventListener("focus", WebInspector._windowFocused, false);
window.addEventListener("blur", WebInspector._windowBlurred, false);
document.addEventListener("focus", WebInspector._focusChanged, true);
document.addEventListener("blur", WebInspector._documentBlurred, true);
- window.removeEventListener("DOMContentLoaded", windowLoaded, false);
}
-
-window.addEventListener("DOMContentLoaded", windowLoaded, false);
-
-})();
« no previous file with comments | « Source/devtools/front_end/main/Main.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698