Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(113)

Side by Side Diff: ui/webui/resources/js/cr.js

Issue 1175603002: views: Move TOOLKIT_VIEWS definition in //ui/views/ from root. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« ui/views/BUILD.gn ('K') | « ui/views/views.gyp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 413 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 424
425 /** Whether this is on chromeOS or not. */ 425 /** Whether this is on chromeOS or not. */
426 get isChromeOS() { 426 get isChromeOS() {
427 return /CrOS/.test(navigator.userAgent); 427 return /CrOS/.test(navigator.userAgent);
428 }, 428 },
429 429
430 /** Whether this is on vanilla Linux (not chromeOS). */ 430 /** Whether this is on vanilla Linux (not chromeOS). */
431 get isLinux() { 431 get isLinux() {
432 return /Linux/.test(navigator.userAgent); 432 return /Linux/.test(navigator.userAgent);
433 }, 433 },
434
435 /** Whether this uses the views toolkit or not. */
436 get isViews() {
437 return typeof chrome.getVariableValue == 'function' &&
438 /views/.test(chrome.getVariableValue('toolkit'));
439 },
440 }; 434 };
441 }(); 435 }();
OLDNEW
« ui/views/BUILD.gn ('K') | « ui/views/views.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698