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

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

Issue 2902103002: MD Bookmarks: Disable 'Open in Incognito Window' when Incognito is disabled (Closed)
Patch Set: Add a test Created 3 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 unified diff | Download patch
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * Enumeration of valid drop locations relative to an element. These are 6 * Enumeration of valid drop locations relative to an element. These are
7 * bit masks to allow combining multiple locations in a single value. 7 * bit masks to allow combining multiple locations in a single value.
8 * @enum {number} 8 * @enum {number}
9 * @const 9 * @const
10 */ 10 */
(...skipping 12 matching lines...) Expand all
23 EDIT: 'edit', 23 EDIT: 'edit',
24 COPY: 'copy', 24 COPY: 'copy',
25 DELETE: 'delete', 25 DELETE: 'delete',
26 OPEN_NEW_TAB: 'open-new-tab', 26 OPEN_NEW_TAB: 'open-new-tab',
27 OPEN_NEW_WINDOW: 'open-new-window', 27 OPEN_NEW_WINDOW: 'open-new-window',
28 OPEN_INCOGNITO: 'open-incognito', 28 OPEN_INCOGNITO: 'open-incognito',
29 // OPEN triggers when you double-click an item. 29 // OPEN triggers when you double-click an item.
30 OPEN: 'open', 30 OPEN: 'open',
31 }; 31 };
32 32
33 /**
34 * Mirrors the C++ enum from IncognitoModePrefs.
35 * @enum {number}
36 * @const
37 */
38 var IncognitoAvailability = {
39 ENABLED: 0,
40 DISABLED: 1,
41 FORCED: 2,
42 };
43
33 /** @const */ 44 /** @const */
34 var LOCAL_STORAGE_CLOSED_FOLDERS_KEY = 'closedState'; 45 var LOCAL_STORAGE_CLOSED_FOLDERS_KEY = 'closedState';
35 46
36 /** @const */ 47 /** @const */
37 var LOCAL_STORAGE_TREE_WIDTH_KEY = 'treeWidth'; 48 var LOCAL_STORAGE_TREE_WIDTH_KEY = 'treeWidth';
38 49
39 /** @const */ 50 /** @const */
40 var ROOT_NODE_ID = '0'; 51 var ROOT_NODE_ID = '0';
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698