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

Unified Diff: chrome/browser/resources/md_bookmarks/types.js

Issue 2746363013: [MD Bookmarks] Add a drag and drop indicator to bookmarks. (Closed)
Patch Set: fix nit Created 3 years, 9 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 | « chrome/browser/resources/md_bookmarks/sidebar.html ('k') | chrome/browser/resources/md_bookmarks/util.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/md_bookmarks/types.js
diff --git a/chrome/browser/resources/md_bookmarks/types.js b/chrome/browser/resources/md_bookmarks/types.js
index a3b463a36fc4fdbafbd1eb598d7369ec19fee772..02fd4cb49710aa462cc52f792fe437e5fb0aa612 100644
--- a/chrome/browser/resources/md_bookmarks/types.js
+++ b/chrome/browser/resources/md_bookmarks/types.js
@@ -8,7 +8,7 @@
/**
* A normalized version of chrome.bookmarks.BookmarkTreeNode.
- * @typedef{{
+ * @typedef {{
* id: string,
* parentId: (string|undefined),
* url: (string|undefined),
@@ -22,20 +22,22 @@
var BookmarkNode;
/**
- * @typedef{!Object<string, BookmarkNode>}
+ * @typedef {!Object<string, BookmarkNode>}
*/
var NodeList;
/**
- * @typedef{{
+ * @typedef {{
* items: !Object<string, boolean>,
* anchor: ?string,
* }}
+ *
+ * |items| is used as a set and all values in the map are true.
*/
var SelectionState;
/**
- * @typedef{{
+ * @typedef {{
* term: string,
* inProgress: boolean,
* results: !Array<string>,
@@ -47,7 +49,7 @@ var SearchState;
var ClosedFolderState;
/**
- * @typedef{{
+ * @typedef {{
* nodes: NodeList,
* selectedFolder: ?string,
* closedFolders: ClosedFolderState,
@@ -60,6 +62,26 @@ var BookmarksPageState;
/** @typedef {{name: string}} */
var Action;
+/**
+ * @record
+ */
+function BookmarkElement() {}
+
+/** @type {string} */
+BookmarkElement.itemId;
+
+/** @return {HTMLElement} */
+BookmarkElement.getDropTarget = function() {};
+
+/** @constructor */
+function DragData() {
+ /** @type {Array<BookmarkTreeNode>} */
+ this.elements = null;
+
+ /** @type {boolean} */
+ this.sameProfile = false;
+}
+
/** @interface */
function StoreObserver(){};
« no previous file with comments | « chrome/browser/resources/md_bookmarks/sidebar.html ('k') | chrome/browser/resources/md_bookmarks/util.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698