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

Unified Diff: Source/devtools/front_end/main/Main.js

Issue 1295523004: [DevTools] Expose reload method in InspectorFrontendHost. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: renamed Created 5 years, 4 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/host/InspectorFrontendHostAPI.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/main/Main.js
diff --git a/Source/devtools/front_end/main/Main.js b/Source/devtools/front_end/main/Main.js
index 0239fcbe8c80eff8177798830a19dded4918338b..3fc89655015bc51514728f7210dfda917df17ef6 100644
--- a/Source/devtools/front_end/main/Main.js
+++ b/Source/devtools/front_end/main/Main.js
@@ -332,6 +332,7 @@ WebInspector.Main.prototype = {
this._registerShortcuts();
this._mainTarget.registerInspectorDispatcher(this);
+ InspectorFrontendHost.events.addEventListener(InspectorFrontendHostAPI.Events.ReloadInspectedPage, this._reloadInspectedPage, this);
if (this._mainTarget.isServiceWorker())
this._mainTarget.runtimeAgent().run();
@@ -559,6 +560,15 @@ WebInspector.Main.prototype = {
},
/**
+ * @param {!WebInspector.Event} event
+ */
+ _reloadInspectedPage: function(event)
+ {
+ var hard = /** @type {boolean} */ (event.data);
+ WebInspector.Main._reloadPage(hard);
+ },
+
+ /**
* @override
* @param {!RuntimeAgent.RemoteObject} payload
* @param {!Object=} hints
« no previous file with comments | « Source/devtools/front_end/host/InspectorFrontendHostAPI.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698