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

Unified Diff: third_party/WebKit/Source/devtools/front_end/source_frame/ResourceSourceFrame.js

Issue 2493373002: DevTools: rename WebInspector into modules. (Closed)
Patch Set: for bots Created 4 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: third_party/WebKit/Source/devtools/front_end/source_frame/ResourceSourceFrame.js
diff --git a/third_party/WebKit/Source/devtools/front_end/source_frame/ResourceSourceFrame.js b/third_party/WebKit/Source/devtools/front_end/source_frame/ResourceSourceFrame.js
index 0cf2e6a6603036e4737502752c157a360a32ba0e..c4c1174fb879b8e9e79fe3a6fc87280828e5ae71 100644
--- a/third_party/WebKit/Source/devtools/front_end/source_frame/ResourceSourceFrame.js
+++ b/third_party/WebKit/Source/devtools/front_end/source_frame/ResourceSourceFrame.js
@@ -30,9 +30,9 @@
/**
* @unrestricted
*/
-WebInspector.ResourceSourceFrame = class extends WebInspector.SourceFrame {
+SourceFrame.ResourceSourceFrame = class extends SourceFrame.SourceFrame {
/**
- * @param {!WebInspector.ContentProvider} resource
+ * @param {!Common.ContentProvider} resource
*/
constructor(resource) {
super(resource.contentURL(), resource.requestContent.bind(resource));
@@ -40,15 +40,15 @@ WebInspector.ResourceSourceFrame = class extends WebInspector.SourceFrame {
}
/**
- * @param {!WebInspector.ContentProvider} resource
+ * @param {!Common.ContentProvider} resource
* @param {string} highlighterType
- * @return {!WebInspector.SearchableView}
+ * @return {!UI.SearchableView}
*/
static createSearchableView(resource, highlighterType) {
- var sourceFrame = new WebInspector.ResourceSourceFrame(resource);
+ var sourceFrame = new SourceFrame.ResourceSourceFrame(resource);
sourceFrame.setHighlighterType(highlighterType);
- var searchableView = new WebInspector.SearchableView(sourceFrame);
- searchableView.setPlaceholder(WebInspector.UIString('Find'));
+ var searchableView = new UI.SearchableView(sourceFrame);
+ searchableView.setPlaceholder(Common.UIString('Find'));
sourceFrame.show(searchableView.element);
sourceFrame.setSearchableView(searchableView);
return searchableView;
@@ -60,7 +60,7 @@ WebInspector.ResourceSourceFrame = class extends WebInspector.SourceFrame {
/**
* @override
- * @param {!WebInspector.ContextMenu} contextMenu
+ * @param {!UI.ContextMenu} contextMenu
* @param {number} lineNumber
* @param {number} columnNumber
* @return {!Promise}

Powered by Google App Engine
This is Rietveld 408576698