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

Unified Diff: chrome/browser/resources/md_history/externs.js

Issue 2230003002: MD History: Add lazy-render element for simple lazy initialization. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 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/md_history/externs.js
diff --git a/chrome/browser/resources/md_history/externs.js b/chrome/browser/resources/md_history/externs.js
new file mode 100644
index 0000000000000000000000000000000000000000..bd3332fe7dc4dc614995dde859fcf3dc1acf5f20
--- /dev/null
+++ b/chrome/browser/resources/md_history/externs.js
@@ -0,0 +1,58 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+/**
+ * @fileoverview Externs required to closure-compile MD History.
+ * @externs
+ */
+
+// Types:
+/**
+ * @typedef {{groupedOffset: number,
+ * incremental: boolean,
+ * querying: boolean,
+ * range: HistoryRange,
+ * searchTerm: string}}
+ */
+var QueryState;
+
+/**
+ * @typedef {{info: ?HistoryQuery,
+ * results: ?Array<!HistoryEntry>,
+ * sessionList: ?Array<!ForeignSession>}}
+ */
+var QueryResult;
+
+/**
+ * @constructor
+ * @extends {MouseEvent}
+ */
+var DomRepeatClickEvent = function() {};
+
+/** @type {Object} */
+DomRepeatClickEvent.prototype.model;
+
+/**
+ * A template instance created by Polymer.Templatizer.
+ * @constructor
+ * @extends {PolymerElement}
+ */
+var TemplateInstance = function() {};
+
+/** @type {Array<Element>} */
+TemplateInstance.prototype._children;
+
+/**
+ * @param {string} prop
+ * @param {Object} value
+ * @param {boolean} quiet
+ */
+TemplateInstance.prototype.__setProperty = function(prop, value, quiet) {};
+
+/**
+ * @param {string} path
+ * @param {Object} value
+ * @param {boolean} quiet
+ */
+TemplateInstance.prototype._notifyPath = function(path, value, quiet) {};
« no previous file with comments | « chrome/browser/resources/md_history/constants.js ('k') | chrome/browser/resources/md_history/history_toolbar.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698