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

Unified Diff: third_party/WebKit/Source/devtools/front_end/ui/DOMExtension.js

Issue 2611843010: DevTools: move DOMExtension.js into ui module. (Closed)
Patch Set: Introduce progress monitor Created 3 years, 11 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: third_party/WebKit/Source/devtools/front_end/ui/DOMExtension.js
diff --git a/third_party/WebKit/Source/devtools/front_end/platform/DOMExtension.js b/third_party/WebKit/Source/devtools/front_end/ui/DOMExtension.js
similarity index 97%
rename from third_party/WebKit/Source/devtools/front_end/platform/DOMExtension.js
rename to third_party/WebKit/Source/devtools/front_end/ui/DOMExtension.js
index a2d99dfa65f731160484df196a6927ced45df318..e073412aaef621871c76c4c8ae4433e359a8cd6b 100644
--- a/third_party/WebKit/Source/devtools/front_end/platform/DOMExtension.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui/DOMExtension.js
@@ -812,22 +812,3 @@ function isEnterKey(event) {
function isEscKey(event) {
return event.keyCode === 27;
}
-
-/**
- * @param {function()} callback
- * @suppressGlobalPropertiesCheck
- */
-function runOnWindowLoad(callback) {
- /**
- * @suppressGlobalPropertiesCheck
- */
- function windowLoaded() {
- window.removeEventListener('DOMContentLoaded', windowLoaded, false);
- callback();
- }
-
- if (document.readyState === 'complete' || document.readyState === 'interactive')
- callback();
- else
- window.addEventListener('DOMContentLoaded', windowLoaded, false);
-}

Powered by Google App Engine
This is Rietveld 408576698