Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 library html; | 1 library html; |
| 2 | 2 |
| 3 import 'dart:async'; | 3 import 'dart:async'; |
| 4 import 'dart:collection'; | 4 import 'dart:collection'; |
| 5 import 'dart:html_common'; | 5 import 'dart:html_common'; |
| 6 import 'dart:indexed_db'; | 6 import 'dart:indexed_db'; |
| 7 import 'dart:isolate'; | 7 import 'dart:isolate'; |
| 8 import 'dart:json' as json; | 8 import 'dart:json' as json; |
| 9 import 'dart:math'; | 9 import 'dart:math'; |
| 10 import 'dart:svg' as svg; | 10 import 'dart:svg' as svg; |
| (...skipping 15496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 15507 | 15507 |
| 15508 /// @domName HTMLParamElement.value; @docsEditable true | 15508 /// @domName HTMLParamElement.value; @docsEditable true |
| 15509 String value; | 15509 String value; |
| 15510 } | 15510 } |
| 15511 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15511 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 15512 // for details. All rights reserved. Use of this source code is governed by a | 15512 // for details. All rights reserved. Use of this source code is governed by a |
| 15513 // BSD-style license that can be found in the LICENSE file. | 15513 // BSD-style license that can be found in the LICENSE file. |
| 15514 | 15514 |
| 15515 | 15515 |
| 15516 /// @domName Performance; @docsEditable true | 15516 /// @domName Performance; @docsEditable true |
| 15517 @SupportedBrowser(SupportedBrowser.CHROME) | |
| 15518 @SupportedBrowser(SupportedBrowser.FIREFOX) | |
| 15519 @SupportedBrowser(SupportedBrowser.IE) | |
| 15517 class Performance extends EventTarget native "*Performance" { | 15520 class Performance extends EventTarget native "*Performance" { |
| 15518 | 15521 |
| 15522 /** | |
| 15523 * Checks if this type is supported on the current platform | |
|
Emily Fortuna
2013/01/11 21:16:12
nit: end in a "." and this could probably be a one
blois
2013/01/11 21:28:02
Done.
| |
| 15524 */ | |
| 15525 static bool get supported => JS('bool', '!!(window.performance)'); | |
| 15526 | |
| 15519 /// @domName Performance.memory; @docsEditable true | 15527 /// @domName Performance.memory; @docsEditable true |
| 15520 final MemoryInfo memory; | 15528 final MemoryInfo memory; |
| 15521 | 15529 |
| 15522 /// @domName Performance.navigation; @docsEditable true | 15530 /// @domName Performance.navigation; @docsEditable true |
| 15523 final PerformanceNavigation navigation; | 15531 final PerformanceNavigation navigation; |
| 15524 | 15532 |
| 15525 /// @domName Performance.timing; @docsEditable true | 15533 /// @domName Performance.timing; @docsEditable true |
| 15526 final PerformanceTiming timing; | 15534 final PerformanceTiming timing; |
| 15527 | 15535 |
| 15528 /// @domName Performance.now; @docsEditable true | 15536 /// @domName Performance.now; @docsEditable true |
| (...skipping 5989 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 21518 /// @domName Window.pageYOffset; @docsEditable true | 21526 /// @domName Window.pageYOffset; @docsEditable true |
| 21519 final int pageYOffset; | 21527 final int pageYOffset; |
| 21520 | 21528 |
| 21521 /// @domName Window.parent; @docsEditable true | 21529 /// @domName Window.parent; @docsEditable true |
| 21522 WindowBase get parent => _convertNativeToDart_Window(this._parent); | 21530 WindowBase get parent => _convertNativeToDart_Window(this._parent); |
| 21523 @JSName('parent') | 21531 @JSName('parent') |
| 21524 @Creates('Window|=Object') @Returns('Window|=Object') | 21532 @Creates('Window|=Object') @Returns('Window|=Object') |
| 21525 final dynamic _parent; | 21533 final dynamic _parent; |
| 21526 | 21534 |
| 21527 /// @domName Window.performance; @docsEditable true | 21535 /// @domName Window.performance; @docsEditable true |
| 21536 @SupportedBrowser(SupportedBrowser.CHROME) @SupportedBrowser(SupportedBrowser. FIREFOX) @SupportedBrowser(SupportedBrowser.IE) | |
| 21528 final Performance performance; | 21537 final Performance performance; |
| 21529 | 21538 |
| 21530 /// @domName Window.personalbar; @docsEditable true | 21539 /// @domName Window.personalbar; @docsEditable true |
| 21531 final BarInfo personalbar; | 21540 final BarInfo personalbar; |
| 21532 | 21541 |
| 21533 /// @domName Window.screen; @docsEditable true | 21542 /// @domName Window.screen; @docsEditable true |
| 21534 final Screen screen; | 21543 final Screen screen; |
| 21535 | 21544 |
| 21536 /// @domName Window.screenLeft; @docsEditable true | 21545 /// @domName Window.screenLeft; @docsEditable true |
| 21537 final int screenLeft; | 21546 final int screenLeft; |
| (...skipping 5453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 26991 _position = nextPosition; | 27000 _position = nextPosition; |
| 26992 return true; | 27001 return true; |
| 26993 } | 27002 } |
| 26994 _current = null; | 27003 _current = null; |
| 26995 _position = _array.length; | 27004 _position = _array.length; |
| 26996 return false; | 27005 return false; |
| 26997 } | 27006 } |
| 26998 | 27007 |
| 26999 T get current => _current; | 27008 T get current => _current; |
| 27000 } | 27009 } |
| OLD | NEW |