OLD | NEW |
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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 } | 200 } |
201 }, | 201 }, |
202 | 202 |
203 getSizeStats: function() {}, | 203 getSizeStats: function() {}, |
204 | 204 |
205 /** | 205 /** |
206 * Return localized strings. | 206 * Return localized strings. |
207 */ | 207 */ |
208 getStrings: function(callback) { | 208 getStrings: function(callback) { |
209 // Keep this list in sync with the strings in generated_resources.grd and | 209 // Keep this list in sync with the strings in generated_resources.grd and |
210 // file_browser_extension_api.cc! | 210 // extension_file_browser_private_api.cc! |
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', |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
396 }; | 396 }; |
397 | 397 |
398 chrome.experimental = { | 398 chrome.experimental = { |
399 metrics: { | 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 } | 404 } |
405 }; | 405 }; |
OLD | NEW |