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

Side by Side Diff: client/html/generated/html/dartium/Document.dart

Issue 9623017: Refactor the event-generation code to locate it in systemhtml.py. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 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. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 class _DocumentImpl extends _ElementImpl 5 class _DocumentImpl extends _ElementImpl
6 implements Document { 6 implements Document {
7 7
8 _DocumentEventsImpl get on() {
9 if (_on == null) _on = new _DocumentEventsImpl(_wrappedDocumentPtr);
10 return _on;
11 }
12
8 Element get activeElement() => _wrap(_documentPtr.activeElement); 13 Element get activeElement() => _wrap(_documentPtr.activeElement);
9 14
10 Element get body() => _wrap(_documentPtr.body); 15 Element get body() => _wrap(_documentPtr.body);
11 16
12 void set body(Element value) { _documentPtr.body = _unwrap(value); } 17 void set body(Element value) { _documentPtr.body = _unwrap(value); }
13 18
14 String get charset() => _wrap(_documentPtr.charset); 19 String get charset() => _wrap(_documentPtr.charset);
15 20
16 void set charset(String value) { _documentPtr.charset = _unwrap(value); } 21 void set charset(String value) { _documentPtr.charset = _unwrap(value); }
17 22
(...skipping 28 matching lines...) Expand all
46 Element get webkitCurrentFullScreenElement() => _wrap(_documentPtr.webkitCurre ntFullScreenElement); 51 Element get webkitCurrentFullScreenElement() => _wrap(_documentPtr.webkitCurre ntFullScreenElement);
47 52
48 bool get webkitFullScreenKeyboardInputAllowed() => _wrap(_documentPtr.webkitFu llScreenKeyboardInputAllowed); 53 bool get webkitFullScreenKeyboardInputAllowed() => _wrap(_documentPtr.webkitFu llScreenKeyboardInputAllowed);
49 54
50 bool get webkitHidden() => _wrap(_documentPtr.webkitHidden); 55 bool get webkitHidden() => _wrap(_documentPtr.webkitHidden);
51 56
52 bool get webkitIsFullScreen() => _wrap(_documentPtr.webkitIsFullScreen); 57 bool get webkitIsFullScreen() => _wrap(_documentPtr.webkitIsFullScreen);
53 58
54 String get webkitVisibilityState() => _wrap(_documentPtr.webkitVisibilityState ); 59 String get webkitVisibilityState() => _wrap(_documentPtr.webkitVisibilityState );
55 60
56 _DocumentEventsImpl get on() {
57 if (_on == null) _on = new _DocumentEventsImpl(_wrappedDocumentPtr);
58 return _on;
59 }
60
61 Range caretRangeFromPoint(int x, int y) { 61 Range caretRangeFromPoint(int x, int y) {
62 return _wrap(_documentPtr.caretRangeFromPoint(_unwrap(x), _unwrap(y))); 62 return _wrap(_documentPtr.caretRangeFromPoint(_unwrap(x), _unwrap(y)));
63 } 63 }
64 64
65 CDATASection createCDATASection(String data) { 65 CDATASection createCDATASection(String data) {
66 return _wrap(_documentPtr.createCDATASection(_unwrap(data))); 66 return _wrap(_documentPtr.createCDATASection(_unwrap(data)));
67 } 67 }
68 68
69 DocumentFragment createDocumentFragment() { 69 DocumentFragment createDocumentFragment() {
70 return _wrap(_documentPtr.createDocumentFragment()); 70 return _wrap(_documentPtr.createDocumentFragment());
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 EventListenerList get submit() => _get('submit'); 266 EventListenerList get submit() => _get('submit');
267 267
268 EventListenerList get touchCancel() => _get('touchcancel'); 268 EventListenerList get touchCancel() => _get('touchcancel');
269 269
270 EventListenerList get touchEnd() => _get('touchend'); 270 EventListenerList get touchEnd() => _get('touchend');
271 271
272 EventListenerList get touchMove() => _get('touchmove'); 272 EventListenerList get touchMove() => _get('touchmove');
273 273
274 EventListenerList get touchStart() => _get('touchstart'); 274 EventListenerList get touchStart() => _get('touchstart');
275 } 275 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698