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

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

Issue 2704983002: MD Bookmarks: Proof-of-concept reimplementation of data storage/binding layer (Closed)
Patch Set: Add doc comments Created 3 years, 10 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/toolbar.js ('k') | chrome/browser/resources/md_bookmarks/util.html » ('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
new file mode 100644
index 0000000000000000000000000000000000000000..63c4f07a20c64cf0f721e71fe6937bff1f040317
--- /dev/null
+++ b/chrome/browser/resources/md_bookmarks/types.js
@@ -0,0 +1,72 @@
+// Copyright 2017 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 Closure typedefs for MD Bookmarks.
+ */
+
+/**
+ * A normalized version of chrome.bookmarks.BookmarkTreeNode.
+ * @typedef{{
+ * id: string,
+ * parentId: (string|undefined),
+ * url: (string|undefined),
+ * title: string,
+ * dateAdded: (number|undefined),
+ * dateGroupModified: (number|undefined),
+ * unmodifiable: (string|undefined),
+ * children: (!Array<string>|undefined),
+ * }}
+ */
+var BookmarkNode;
+
+/**
+ * @typedef{!Object<string, BookmarkNode>}
+ */
+var NodeList;
+
+/**
+ * @typedef{{
+ * items: !Object<string, boolean>,
+ * anchor: ?string,
+ * count: number,
+ * }}
+ */
+var SelectionState;
+
+/**
+ * @typedef{{
+ * term: string,
+ * inProgress: boolean,
+ * results: !Array<string>,
+ * }}
+ */
+var SearchState;
+
+/** @typedef {!Object<string, boolean>} */
+var ClosedFolderState;
+
+/**
+ * @typedef{{
+ * nodes: NodeList,
+ * selectedFolder: ?string,
+ * closedFolders: ClosedFolderState,
+ * search: !SearchState,
+ * selection: !SelectionState,
+ * }}
+ */
+var BookmarksPageState;
+
+/**
+ * @typedef{{
+ * name: string,
+ * }}
+ */
+var Action;
+
+/** @interface */
+function StoreObserver(){};
+
+/** @param {BookmarksPageState} state */
+StoreObserver.prototype.onStateChanged = function(state) {};
« no previous file with comments | « chrome/browser/resources/md_bookmarks/toolbar.js ('k') | chrome/browser/resources/md_bookmarks/util.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698