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); |
+ } |
+})(); |