OLD | NEW |
1 // Copyright 2010 Google Inc. | 1 // Copyright 2010 The Chromium Authors. All rights reserved. |
2 // | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // Licensed under the Apache License, Version 2.0 (the "License"); | 3 // found in the LICENSE file. |
4 // you may not use this file except in compliance with the License. | |
5 // You may obtain a copy of the License at | |
6 // | |
7 // http://www.apache.org/licenses/LICENSE-2.0 | |
8 // | |
9 // Unless required by applicable law or agreed to in writing, software | |
10 // distributed under the License is distributed on an "AS IS" BASIS, | |
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
12 // See the License for the specific language governing permissions and | |
13 // limitations under the License. | |
14 | 4 |
15 /** | 5 /** |
16 * @fileoverview Code to execute before Closure's base.js. | 6 * @fileoverview Code to execute before Closure's base.js. |
17 * | 7 * |
18 * @author dmazzoni@google.com (Dominic Mazzoni) | |
19 */ | 8 */ |
20 | 9 |
21 /** | 10 /** |
22 * Tell Closure to load JavaScript code from the extension root directory. | 11 * Tell Closure to load JavaScript code from the extension root directory. |
23 * @type {boolean} | 12 * @type {boolean} |
24 */ | 13 */ |
25 window.CLOSURE_BASE_PATH = chrome.extension.getURL('/closure/'); | 14 window.CLOSURE_BASE_PATH = chrome.extension.getURL('/closure/'); |
26 | 15 |
27 /** | 16 /** |
28 * Tell Closure not to load deps.js; it's included by manifest.json already. | 17 * Tell Closure not to load deps.js; it's included by manifest.json already. |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 } | 85 } |
97 goog.global.queue_.push(src); | 86 goog.global.queue_.push(src); |
98 if (goog.global.queue_.length == 1) { | 87 if (goog.global.queue_.length == 1) { |
99 loadNextScript(); | 88 loadNextScript(); |
100 } | 89 } |
101 return true; | 90 return true; |
102 } else { | 91 } else { |
103 return goog.writeScriptTag_(src); | 92 return goog.writeScriptTag_(src); |
104 } | 93 } |
105 }; | 94 }; |
OLD | NEW |