| 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 /** | 5 /** |
| 6 * The global object. | 6 * The global object. |
| 7 * @type {!Object} | 7 * @type {!Object} |
| 8 * @const | 8 * @const |
| 9 */ | 9 */ |
| 10 var global = this; | 10 var global = this; |
| (...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 294 }; | 294 }; |
| 295 } | 295 } |
| 296 | 296 |
| 297 return { | 297 return { |
| 298 addSingletonGetter: addSingletonGetter, | 298 addSingletonGetter: addSingletonGetter, |
| 299 createUid: createUid, | 299 createUid: createUid, |
| 300 define: define, | 300 define: define, |
| 301 defineProperty: defineProperty, | 301 defineProperty: defineProperty, |
| 302 dispatchPropertyChange: dispatchPropertyChange, | 302 dispatchPropertyChange: dispatchPropertyChange, |
| 303 dispatchSimpleEvent: dispatchSimpleEvent, | 303 dispatchSimpleEvent: dispatchSimpleEvent, |
| 304 exportPath: exportPath, |
| 304 getUid: getUid, | 305 getUid: getUid, |
| 305 PropertyKind: PropertyKind, | 306 PropertyKind: PropertyKind, |
| 306 | 307 |
| 307 get doc() { | 308 get doc() { |
| 308 return document; | 309 return document; |
| 309 }, | 310 }, |
| 310 | 311 |
| 311 /** Whether we are using a Mac or not. */ | 312 /** Whether we are using a Mac or not. */ |
| 312 get isMac() { | 313 get isMac() { |
| 313 return /Mac/.test(navigator.platform); | 314 return /Mac/.test(navigator.platform); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 328 return /Linux/.test(navigator.userAgent); | 329 return /Linux/.test(navigator.userAgent); |
| 329 }, | 330 }, |
| 330 | 331 |
| 331 /** Whether this uses the views toolkit or not. */ | 332 /** Whether this uses the views toolkit or not. */ |
| 332 get isViews() { | 333 get isViews() { |
| 333 return typeof chrome.getVariableValue == 'function' && | 334 return typeof chrome.getVariableValue == 'function' && |
| 334 /views/.test(chrome.getVariableValue('toolkit')); | 335 /views/.test(chrome.getVariableValue('toolkit')); |
| 335 }, | 336 }, |
| 336 }; | 337 }; |
| 337 }(); | 338 }(); |
| OLD | NEW |