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 get isLocked() { return _get_isLocked(this); } | |
15 static bool _get_isLocked(var _this) native; | |
16 | |
17 void lock(Element target, [VoidCallback successCallback = null, VoidCallback f
ailureCallback = null]) { | |
18 if (successCallback === null) { | |
19 if (failureCallback === null) { | |
20 _lock(this, target); | |
21 return; | |
22 } | |
23 } else { | |
24 if (failureCallback === null) { | |
25 _lock_2(this, target, successCallback); | |
26 return; | |
27 } else { | |
28 _lock_3(this, target, successCallback, failureCallback); | |
29 return; | |
30 } | |
31 } | |
32 throw "Incorrect number or type of arguments"; | |
33 } | |
34 static void _lock(receiver, target) native; | |
35 static void _lock_2(receiver, target, successCallback) native; | |
36 static void _lock_3(receiver, target, successCallback, failureCallback) native
; | |
37 | |
38 void unlock() { | |
39 _unlock(this); | |
40 return; | |
41 } | |
42 static void _unlock(receiver) native; | |
43 | |
44 String get typeName() { return "PointerLock"; } | |
45 } | |
OLD | NEW |