Move InspectorFrontendHostAPI to externs
This was an interface that was already treated as an extern, but was not
explicitly in the externs.js file.
Bug: 1006759
Change-Id: I95301c059cc1213931498788cff553f955abb646
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1829098
Commit-Queue: Tim Van der Lippe <[email protected]>
Reviewed-by: Yang Guo <[email protected]>
Cr-Original-Commit-Position: refs/heads/master@{#700724}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: c6c1bf57acb1c9ed7304674e7d5df51122cb22b1
diff --git a/front_end/main/Main.js b/front_end/main/Main.js
index 787c31a..cf09560 100644
--- a/front_end/main/Main.js
+++ b/front_end/main/Main.js
@@ -236,11 +236,11 @@
// TODO: we should not access actions from other modules.
if (toggleSearchNodeAction) {
InspectorFrontendHost.events.addEventListener(
- InspectorFrontendHostAPI.Events.EnterInspectElementMode,
+ Host.InspectorFrontendHostAPI.Events.EnterInspectElementMode,
toggleSearchNodeAction.execute.bind(toggleSearchNodeAction), this);
}
InspectorFrontendHost.events.addEventListener(
- InspectorFrontendHostAPI.Events.RevealSourceLine, this._revealSourceLine, this);
+ Host.InspectorFrontendHostAPI.Events.RevealSourceLine, this._revealSourceLine, this);
UI.inspectorView.createToolbars();
InspectorFrontendHost.loadCompleted();