OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // Javascript module pattern: | 5 // Javascript module pattern: |
6 // see http://en.wikipedia.org/wiki/Unobtrusive_JavaScript#Namespaces | 6 // see http://en.wikipedia.org/wiki/Unobtrusive_JavaScript#Namespaces |
7 // In essence, we define an anonymous function which is immediately called and | 7 // In essence, we define an anonymous function which is immediately called and |
8 // returns a new object. The new object contains only the exported definitions; | 8 // returns a new object. The new object contains only the exported definitions; |
9 // all other definitions in the anonymous function are inaccessible to external | 9 // all other definitions in the anonymous function are inaccessible to external |
10 // code. | 10 // code. |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 naclModule: null, | 198 naclModule: null, |
199 | 199 |
200 onload: pageDidLoad, | 200 onload: pageDidLoad, |
201 attachDefaultListeners: attachDefaultListeners, | 201 attachDefaultListeners: attachDefaultListeners, |
202 createNaClModule: createNaClModule, | 202 createNaClModule: createNaClModule, |
203 hideModule: hideModule, | 203 hideModule: hideModule, |
204 updateStatus: updateStatus | 204 updateStatus: updateStatus |
205 }; | 205 }; |
206 | 206 |
207 }()); | 207 }()); |
OLD | NEW |