| 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 | |
| 10 so we want to parse it as early as possible --> | |
| 11 <script src="js/metrics.js"></script> | |
| 12 <if expr="0"> | 9 <if expr="0"> |
| 13 <!-- <if ... /if> is removed while flattening HTML. --> | 10 <!-- <if ... /if> is removed while flattening HTML. --> |
| 14 <script> | 11 <script> |
| 15 // Instruction for enabling loading file manager files remotely (speeds up | 12 // Instruction for enabling loading file manager files remotely (speeds up |
| 16 // development cycle): | 13 // development cycle): |
| 17 // | 14 // |
| 18 // 1. Find the IDR_FILE_MANAGER_MAIN resource in | 15 // 1. Find the IDR_FILE_MANAGER_MAIN resource in |
| 19 // chrome/browser/resources/component_extension_resources.grd. | 16 // chrome/browser/resources/component_extension_resources.grd. |
| 20 // Change the "flattenhtml" attribute to false. | 17 // Change the "flattenhtml" attribute to false. |
| 21 // | 18 // |
| 22 // 2. Build and run the Chromium OS. | 19 // 2. Build and run the Chromium OS. |
| 23 // | 20 // |
| 24 // 3. Make source files available via the HTTP protocol: | 21 // 3. Make source files available via the HTTP protocol: |
| 25 // twistd web --path chrome/browser/resources/file_manager --port 1080 | 22 // twistd web --path chrome/browser/resources/ --port 1080 |
| 26 // | 23 // |
| 27 // 4. Open the File Manager. Execute the following JS code in its context | 24 // 4. Open the File Manager. Execute the following JS code in its context |
| 28 // using DevTools: | 25 // using DevTools: |
| 29 // localStorage['base'] = 'http://youmachine:1080/' | 26 // localStorage['base'] = 'http://youmachine:1080/file_manager/' |
| 30 // | 27 // |
| 31 // This will make the File Manager use fresh JS and CSS files from the | 28 // This will make the File Manager use fresh JS and CSS files from the |
| 32 // development machine. HTML files and JS files for WebWorkers would still | 29 // development machine. HTML files and JS files for WebWorkers would still |
| 33 // need a rebuild to update. | 30 // need a rebuild to update. |
| 34 | 31 |
| 35 if (localStorage['base']) { | 32 if (localStorage['base']) { |
| 36 var base = document.createElement('base'); | 33 var base = document.createElement('base'); |
| 37 base.setAttribute('href', localStorage['base']); | 34 base.setAttribute('href', localStorage['base']); |
| 38 document.head.appendChild(base); | 35 document.head.appendChild(base); |
| 39 } | 36 } |
| 40 </script> | 37 </script> |
| 41 </if> | 38 </if> |
| 39 <!-- metrics.js initiates load performance tracking |
| 40 so we want to parse it as early as possible --> |
| 41 <script src="js/metrics.js"></script> |
| 42 <script> | 42 <script> |
| 43 (function() { | 43 (function() { |
| 44 // 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. |
| 45 var isHarness = document.location.protocol == 'file:' || | 45 var isHarness = document.location.protocol == 'file:' || |
| 46 document.location.protocol == 'http:'; | 46 document.location.protocol == 'http:'; |
| 47 | 47 |
| 48 if (isHarness) | 48 if (isHarness) |
| 49 document.write('<script src="js/mock_chrome.js"><\57script>'); | 49 document.write('<script src="js/mock_chrome.js"><\57script>'); |
| 50 })(); | 50 })(); |
| 51 | 51 |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 <div class=filelist-panel> | 146 <div class=filelist-panel> |
| 147 <div class=list-container> | 147 <div class=list-container> |
| 148 <div class=detail-table tabindex=0></div> | 148 <div class=detail-table tabindex=0></div> |
| 149 <grid class=thumbnail-grid tabindex=0></grid> | 149 <grid class=thumbnail-grid tabindex=0></grid> |
| 150 </div> | 150 </div> |
| 151 <div class=downloads-warning hidden> | 151 <div class=downloads-warning hidden> |
| 152 <img src=images/warning_icon_square_26x26.png> | 152 <img src=images/warning_icon_square_26x26.png> |
| 153 <div></div> | 153 <div></div> |
| 154 </div> | 154 </div> |
| 155 </div> | 155 </div> |
| 156 <div class=preview-panel hidden> | 156 <div class=preview-panel visibility=hidden> |
| 157 <div><div class=preview-thumbnails></div></div> | 157 <div><div class=preview-thumbnails></div></div> |
| 158 <div><div class=preview-summary></div></div> | 158 <div><div class=preview-summary></div></div> |
| 159 <div class=task-buttons></div> | 159 <div class=task-buttons></div> |
| 160 <div> | 160 <div> |
| 161 <button class='delete-button task-button' command='#delete' | 161 <button class='delete-button task-button' command='#delete' |
| 162 onclick='fileManager.deleteEntries( | 162 onclick='fileManager.deleteEntries( |
| 163 fileManager.selection.entries, false)' | 163 fileManager.selection.entries, false)' |
| 164 visibleif='this.dialogType_ == "full-page"' | 164 visibleif='this.dialogType_ == "full-page"' |
| 165 ><img src='images/button-icon-delete.png' | 165 ><img src='images/button-icon-delete.png' |
| 166 ><div i18n-content=DELETE_BUTTON_LABEL></div | 166 ><div i18n-content=DELETE_BUTTON_LABEL></div |
| (...skipping 10 matching lines...) Expand all Loading... |
| 177 visibleif='this.dialogType_ == "saveas-file"'> | 177 visibleif='this.dialogType_ == "saveas-file"'> |
| 178 <div class=horizontal-spacer></div> | 178 <div class=horizontal-spacer></div> |
| 179 <button class=ok disabled tabindex=2>[OK]</button> | 179 <button class=ok disabled tabindex=2>[OK]</button> |
| 180 <button class=cancel tabindex=3 i18n-content=CANCEL_LABEL | 180 <button class=cancel tabindex=3 i18n-content=CANCEL_LABEL |
| 181 >[CANCEL]</button> | 181 >[CANCEL]</button> |
| 182 </div> | 182 </div> |
| 183 | 183 |
| 184 <script>init();</script> | 184 <script>init();</script> |
| 185 </body> | 185 </body> |
| 186 </html> | 186 </html> |
| OLD | NEW |