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

Side by Side Diff: chrome/browser/resources/md_bookmarks/reducers.js

Issue 2731473002: MD Bookmarks: Implement basis for new data-binding system (Closed)
Patch Set: calamity@ review 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 /**
6 * @fileoverview Module of functions which produce a new page state in response
7 * to an action. Reducers (in the same sense as Array.prototype.reduce) must be
8 * pure functions: they must not modify existing state objects, or make any API
9 * calls.
10 */
11
12 cr.define('bookmarks', function() {
13 /**
14 * Root reducer for the Bookmarks page. This is called by the store in
15 * response to an action, and the return value is used to update the UI.
16 * @param {!BookmarksPageState} state
17 * @param {Action} action
18 * @return {!BookmarksPageState}
19 */
20 function reduceAction(state, action) {
21 return {};
22 }
23
24 return {
25 reduceAction: reduceAction,
26 };
27 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/md_bookmarks/reducers.html ('k') | chrome/browser/resources/md_bookmarks/store.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698