| OLD | NEW |
| 1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
| 2 <!-- | 2 <!-- |
| 3 -- Copyright (c) 2011 The Chromium Authors. All rights reserved. | 3 -- Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 4 -- Use of this source code is governed by a BSD-style license that can be | 4 -- Use of this source code is governed by a BSD-style license that can be |
| 5 -- found in the LICENSE file. | 5 -- found in the LICENSE file. |
| 6 --> | 6 --> |
| 7 <html> | 7 <html> |
| 8 <head> | 8 <head> |
| 9 <!-- metrics.js initiates load performance tracking | 9 <!-- metrics.js initiates load performance tracking |
| 10 so we want to parse it as early as possible --> | 10 so we want to parse it as early as possible --> |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 // need a rebuild to update. | 33 // need a rebuild to update. |
| 34 | 34 |
| 35 if (localStorage['base']) { | 35 if (localStorage['base']) { |
| 36 var base = document.createElement('base'); | 36 var base = document.createElement('base'); |
| 37 base.setAttribute('href', localStorage['base']); | 37 base.setAttribute('href', localStorage['base']); |
| 38 document.head.appendChild(base); | 38 document.head.appendChild(base); |
| 39 } | 39 } |
| 40 </script> | 40 </script> |
| 41 </if> | 41 </if> |
| 42 <script> | 42 <script> |
| 43 // Resources from shared locations are loaded dynamically, so we can | |
| 44 // get them from file:// when running as a normal web page, and from | |
| 45 // chrome://resources/ when compiled directly into chrome. | |
| 46 var css = | |
| 47 ['dialogs.css', | |
| 48 'list.css', | |
| 49 'table.css', | |
| 50 'menu.css' | |
| 51 ]; | |
| 52 | |
| 53 var script = | |
| 54 ['local_strings.js', | |
| 55 'i18n_template.js', | |
| 56 | |
| 57 'cr.js', | |
| 58 'cr/ui.js', | |
| 59 'cr/event_target.js', | |
| 60 'cr/ui/array_data_model.js', | |
| 61 'cr/ui/dialogs.js', | |
| 62 'cr/ui/list_item.js', | |
| 63 'cr/ui/list_selection_model.js', | |
| 64 'cr/ui/list_single_selection_model.js', | |
| 65 'cr/ui/list_selection_controller.js', | |
| 66 'cr/ui/list.js', | |
| 67 | |
| 68 'cr/ui/splitter.js', | |
| 69 'cr/ui/table/table_splitter.js', | |
| 70 | |
| 71 'cr/ui/table/table_column.js', | |
| 72 'cr/ui/table/table_column_model.js', | |
| 73 'cr/ui/table/table_header.js', | |
| 74 'cr/ui/table/table_list.js', | |
| 75 'cr/ui/table.js', | |
| 76 | |
| 77 'cr/ui/grid.js', | |
| 78 | |
| 79 'cr/ui/command.js', | |
| 80 'cr/ui/position_util.js', | |
| 81 'cr/ui/menu_item.js', | |
| 82 'cr/ui/menu.js', | |
| 83 'cr/ui/context_menu_handler.js', | |
| 84 ]; | |
| 85 | |
| 86 (function() { | 43 (function() { |
| 87 // Switch to 'test harness' mode when loading from a file or http url. | 44 // Switch to 'test harness' mode when loading from a file or http url. |
| 88 var isHarness = document.location.protocol == 'file:' || | 45 var isHarness = document.location.protocol == 'file:' || |
| 89 document.location.protocol == 'http:'; | 46 document.location.protocol == 'http:'; |
| 90 | 47 |
| 91 // In test harness mode we load resources from relative dirs. | |
| 92 var prefix = isHarness ? '../shared/' : 'chrome://resources/'; | |
| 93 | |
| 94 for (var i = 0; i < css.length; ++i) { | |
| 95 document.write('<link href="' + prefix + 'css/' + css[i] + | |
| 96 '" rel="stylesheet"></link>'); | |
| 97 } | |
| 98 | |
| 99 for (var i = 0; i < script.length; ++i) { | |
| 100 document.write('<script src="' + prefix + 'js/' + script[i] + | |
| 101 '"><\57script>'); | |
| 102 } | |
| 103 | |
| 104 if (isHarness) | 48 if (isHarness) |
| 105 document.write('<script src="js/mock_chrome.js"><\57script>'); | 49 document.write('<script src="js/mock_chrome.js"><\57script>'); |
| 106 })(); | 50 })(); |
| 107 | 51 |
| 108 </script> | 52 </script> |
| 109 | 53 |
| 54 <link rel="stylesheet" href="../shared/css/dialogs.css"></link> |
| 55 <link rel="stylesheet" href="../shared/css/list.css"></link> |
| 56 <link rel="stylesheet" href="../shared/css/table.css"></link> |
| 57 <link rel="stylesheet" href="../shared/css/menu.css"></link> |
| 58 |
| 59 <script src="../shared/js/local_strings.js"></script> |
| 60 <script src="../shared/js/i18n_template.js"></script> |
| 61 |
| 62 <script src="../shared/js/cr.js"></script> |
| 63 <script src="../shared/js/cr/ui.js"></script> |
| 64 <script src="../shared/js/cr/event_target.js"></script> |
| 65 <script src="../shared/js/cr/ui/array_data_model.js"></script> |
| 66 <script src="../shared/js/cr/ui/dialogs.js"></script> |
| 67 <script src="../shared/js/cr/ui/list_item.js"></script> |
| 68 <script src="../shared/js/cr/ui/list_selection_model.js"></script> |
| 69 <script src="../shared/js/cr/ui/list_single_selection_model.js"></script> |
| 70 <script src="../shared/js/cr/ui/list_selection_controller.js"></script> |
| 71 <script src="../shared/js/cr/ui/list.js"></script> |
| 72 |
| 73 <script src="../shared/js/cr/ui/splitter.js"></script> |
| 74 <script src="../shared/js/cr/ui/table/table_splitter.js"></script> |
| 75 |
| 76 <script src="../shared/js/cr/ui/table/table_column.js"></script> |
| 77 <script src="../shared/js/cr/ui/table/table_column_model.js"></script> |
| 78 <script src="../shared/js/cr/ui/table/table_header.js"></script> |
| 79 <script src="../shared/js/cr/ui/table/table_list.js"></script> |
| 80 <script src="../shared/js/cr/ui/table.js"></script> |
| 81 |
| 82 <script src="../shared/js/cr/ui/grid.js"></script> |
| 83 |
| 84 <script src="../shared/js/cr/ui/command.js"></script> |
| 85 <script src="../shared/js/cr/ui/position_util.js"></script> |
| 86 <script src="../shared/js/cr/ui/menu_item.js"></script> |
| 87 <script src="../shared/js/cr/ui/menu.js"></script> |
| 88 <script src="../shared/js/cr/ui/context_menu_handler.js"></script> |
| 89 |
| 110 <link rel="stylesheet" href="css/file_manager.css"></link> | 90 <link rel="stylesheet" href="css/file_manager.css"></link> |
| 111 | 91 |
| 112 <script src="js/util.js"></script> | 92 <script src="js/util.js"></script> |
| 113 <script src="js/file_copy_manager.js"></script> | 93 <script src="js/file_copy_manager.js"></script> |
| 114 <script src="js/file_manager.js"></script> | 94 <script src="js/file_manager.js"></script> |
| 115 <script src="js/file_manager_pyauto.js"></script> | 95 <script src="js/file_manager_pyauto.js"></script> |
| 116 <script src="js/main.js"></script> | 96 <script src="js/main.js"></script> |
| 117 <script src="js/metadata_provider.js"></script> | 97 <script src="js/metadata_provider.js"></script> |
| 118 | 98 |
| 119 <!-- For accurate load performance tracking | 99 <!-- For accurate load performance tracking |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 <div class=filelist-panel> | 146 <div class=filelist-panel> |
| 167 <div class=list-container> | 147 <div class=list-container> |
| 168 <div class=detail-table tabindex=0></div> | 148 <div class=detail-table tabindex=0></div> |
| 169 <grid class=thumbnail-grid tabindex=0></grid> | 149 <grid class=thumbnail-grid tabindex=0></grid> |
| 170 </div> | 150 </div> |
| 171 <div class=downloads-warning hidden> | 151 <div class=downloads-warning hidden> |
| 172 <img src=images/warning_icon_square_26x26.png> | 152 <img src=images/warning_icon_square_26x26.png> |
| 173 <div></div> | 153 <div></div> |
| 174 </div> | 154 </div> |
| 175 </div> | 155 </div> |
| 176 <div class=preview-panel> | 156 <div class=preview-panel hidden> |
| 177 <div><div class=preview-thumbnails></div></div> | 157 <div><div class=preview-thumbnails></div></div> |
| 178 <div><div class=preview-summary></div></div> | 158 <div><div class=preview-summary></div></div> |
| 179 <div class=task-buttons></div> | 159 <div class=task-buttons></div> |
| 180 <div> | 160 <div> |
| 181 <button class='delete-button task-button' command='#delete' | 161 <button class='delete-button task-button' command='#delete' |
| 182 onclick='fileManager.deleteEntries( | 162 onclick='fileManager.deleteEntries( |
| 183 fileManager.selection.entries, false)' | 163 fileManager.selection.entries, false)' |
| 184 visibleif='this.dialogType_ == "full-page"' | 164 visibleif='this.dialogType_ == "full-page"' |
| 185 ><img src='images/button-icon-delete.png' | 165 ><img src='images/button-icon-delete.png' |
| 186 ><div i18n-content=DELETE_BUTTON_LABEL></div | 166 ><div i18n-content=DELETE_BUTTON_LABEL></div |
| (...skipping 10 matching lines...) Expand all Loading... |
| 197 visibleif='this.dialogType_ == "saveas-file"'> | 177 visibleif='this.dialogType_ == "saveas-file"'> |
| 198 <div class=horizontal-spacer></div> | 178 <div class=horizontal-spacer></div> |
| 199 <button class=ok disabled tabindex=2>[OK]</button> | 179 <button class=ok disabled tabindex=2>[OK]</button> |
| 200 <button class=cancel tabindex=3 i18n-content=CANCEL_LABEL | 180 <button class=cancel tabindex=3 i18n-content=CANCEL_LABEL |
| 201 >[CANCEL]</button> | 181 >[CANCEL]</button> |
| 202 </div> | 182 </div> |
| 203 | 183 |
| 204 <script>init();</script> | 184 <script>init();</script> |
| 205 </body> | 185 </body> |
| 206 </html> | 186 </html> |
| OLD | NEW |