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

Side by Side Diff: chrome/browser/resources/file_manager/js/mock_chrome.js

Issue 10391075: convert chromeos file manager to loadTimeData (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync Created 8 years, 7 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 | Annotate | Revision Log
OLDNEW
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
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. &lt ;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. &lt ;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 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
714 714
715 setWindowHeight: function(height) { 715 setWindowHeight: function(height) {
716 this.popup_.style.height = height + 'px'; 716 this.popup_.style.height = height + 'px';
717 }, 717 },
718 718
719 closeWindow: function() { 719 closeWindow: function() {
720 this.popup_.parentNode.removeChild(this.popup_); 720 this.popup_.parentNode.removeChild(this.popup_);
721 this.popup_ = null; 721 this.popup_ = null;
722 } 722 }
723 }; 723 };
OLDNEW
« no previous file with comments | « chrome/browser/resources/file_manager/js/main_scripts.js ('k') | chrome/browser/resources/file_manager/main.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698