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

Side by Side Diff: chrome/renderer/resources/extension_process_bindings.js

Issue 6749021: Added new fileBrowserPrivate and fileHandler extension APIs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 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) 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 // This script contains privileged chrome extension related javascript APIs. 5 // This script contains privileged chrome extension related javascript APIs.
6 // It is loaded by pages whose URL has the chrome-extension protocol. 6 // It is loaded by pages whose URL has the chrome-extension protocol.
7 7
8 var chrome = chrome || {}; 8 var chrome = chrome || {};
9 (function() { 9 (function() {
10 native function GetExtensionAPIDefinition(); 10 native function GetExtensionAPIDefinition();
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 delete chrome.extension.lastError; 90 delete chrome.extension.lastError;
91 } else { 91 } else {
92 if (!error) { 92 if (!error) {
93 error = "Unknown error."; 93 error = "Unknown error.";
94 } 94 }
95 console.error("Error during " + name + ": " + error); 95 console.error("Error during " + name + ": " + error);
96 chrome.extension.lastError = { 96 chrome.extension.lastError = {
97 "message": error 97 "message": error
98 }; 98 };
99 } 99 }
100
Aaron Boodman 2011/04/13 18:08:03 Unnecessary change :)
zel 2011/04/14 21:58:05 Reverted.
101 if (request.customCallback) { 100 if (request.customCallback) {
102 request.customCallback(name, request, response); 101 request.customCallback(name, request, response);
103 } 102 }
104 103
105 if (request.callback) { 104 if (request.callback) {
106 // Callbacks currently only support one callback argument. 105 // Callbacks currently only support one callback argument.
107 var callbackArgs = response ? [chromeHidden.JSON.parse(response)] : []; 106 var callbackArgs = response ? [chromeHidden.JSON.parse(response)] : [];
108 107
109 // Validate callback in debug only -- and only when the 108 // Validate callback in debug only -- and only when the
110 // caller has provided a callback. Implementations of api 109 // caller has provided a callback. Implementations of api
(...skipping 787 matching lines...) Expand 10 before | Expand all | Expand 10 after
898 897
899 if (!chrome.experimental) 898 if (!chrome.experimental)
900 chrome.experimental = {}; 899 chrome.experimental = {};
901 900
902 if (!chrome.experimental.accessibility) 901 if (!chrome.experimental.accessibility)
903 chrome.experimental.accessibility = {}; 902 chrome.experimental.accessibility = {};
904 903
905 if (!chrome.experimental.tts) 904 if (!chrome.experimental.tts)
906 chrome.experimental.tts = {}; 905 chrome.experimental.tts = {};
907 })(); 906 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698