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 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
291 }; | 291 }; |
292 } | 292 } |
293 | 293 |
294 return { | 294 return { |
295 addSingletonGetter: addSingletonGetter, | 295 addSingletonGetter: addSingletonGetter, |
296 createUid: createUid, | 296 createUid: createUid, |
297 define: define, | 297 define: define, |
298 defineProperty: defineProperty, | 298 defineProperty: defineProperty, |
299 dispatchPropertyChange: dispatchPropertyChange, | 299 dispatchPropertyChange: dispatchPropertyChange, |
300 dispatchSimpleEvent: dispatchSimpleEvent, | 300 dispatchSimpleEvent: dispatchSimpleEvent, |
301 exportPath: exportPath, | |
Dan Beam
2014/08/05 18:49:27
^ still needed?
Vitaly Pavlenko
2014/08/05 23:00:54
it's used in ui/webui/resources/js/cr/ui/bubble.js
| |
301 getUid: getUid, | 302 getUid: getUid, |
302 PropertyKind: PropertyKind, | 303 PropertyKind: PropertyKind, |
303 | 304 |
304 get doc() { | 305 get doc() { |
305 return document; | 306 return document; |
306 }, | 307 }, |
307 | 308 |
308 /** Whether we are using a Mac or not. */ | 309 /** Whether we are using a Mac or not. */ |
309 get isMac() { | 310 get isMac() { |
310 return /Mac/.test(navigator.platform); | 311 return /Mac/.test(navigator.platform); |
(...skipping 14 matching lines...) Expand all Loading... | |
325 return /Linux/.test(navigator.userAgent); | 326 return /Linux/.test(navigator.userAgent); |
326 }, | 327 }, |
327 | 328 |
328 /** Whether this uses the views toolkit or not. */ | 329 /** Whether this uses the views toolkit or not. */ |
329 get isViews() { | 330 get isViews() { |
330 return typeof chrome.getVariableValue == 'function' && | 331 return typeof chrome.getVariableValue == 'function' && |
331 /views/.test(chrome.getVariableValue('toolkit')); | 332 /views/.test(chrome.getVariableValue('toolkit')); |
332 }, | 333 }, |
333 }; | 334 }; |
334 }(); | 335 }(); |
OLD | NEW |