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

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

Issue 8554003: [filebrowser] Add left panel with roots. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 /** 5 /**
6 * Mock out the chrome.fileBrowserPrivate API for use in the harness. 6 * Mock out the chrome.fileBrowserPrivate API for use in the harness.
7 */ 7 */
8 chrome.fileBrowserPrivate = { 8 chrome.fileBrowserPrivate = {
9 9
10 /** 10 /**
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 callback({ 211 callback({
212 // These two are from locale_settings*.grd 212 // These two are from locale_settings*.grd
213 WEB_FONT_FAMILY: 'Chrome Droid Sans,Droid Sans Fallback,sans-serif', 213 WEB_FONT_FAMILY: 'Chrome Droid Sans,Droid Sans Fallback,sans-serif',
214 WEB_FONT_SIZE: '84%', 214 WEB_FONT_SIZE: '84%',
215 215
216 FILE_IS_DIRECTORY: 'Folder', 216 FILE_IS_DIRECTORY: 'Folder',
217 PARENT_DIRECTORY: 'Parent Directory', 217 PARENT_DIRECTORY: 'Parent Directory',
218 218
219 ROOT_DIRECTORY_LABEL: 'Files', 219 ROOT_DIRECTORY_LABEL: 'Files',
220 DOWNLOADS_DIRECTORY_LABEL: 'File Shelf', 220 DOWNLOADS_DIRECTORY_LABEL: 'File Shelf',
221 CHROMEBOOK_DIRECTORY_LABEL: 'Chromebook',
221 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>", 222 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>",
222 MEDIA_DIRECTORY_LABEL: 'External Storage', 223 MEDIA_DIRECTORY_LABEL: 'External Storage',
223 NAME_COLUMN_LABEL: 'Name', 224 NAME_COLUMN_LABEL: 'Name',
224 SIZE_COLUMN_LABEL: 'Size', 225 SIZE_COLUMN_LABEL: 'Size',
225 TYPE_COLUMN_LABEL: 'Type', 226 TYPE_COLUMN_LABEL: 'Type',
226 DATE_COLUMN_LABEL: 'Date', 227 DATE_COLUMN_LABEL: 'Date',
227 PREVIEW_COLUMN_LABEL: 'Preview', 228 PREVIEW_COLUMN_LABEL: 'Preview',
228 229
229 ERROR_CREATING_FOLDER: 'Unable to create folder "$1": $2', 230 ERROR_CREATING_FOLDER: 'Unable to create folder "$1": $2',
230 ERROR_INVALID_CHARACTER: 'Invalid character: $1', 231 ERROR_INVALID_CHARACTER: 'Invalid character: $1',
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
388 } 389 }
389 } 390 }
390 }; 391 };
391 392
392 chrome.tabs = { 393 chrome.tabs = {
393 create: function(createOptions) { 394 create: function(createOptions) {
394 window.open(createOptions.url); 395 window.open(createOptions.url);
395 } 396 }
396 }; 397 };
397 398
398 chrome.experimental = { 399 chrome.metricsPrivate = {
399 metrics: { 400 recordValue: function() {},
400 recordValue: function() {}, 401 recordMediumCount: function() {},
401 recordMediumCount: function() {}, 402 recordTime: function() {},
402 recordTime: function() {}, 403 recordUserAction: function() {}
403 recordUserAction: function() {}
404 }
405 }; 404 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698