| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. |
| 4 |
| 5 // WARNING: Do not edit - generated code. |
| 6 |
| 7 class _PointerLockWrappingImplementation extends DOMWrapperBase implements Point
erLock { |
| 8 _PointerLockWrappingImplementation() : super() {} |
| 9 |
| 10 static create__PointerLockWrappingImplementation() native { |
| 11 return new _PointerLockWrappingImplementation(); |
| 12 } |
| 13 |
| 14 bool isLocked() { |
| 15 return _isLocked(this); |
| 16 } |
| 17 static bool _isLocked(receiver) native; |
| 18 |
| 19 void lock(Element target, [VoidCallback successCallback = null, VoidCallback f
ailureCallback = null]) { |
| 20 if (successCallback === null) { |
| 21 if (failureCallback === null) { |
| 22 _lock(this, target); |
| 23 return; |
| 24 } |
| 25 } else { |
| 26 if (failureCallback === null) { |
| 27 _lock_2(this, target, successCallback); |
| 28 return; |
| 29 } else { |
| 30 _lock_3(this, target, successCallback, failureCallback); |
| 31 return; |
| 32 } |
| 33 } |
| 34 throw "Incorrect number or type of arguments"; |
| 35 } |
| 36 static void _lock(receiver, target) native; |
| 37 static void _lock_2(receiver, target, successCallback) native; |
| 38 static void _lock_3(receiver, target, successCallback, failureCallback) native
; |
| 39 |
| 40 void unlock() { |
| 41 _unlock(this); |
| 42 return; |
| 43 } |
| 44 static void _unlock(receiver) native; |
| 45 |
| 46 String get typeName() { return "PointerLock"; } |
| 47 } |
| OLD | NEW |