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

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

Issue 8619007: Revert "Move a bunch of ChromeOS APIs out of chrome/browser/extensions." (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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 };
OLDNEW
« no previous file with comments | « chrome/browser/platform_util_chromeos.cc ('k') | chrome/browser/tab_contents/render_view_context_menu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698