| 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 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 423 | 423 |
| 424 /** Whether this is on chromeOS or not. */ | 424 /** Whether this is on chromeOS or not. */ |
| 425 get isChromeOS() { | 425 get isChromeOS() { |
| 426 return /CrOS/.test(navigator.userAgent); | 426 return /CrOS/.test(navigator.userAgent); |
| 427 }, | 427 }, |
| 428 | 428 |
| 429 /** Whether this is on vanilla Linux (not chromeOS). */ | 429 /** Whether this is on vanilla Linux (not chromeOS). */ |
| 430 get isLinux() { | 430 get isLinux() { |
| 431 return /Linux/.test(navigator.userAgent); | 431 return /Linux/.test(navigator.userAgent); |
| 432 }, | 432 }, |
| 433 |
| 434 /** Whether this is on Android. */ |
| 435 get isAndroid() { |
| 436 return /Android/.test(navigator.userAgent); |
| 437 } |
| 433 }; | 438 }; |
| 434 }(); | 439 }(); |
| OLD | NEW |