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

Side by Side Diff: tools/dom/templates/html/impl/impl_Touch.darttemplate

Issue 2978213002: Removed DARTIUM codegen for IDLS (sdk/lib/dartium) (Closed)
Patch Set: Update generated darttemplate Created 3 years, 5 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
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 part of $LIBRARYNAME; 5 part of $LIBRARYNAME;
6 6
7 @DocsEditable() 7 @DocsEditable()
8 $(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS { 8 $(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS {
9 $!MEMBERS 9 $!MEMBERS
10 10
11 // As of Chrome 37, these all changed from long to double. This code 11 // As of Chrome 37, these all changed from long to double. This code
12 // preserves backwards compatibility for the time being. 12 // preserves backwards compatibility for the time being.
13 $if DART2JS
14 int get __clientX => JS('num', '#.clientX', this).round(); 13 int get __clientX => JS('num', '#.clientX', this).round();
15 int get __clientY => JS('num', '#.clientY', this).round(); 14 int get __clientY => JS('num', '#.clientY', this).round();
16 int get __screenX => JS('num', '#.screenX', this).round(); 15 int get __screenX => JS('num', '#.screenX', this).round();
17 int get __screenY => JS('num', '#.screenY', this).round(); 16 int get __screenY => JS('num', '#.screenY', this).round();
18 int get __pageX => JS('num', '#.pageX', this).round(); 17 int get __pageX => JS('num', '#.pageX', this).round();
19 int get __pageY => JS('num', '#.pageY', this).round(); 18 int get __pageY => JS('num', '#.pageY', this).round();
20 int get __radiusX => JS('num', '#.radiusX', this).round(); 19 int get __radiusX => JS('num', '#.radiusX', this).round();
21 int get __radiusY => JS('num', '#.radiusY', this).round(); 20 int get __radiusY => JS('num', '#.radiusY', this).round();
22 $else
23 int get __clientX => _blink.BlinkTouch.instance.clientX_Getter_(this).round();
24 int get __clientY => _blink.BlinkTouch.instance.clientY_Getter_(this).round();
25 int get __screenX => _blink.BlinkTouch.instance.screenX_Getter_(this).round();
26 int get __screenY => _blink.BlinkTouch.instance.screenY_Getter_(this).round();
27 int get __pageX => _blink.BlinkTouch.instance.pageX_Getter_(this).round();
28 int get __pageY => _blink.BlinkTouch.instance.pageY_Getter_(this).round();
29 int get __radiusX => _blink.BlinkTouch.instance.radiusX_Getter_(this).round();
30 int get __radiusY => _blink.BlinkTouch.instance.radiusY_Getter_(this).round();
31 $endif
32 21
33 @DomName('Touch.clientX') 22 @DomName('Touch.clientX')
34 @DomName('Touch.clientY') 23 @DomName('Touch.clientY')
35 Point get client => new Point/*<num>*/(__clientX, __clientY); 24 Point get client => new Point/*<num>*/(__clientX, __clientY);
36 25
37 @DomName('Touch.pageX') 26 @DomName('Touch.pageX')
38 @DomName('Touch.pageY') 27 @DomName('Touch.pageY')
39 Point get page => new Point/*<num>*/(__pageX, __pageY); 28 Point get page => new Point/*<num>*/(__pageX, __pageY);
40 29
41 @DomName('Touch.screenX') 30 @DomName('Touch.screenX')
42 @DomName('Touch.screenY') 31 @DomName('Touch.screenY')
43 Point get screen => new Point/*<num>*/(__screenX, __screenY); 32 Point get screen => new Point/*<num>*/(__screenX, __screenY);
44 33
45 @DomName('Touch.radiusX') 34 @DomName('Touch.radiusX')
46 @DocsEditable() 35 @DocsEditable()
47 @SupportedBrowser(SupportedBrowser.CHROME) 36 @SupportedBrowser(SupportedBrowser.CHROME)
48 @SupportedBrowser(SupportedBrowser.SAFARI) 37 @SupportedBrowser(SupportedBrowser.SAFARI)
49 @Experimental() 38 @Experimental()
50 int get radiusX => __radiusX; 39 int get radiusX => __radiusX;
51 40
52 @DomName('Touch.radiusY') 41 @DomName('Touch.radiusY')
53 @DocsEditable() 42 @DocsEditable()
54 @SupportedBrowser(SupportedBrowser.CHROME) 43 @SupportedBrowser(SupportedBrowser.CHROME)
55 @SupportedBrowser(SupportedBrowser.SAFARI) 44 @SupportedBrowser(SupportedBrowser.SAFARI)
56 @Experimental() 45 @Experimental()
57 int get radiusY => __radiusY; 46 int get radiusY => __radiusY;
58 47
59 } 48 }
OLDNEW
« no previous file with comments | « tools/dom/templates/html/impl/impl_Text.darttemplate ('k') | tools/dom/templates/html/impl/impl_TouchEvent.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698