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

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

Issue 2962283002: MD Bookmarks: Add 'show in folder' command to search result context menu (Closed)
Patch Set: Add MenuSource to CommandManager. Created 3 years, 5 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 */
11 var DropPosition = { 11 var DropPosition = {
12 NONE: 0, 12 NONE: 0,
13 ABOVE: 1, 13 ABOVE: 1,
14 ON: 2, 14 ON: 2,
15 BELOW: 4, 15 BELOW: 4,
16 }; 16 };
17 17
18 /** 18 /**
19 * @enum {string} 19 * @enum {string}
20 * @const 20 * @const
21 */ 21 */
22 var Command = { 22 var Command = {
23 EDIT: 'edit', 23 EDIT: 'edit',
24 COPY_URL: 'copy-url', 24 COPY_URL: 'copy-url',
25 SHOW_IN_FOLDER: 'show-in-folder',
25 DELETE: 'delete', 26 DELETE: 'delete',
26 OPEN_NEW_TAB: 'open-new-tab', 27 OPEN_NEW_TAB: 'open-new-tab',
27 OPEN_NEW_WINDOW: 'open-new-window', 28 OPEN_NEW_WINDOW: 'open-new-window',
28 OPEN_INCOGNITO: 'open-incognito', 29 OPEN_INCOGNITO: 'open-incognito',
29 UNDO: 'undo', 30 UNDO: 'undo',
30 REDO: 'redo', 31 REDO: 'redo',
31 // OPEN triggers when you double-click an item. 32 // OPEN triggers when you double-click an item.
32 OPEN: 'open', 33 OPEN: 'open',
33 SELECT_ALL: 'select-all', 34 SELECT_ALL: 'select-all',
34 DESELECT_ALL: 'deselect-all', 35 DESELECT_ALL: 'deselect-all',
35 COPY: 'copy', 36 COPY: 'copy',
36 CUT: 'cut', 37 CUT: 'cut',
37 PASTE: 'paste', 38 PASTE: 'paste',
38 }; 39 };
39 40
40 /** 41 /**
42 * @enum {number}
43 * @const
44 */
45 var MenuSource = {
46 NONE: 0,
47 LIST: 1,
48 TREE: 2,
49 };
50
51 /**
41 * Mirrors the C++ enum from IncognitoModePrefs. 52 * Mirrors the C++ enum from IncognitoModePrefs.
42 * @enum {number} 53 * @enum {number}
43 * @const 54 * @const
44 */ 55 */
45 var IncognitoAvailability = { 56 var IncognitoAvailability = {
46 ENABLED: 0, 57 ENABLED: 0,
47 DISABLED: 1, 58 DISABLED: 1,
48 FORCED: 2, 59 FORCED: 2,
49 }; 60 };
50 61
51 /** @const */ 62 /** @const */
52 var LOCAL_STORAGE_CLOSED_FOLDERS_KEY = 'closedState'; 63 var LOCAL_STORAGE_CLOSED_FOLDERS_KEY = 'closedState';
53 64
54 /** @const */ 65 /** @const */
55 var LOCAL_STORAGE_TREE_WIDTH_KEY = 'treeWidth'; 66 var LOCAL_STORAGE_TREE_WIDTH_KEY = 'treeWidth';
56 67
57 /** @const */ 68 /** @const */
58 var ROOT_NODE_ID = '0'; 69 var ROOT_NODE_ID = '0';
59 70
60 /** @const */ 71 /** @const */
61 var BOOKMARKS_BAR_ID = '1'; 72 var BOOKMARKS_BAR_ID = '1';
62 73
63 /** @const {number} */ 74 /** @const {number} */
64 var OPEN_CONFIRMATION_LIMIT = 15; 75 var OPEN_CONFIRMATION_LIMIT = 15;
OLDNEW
« no previous file with comments | « chrome/browser/resources/md_bookmarks/command_manager.js ('k') | chrome/browser/resources/md_bookmarks/folder_node.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698