OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 function MockEventSource() { | 5 function MockEventSource() { |
6 this.listeners_ = []; | 6 this.listeners_ = []; |
7 } | 7 } |
8 | 8 |
9 /** | 9 /** |
10 * Add a listener. There is no remove. | 10 * Add a listener. There is no remove. |
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
402 // extension_file_browser_private_api.cc! | 402 // extension_file_browser_private_api.cc! |
403 setTimeout(callback, 0, { | 403 setTimeout(callback, 0, { |
404 // These two are from locale_settings*.grd | 404 // These two are from locale_settings*.grd |
405 WEB_FONT_FAMILY: 'Open Sans,Chrome Droid Sans,' + | 405 WEB_FONT_FAMILY: 'Open Sans,Chrome Droid Sans,' + |
406 'Droid Sans Fallback,sans-serif', | 406 'Droid Sans Fallback,sans-serif', |
407 WEB_FONT_SIZE: '84%', | 407 WEB_FONT_SIZE: '84%', |
408 | 408 |
409 FILE_IS_DIRECTORY: 'Folder', | 409 FILE_IS_DIRECTORY: 'Folder', |
410 | 410 |
411 GDATA_DIRECTORY_LABEL: 'Google Drive', | 411 GDATA_DIRECTORY_LABEL: 'Google Drive', |
412 ENABLE_GDATA: '1', | 412 ENABLE_GDATA: true, |
413 PDF_VIEW_ENABLED: 'true', | 413 PDF_VIEW_ENABLED: true, |
414 | 414 |
415 ROOT_DIRECTORY_LABEL: 'Files', | 415 ROOT_DIRECTORY_LABEL: 'Files', |
416 DOWNLOADS_DIRECTORY_LABEL: 'Downloads', | 416 DOWNLOADS_DIRECTORY_LABEL: 'Downloads', |
417 DOWNLOADS_DIRECTORY_WARNING: "<strong>Caution:</strong> These
files are temporary and may be automatically deleted to free up disk space. <
;a href='javascript://'>Learn More</a>", | 417 DOWNLOADS_DIRECTORY_WARNING: "<strong>Caution:</strong> These
files are temporary and may be automatically deleted to free up disk space. <
;a href='javascript://'>Learn More</a>", |
418 NAME_COLUMN_LABEL: 'Name', | 418 NAME_COLUMN_LABEL: 'Name', |
419 SIZE_COLUMN_LABEL: 'Size', | 419 SIZE_COLUMN_LABEL: 'Size', |
420 SIZE_KB: 'KB', | 420 SIZE_KB: 'KB', |
421 SIZE_MB: 'MB', | 421 SIZE_MB: 'MB', |
422 SIZE_GB: 'GB', | 422 SIZE_GB: 'GB', |
423 SIZE_TB: 'TB', | 423 SIZE_TB: 'TB', |
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
716 | 716 |
717 setWindowHeight: function(height) { | 717 setWindowHeight: function(height) { |
718 this.popup_.style.height = height + 'px'; | 718 this.popup_.style.height = height + 'px'; |
719 }, | 719 }, |
720 | 720 |
721 closeWindow: function() { | 721 closeWindow: function() { |
722 this.popup_.parentNode.removeChild(this.popup_); | 722 this.popup_.parentNode.removeChild(this.popup_); |
723 this.popup_ = null; | 723 this.popup_ = null; |
724 } | 724 } |
725 }; | 725 }; |
OLD | NEW |