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

Unified Diff: Source/devtools/front_end/host/InspectorAppHost.js

Issue 710033003: [DevTools] Extract part of DevTools into inspector app. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebased Created 6 years, 1 month 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: Source/devtools/front_end/host/InspectorAppHost.js
diff --git a/Source/devtools/front_end/host/InspectorAppHost.js b/Source/devtools/front_end/host/InspectorAppHost.js
new file mode 100644
index 0000000000000000000000000000000000000000..f3c03a123e01fb30e79c43b6cab3178df1ba48a2
--- /dev/null
+++ b/Source/devtools/front_end/host/InspectorAppHost.js
@@ -0,0 +1,37 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+/**
+ * @interface
+ */
+function InspectorAppHostAPI()
+{
+}
+
+InspectorAppHostAPI.prototype = {
+ /**
+ * @param {!Window} window
+ */
+ inspectorAppWindowLoaded: function(window) { },
+
+ beforeInspectorAppLoad: function() { },
+
+ afterInspectorAppLoad: function() { }
+}
+
+/**
+ * @type {!InspectorAppHostAPI}
+ */
+var InspectorAppHost;
+
+/**
+ * @suppressGlobalPropertiesCheck
+ */
+(function()
+{
+ if (window.parent !== window) {
+ InspectorAppHost = window.parent.InspectorAppHost;
+ InspectorAppHost.inspectorAppWindowLoaded(window);
+ }
+})();
« no previous file with comments | « Source/devtools/front_end/devtools_app/module.json ('k') | Source/devtools/front_end/host/InspectorFrontendHost.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698