Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 * @fileoverview Externs for objects sent from C++ to chrome://history. | 6 * @fileoverview Externs for objects sent from C++ to chrome://history. |
| 7 * @externs | 7 * @externs |
| 8 */ | 8 */ |
| 9 | 9 |
| 10 /** | 10 /** |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 68 * chrome/browser/ui/webui/foreign_session_handler.cc: | 68 * chrome/browser/ui/webui/foreign_session_handler.cc: |
| 69 * @typedef {{collapsed: boolean, | 69 * @typedef {{collapsed: boolean, |
| 70 * deviceType: string, | 70 * deviceType: string, |
| 71 * name: string, | 71 * name: string, |
| 72 * modifiedTime: string, | 72 * modifiedTime: string, |
| 73 * tag: string, | 73 * tag: string, |
| 74 * timestamp: number, | 74 * timestamp: number, |
| 75 * windows: Array<ForeignSessionWindow>}} | 75 * windows: Array<ForeignSessionWindow>}} |
| 76 */ | 76 */ |
| 77 var ForeignSession; | 77 var ForeignSession; |
| 78 | |
| 79 // Other externs required to compile history: | |
| 80 | |
| 81 var performance = {}; | |
| 82 | |
| 83 /** | |
| 84 * @return {number} | |
| 85 */ | |
| 86 performance.now = function() {}; | |
|
Dan Beam
2016/08/03 21:05:17
i haz a sad
https://github.com/google/closure-comp
tsergeant
2016/08/03 22:53:56
Is there any particular reason why these aren't pu
Dan Beam
2016/08/04 03:51:33
it should be. have you tried window.performance.no
tsergeant
2016/08/04 03:59:06
Ah, that works 🙌
(that doesn't show up in a code
| |
| OLD | NEW |