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

Unified Diff: chrome/common/extensions/docs/examples/api/webNavigation/basic/navigation_collector.js

Issue 1150173003: Fix some JS style nits. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 5 years, 7 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/common/extensions/docs/examples/api/webNavigation/basic/navigation_collector.js
diff --git a/chrome/common/extensions/docs/examples/api/webNavigation/basic/navigation_collector.js b/chrome/common/extensions/docs/examples/api/webNavigation/basic/navigation_collector.js
index cec4db286c2bda6c0c3646c18b2250cd3265a7c6..84476301cbb21a5a2fe0239c243b6c531c3d2d2e 100644
--- a/chrome/common/extensions/docs/examples/api/webNavigation/basic/navigation_collector.js
+++ b/chrome/common/extensions/docs/examples/api/webNavigation/basic/navigation_collector.js
@@ -22,7 +22,7 @@ function NavigationCollector() {
* A list of currently pending requests, implemented as a hash of each
* request's tab ID, frame ID, and URL in order to ensure uniqueness.
*
- * @type {Object.<string, {start: number}>}
+ * @type {Object<string, {start: number}>}
* @private
*/
this.pending_ = {};
@@ -31,7 +31,7 @@ function NavigationCollector() {
* A list of completed requests, implemented as a hash of each
* request's tab ID, frame ID, and URL in order to ensure uniqueness.
*
- * @type {Object.<string, Array.<NavigationCollector.Request>>}
+ * @type {Object<string, Array<NavigationCollector.Request>>}
* @private
*/
this.completed_ = {};
@@ -40,7 +40,7 @@ function NavigationCollector() {
* A list of requests that errored off, implemented as a hash of each
* request's tab ID, frame ID, and URL in order to ensure uniqueness.
*
- * @type {Object.<string, Array.<NavigationCollector.Request>>}
+ * @type {Object<string, Array<NavigationCollector.Request>>}
* @private
*/
this.errored_ = {};
@@ -114,7 +114,7 @@ NavigationCollector.NavigationQualifier = {
/**
* @typedef {{url: string, transitionType: NavigationCollector.NavigationType,
- * transitionQualifier: Array.<NavigationCollector.NavigationQualifier>,
+ * transitionQualifier: Array<NavigationCollector.NavigationQualifier>,
* openedInNewTab: boolean, source: {frameId: ?number, tabId: ?number},
* duration: number}}
*/
@@ -414,7 +414,7 @@ NavigationCollector.prototype = {
///////////////////////////////////////////////////////////////////////////////
/**
- * @return {Object.<string, NavigationCollector.Request>} The complete list of
+ * @return {Object<string, NavigationCollector.Request>} The complete list of
* successful navigation requests.
*/
get completed() {
@@ -423,7 +423,7 @@ NavigationCollector.prototype = {
/**
- * @return {Object.<string, Navigationcollector.Request>} The complete list of
+ * @return {Object<string, Navigationcollector.Request>} The complete list of
* unsuccessful navigation requests.
*/
get errored() {
@@ -437,7 +437,7 @@ NavigationCollector.prototype = {
* @param {number=} num The number of successful navigation requests to
* return. If 0 is passed in, or the argument left off entirely, all
* successful requests are returned.
- * @return {Object.<string, NavigationCollector.Request>} The list of
+ * @return {Object<string, NavigationCollector.Request>} The list of
* successful navigation requests, sorted in decending order of frequency.
*/
getMostRequestedUrls: function(num) {
@@ -451,7 +451,7 @@ NavigationCollector.prototype = {
* @param {number=} num The number of unsuccessful navigation requests to
* return. If 0 is passed in, or the argument left off entirely, all
* successful requests are returned.
- * @return {Object.<string, NavigationCollector.Request>} The list of
+ * @return {Object<string, NavigationCollector.Request>} The list of
* unsuccessful navigation requests, sorted in decending order
* of frequency.
*/
@@ -467,7 +467,7 @@ NavigationCollector.prototype = {
* @param {number=} num The number of navigation requests to return. If
* 0 is passed in, or the argument left off entirely, all requests
* are returned.
- * @return {Object.<string, NavigationCollector.Request>} The list of
+ * @return {Object<string, NavigationCollector.Request>} The list of
* navigation requests, sorted in decending order of frequency.
* @private
*/

Powered by Google App Engine
This is Rietveld 408576698