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

Unified Diff: chrome/browser/resources/extensions/extension_code.js

Issue 508283002: Revert "Typecheck JS files for chrome://extensions" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
Index: chrome/browser/resources/extensions/extension_code.js
diff --git a/chrome/browser/resources/extensions/extension_code.js b/chrome/browser/resources/extensions/extension_code.js
index 826625422ceefaf47ec36a1d8964f7bcbeb5a2a6..c22376b834dfb5f709087e369c918664e917c56f 100644
--- a/chrome/browser/resources/extensions/extension_code.js
+++ b/chrome/browser/resources/extensions/extension_code.js
@@ -2,22 +2,12 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-/**
- * @typedef {{afterHighlight: string,
- * beforeHighlight: string,
- * highlight: string,
- * title: string}}
- */
-var ExtensionHighlight;
-
cr.define('extensions', function() {
'use strict';
/**
* ExtensionCode is an element which displays code in a styled div, and is
* designed to highlight errors.
- * @constructor
- * @extends {HTMLDivElement}
*/
function ExtensionCode(div) {
div.__proto__ = ExtensionCode.prototype;
@@ -30,12 +20,13 @@ cr.define('extensions', function() {
/**
* Populate the content area of the code div with the given code. This will
* highlight the erroneous section (if any).
- * @param {ExtensionHighlight} code The 'highlight' strings represent the
- * three portions of the file's content to display - the portion which
- * is most relevant and should be emphasized (highlight), and the parts
- * both before and after this portion. The title is the error message,
- * which will be the mouseover hint for the highlighted region. These
- * may be empty.
+ * @param {Object} code An object with four strings: beforeHighlight,
+ * afterHighlight, highlight, and the message. The 'highlight' strings
+ * represent the three portions of the file's content to display - the
+ * portion which is most relevant and should be emphasized (highlight),
+ * and the parts both before and after this portion. The message is the
+ * error message, which will be the mouseover hint for the highlighted
+ * region. These may be empty.
* @param {string} emptyMessage The message to display if the code
* object is empty (e.g., 'could not load code').
*/

Powered by Google App Engine
This is Rietveld 408576698