Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / chrome / browser / resources / bookmark_manager / main.html
bloba96a1ccbec630d0d67c6df92f89e79e41675724b
1 <!doctype html>
2 <html i18n-values="dir:textdirection;lang:language">
3 <!--
5 Copyright (c) 2012 The Chromium Authors. All rights reserved.
6 Use of this source code is governed by a BSD-style license that can be
7 found in the LICENSE file.
9 -->
10 <head>
11 <meta name="google" value="notranslate">
12 <meta charset="utf-8">
13 <title i18n-content="title"></title>
15 <link rel="stylesheet" href="chrome://resources/css/text_defaults.css">
16 <link rel="stylesheet" href="chrome://resources/css/i18n_process.css">
17 <link rel="stylesheet" href="chrome://resources/css/list.css">
18 <link rel="stylesheet" href="chrome://resources/css/tree.css">
19 <link rel="stylesheet" href="chrome://resources/css/menu.css">
20 <link rel="stylesheet" href="chrome://resources/css/menu_button.css">
21 <link rel="stylesheet" href="chrome://resources/css/widgets.css">
22 <link rel="stylesheet" href="css/bmm.css">
24 <script src="chrome://resources/js/event_tracker.js"></script>
26 <script src="chrome://resources/js/cr.js"></script>
27 <script src="chrome://resources/js/cr/event_target.js"></script>
28 <script src="chrome://resources/js/cr/link_controller.js"></script>
29 <script src="chrome://resources/js/cr/ui.js"></script>
30 <script src="chrome://resources/js/cr/ui/touch_handler.js"></script>
31 <script src="chrome://resources/js/cr/ui/array_data_model.js"></script>
32 <script src="chrome://resources/js/cr/ui/command.js"></script>
33 <script src="chrome://resources/js/cr/ui/focus_outline_manager.js"></script>
34 <script src="chrome://resources/js/cr/ui/menu_item.js"></script>
35 <script src="chrome://resources/js/cr/ui/menu.js"></script>
36 <script src="chrome://resources/js/cr/ui/position_util.js"></script>
37 <script src="chrome://resources/js/cr/ui/menu_button.js"></script>
38 <script src="chrome://resources/js/cr/ui/context_menu_button.js"></script>
39 <script src="chrome://resources/js/cr/ui/context_menu_handler.js"></script>
40 <script src="chrome://resources/js/cr/ui/list_selection_model.js"></script>
41 <script src="chrome://resources/js/cr/ui/list_selection_controller.js"></script>
42 <script src="chrome://resources/js/cr/ui/list_item.js"></script>
43 <script src="chrome://resources/js/cr/ui/list.js"></script>
44 <script src="chrome://resources/js/cr/ui/tree.js"></script>
45 <script src="chrome://resources/js/cr/ui/splitter.js"></script>
47 <script src="chrome://resources/js/i18n_template_no_process.js"></script>
48 <script src="chrome://resources/js/load_time_data.js"></script>
49 <script src="chrome://resources/js/util.js"></script>
51 <script src="js/bmm.js"></script>
52 <script src="js/bmm/bookmark_list.js"></script>
53 <script src="js/bmm/bookmark_tree.js"></script>
54 <script src="js/dnd.js"></script>
55 </head>
56 <body>
58 <header>
59 <h1 i18n-content="title"></h1>
60 <form>
61 <input type="search" id="term" i18n-values="placeholder:search_button"
62 autofocus incremental>
63 </form>
64 </header>
66 <div class="main">
67 <div id="tree-pane" class="pane">
68 <div>
69 <button menu="#folders-menu" i18n-content="folders_menu"
70 id="folders-button" class="custom-appearance"></button>
71 </div>
72 <div id="tree-container">
73 <tree id="tree" role="tree"></tree>
74 </div>
75 </div>
76 <div class="splitter">
77 <div>
78 <!-- Used to occupy the correct amount of vertical space. -->
79 <button menu="#no-menu" i18n-content="folders_menu"
80 class="custom-appearance"></button>
81 </div>
82 </div>
83 <div id="list-pane" class="pane">
84 <div>
85 <button menu="#organize-menu" i18n-content="organize_menu"
86 id="organize-button" class="custom-appearance"></button>
87 </div>
88 <!-- The list doesn't use a scroll container as it truncates horizontally
89 and handles its own vertical overflow. -->
90 <list id="list"></list>
91 </div>
92 </div>
94 <!-- Organize menu -->
95 <command i18n-values=".label:rename_folder" id="rename-folder-command">
96 </command>
97 <command i18n-values=".label:edit" id="edit-command"></command>
98 <command i18n-values=".label:show_in_folder" id="show-in-folder-command">
99 </command>
100 <command i18n-values=".label:cut" id="cut-command"></command>
101 <command i18n-values=".label:copy" id="copy-command"></command>
102 <command i18n-values=".label:paste" id="paste-from-organize-menu-command">
103 </command>
104 <command i18n-values=".label:delete" id="delete-command"></command>
105 <command i18n-values=".label:undo_delete" id="undo-delete-command"></command>
106 <command i18n-values=".label:sort" id="sort-command"></command>
107 <command i18n-values=".label:add_new_bookmark" id="add-new-bookmark-command">
108 </command>
109 <command i18n-values=".label:new_folder" id="new-folder-command"></command>
111 <!-- Folders menu -->
112 <command i18n-values=".label:cut" id="cut-from-folders-menu-command"></command>
113 <command i18n-values=".label:copy" id="copy-from-folders-menu-command">
114 </command>
115 <command i18n-values=".label:paste" id="paste-from-folders-menu-command">
116 </command>
117 <command i18n-values=".label:new_folder"
118 id="new-folder-from-folders-menu-command"></command>
119 <command i18n-values=".label:delete" id="delete-from-folders-menu-command">
120 </command>
121 <command i18n-values=".label:undo_delete"
122 id="undo-delete-from-folders-menu-command"></command>
124 <!-- Tools menu -->
125 <command i18n-values=".label:import_menu" id="import-menu-command"></command>
126 <command i18n-values=".label:export_menu" id="export-menu-command"></command>
128 <!-- Context menu -->
129 <command i18n-values=".label:paste" id="paste-from-context-menu-command">
130 </command>
132 <!-- open * are handled in canExecute handler -->
133 <command id="open-in-new-tab-command"></command>
134 <command id="open-in-background-tab-command"></command>
135 <command id="open-in-new-window-command"></command>
136 <command id="open-incognito-window-command"></command>
137 <command id="open-in-same-window-command"></command>
139 <command id="undo-command"></command>
141 <command i18n-values=".label:rename_folder"
142 id="rename-folder-from-folders-menu-command"></command>
143 <command i18n-values=".label:paste" id="paste-from-folders-menu-command">
144 </command>
146 <!-- TODO(arv): I think the commands might be better created in code? -->
148 <cr-menu id="folders-menu">
149 <button command="#new-folder-from-folders-menu-command"></button>
150 <hr>
151 <button command="#rename-folder-from-folders-menu-command"></button>
152 <hr>
153 <button command="#cut-from-folders-menu-command"></button>
154 <button command="#copy-from-folders-menu-command"></button>
155 <button command="#paste-from-folders-menu-command"></button>
156 <hr>
157 <button command="#delete-from-folders-menu-command"></button>
158 <button command="#undo-delete-from-folders-menu-command"></button>
159 </cr-menu>
161 <cr-menu id="no-menu"></cr-menu>
163 <cr-menu id="organize-menu">
164 <button command="#add-new-bookmark-command"></button>
165 <button command="#new-folder-command"></button>
166 <hr>
167 <button command="#rename-folder-command"></button>
168 <button command="#edit-command"></button>
169 <button command="#show-in-folder-command"></button>
170 <hr>
171 <button command="#cut-command"></button>
172 <button command="#copy-command"></button>
173 <button command="#paste-from-organize-menu-command"></button>
174 <hr>
175 <button command="#delete-command"></button>
176 <button command="#undo-delete-command"></button>
177 <hr>
178 <button command="#sort-command"></button>
179 <hr>
180 <button command="#import-menu-command"></button>
181 <button command="#export-menu-command"></button>
182 </cr-menu>
184 <cr-menu id="context-menu">
185 <button command="#open-in-new-tab-command"></button>
186 <button command="#open-in-new-window-command"></button>
187 <button command="#open-incognito-window-command"></button>
188 <hr>
189 <button command="#rename-folder-command"></button>
190 <button command="#edit-command"></button>
191 <button command="#show-in-folder-command"></button>
192 <hr>
193 <button command="#cut-command"></button>
194 <button command="#copy-command"></button>
195 <button command="#paste-from-context-menu-command"></button>
196 <hr>
197 <button command="#delete-command"></button>
198 <button command="#undo-delete-command"></button>
199 <hr>
200 <button command="#add-new-bookmark-command"></button>
201 <button command="#new-folder-command"></button>
202 </cr-menu>
204 <script src="js/main.js"></script>
205 </body>
206 </html>