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

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

Issue 454223004: Typecheck JS files for chrome://history (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@B_download
Patch Set: rebase once again Created 6 years, 4 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
« no previous file with comments | « chrome/browser/ui/webui/history_ui.cc ('k') | ui/webui/resources/js/cr/ui/alert_overlay.js » ('j') | 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 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }();
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/history_ui.cc ('k') | ui/webui/resources/js/cr/ui/alert_overlay.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698