Commit Graph

42 Commits

Author SHA1 Message Date
nweiz@google.com f7419664c4 Thoroughly document html_diff and html_doc.
TBR

Review URL: http://codereview.chromium.org//8871001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2204 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-07 23:13:23 +00:00
nweiz@google.com a811209d78 Add a script to generate HTML and DOM docs with cross-links to one another.
This entails adding callbacks to dartdoc for injecting additional
comments, as well as adding somewhat deeper support for hashing and
equality testing of Frog objects.

The next step is to inject the annotations into the HTML and DOM library source itself.

Review URL: http://codereview.chromium.org//8771054

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2199 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-07 22:15:12 +00:00
sigmund@google.com d45d3596c5 frog: better errors/warnigns about type annotations in map literals.
Using 2, instead of 1 type arguments is only a warning (this matches the vm)

Review URL: http://codereview.chromium.org//8856004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2189 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-07 19:10:37 +00:00
sigmund@google.com cb86ec8e6a buildfix: not use type annotation in map literals within htmllib
Review URL: http://codereview.chromium.org//8855001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2187 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-07 17:43:52 +00:00
sigmund@google.com b0d4e767fc frog: use type annotation in map and list literals
BUG= http://code.google.com/p/dart/issues/detail?id=220 http://code.google.com/p/dart/issues/detail?id=221

Review URL: http://codereview.chromium.org//8849001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2186 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-07 17:37:00 +00:00
jacobr@google.com 770a6a6c0a New version of the bindings.
BUG=
TEST=

Review URL: http://codereview.chromium.org//8839010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2168 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-07 12:31:46 +00:00
scheglov@google.com 54c5f79d42 Check that interface constructors and default class constructors are compatible.
1. Number of required parameters.
2. Names and order of named parameters.
3. [disabled] type warning for non-identical types.
4. [wait for Eric, not implemented] type parameters check.

R=zundel@google.com
BUG=
TEST=

Review URL: http://codereview.chromium.org//8786002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2124 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-06 14:58:16 +00:00
nweiz@google.com c485674382 Get html-diff running again.
TBR

Review URL: http://codereview.chromium.org//8769021

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1998 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-01 22:51:54 +00:00
jmesserly@google.com 254a4c0d88 Fix names with '$' to not conflict with operators or internal helpers.
Does two things:
* In our Dart type system, we track special names with ":" instead of "$". So ":add" and "get:foobar" "set:foobar". In "jsname" we change this back to $
* in jsname, mangle $'s from Dart identifiers into $$. It's not perfect, but should avoid conflicts with our various helpers.

http://code.google.com/p/dart/issues/detail?id=639

Review URL: http://codereview.chromium.org//8763001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1948 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-30 21:52:59 +00:00
jacobr@google.com 1ea93e5f9f Fixes to the html library matching vsm's changes to the generated code.
BUG=
TEST=

Review URL: http://codereview.chromium.org//8659025

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1901 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-29 18:59:47 +00:00
vsm@google.com 1d2dbb040b Temporary build fix in generated code
TBR=jacobr

Review URL: http://codereview.chromium.org//8659020

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1880 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-28 22:47:27 +00:00
jacobr@google.com 2dbe767ed6 Split html library into html and html_impl
BUG=
TEST=

Review URL: http://codereview.chromium.org//8548007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1879 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-28 22:16:54 +00:00
jacobr@google.com 5b31d3d00f This class wasn't used anyway. Removing as it causes errors due to recent VM changes.
BUG=
TEST=

Review URL: http://codereview.chromium.org//8673005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1771 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-23 01:12:10 +00:00
nweiz@google.com 4b756816ea Add a script for determining which DOM methods correspond to which HTML methods.
Ultimately, this will be used for generating documentation. Currently, though,
it just prints out information to the console.

This also includes some annotations to the HTML library, where the DOM
correspondence couldn't be auto-detected.

Review URL: http://codereview.chromium.org//8548019

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1767 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-22 23:39:59 +00:00
jmesserly@google.com c21417ef6e Revert "Fix some type warnings in html library."
The factory change seems to have broken tests on Dartium.

Review URL: http://codereview.chromium.org//8561002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1642 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-17 23:58:43 +00:00
jmesserly@google.com 0c187847e4 Fix some type warnings in html library.
Two changes:
* factories for Element are typed to return Element. That way we know they're downcastable to things like CanvasElement.
* switch "final" to an explicit "dom.HTMLElement", so we know it has innerHTML on it.  (from looking at the static tpes, it thought "temp" was just an dom.Element. You're probably familiar with this "feature" of the DOM... ;-) )

Review URL: http://codereview.chromium.org//8591031

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1637 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-17 22:22:34 +00:00
antonm@google.com b869b81c1d Mirgate dart:html to initWebKitWheelEvent.
Recently Dartium code generator started to follow more closely JS-specific
stuff in IDLs.  And, as an example, for JS we have WheelEvent.initWebKitWheelEvent, not
WheelEvent.initWheelEvent as for other languages.  Hence the change.
Review URL: http://codereview.chromium.org//8581002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1582 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-16 19:26:40 +00:00
jacobr@google.com 157b35983a Implement measurement using promises
BUG=
TEST=

Review URL: http://codereview.chromium.org//8363040

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1050 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-01 23:17:47 +00:00
ngeoffray@google.com 5496005d1d Add optional arguments to our indexOf/lastIndexOf methods.
Review URL: http://codereview.chromium.org//8424012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@947 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-31 13:21:30 +00:00
nweiz@google.com 7ac8255b44 Add constructors to all the event classes.
Review URL: http://codereview.chromium.org//8404013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@914 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-28 19:48:50 +00:00
vsm@google.com e95572dd87 Missing parens
Frog is breaking on this when compiling swarm.

Review URL: http://codereview.chromium.org//8390039

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@750 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-26 14:19:16 +00:00
nweiz@google.com 6c165ed12c Code review fixes for CSSStyleDeclaration.
Review URL: http://codereview.chromium.org//8392023

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@729 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-26 00:28:50 +00:00
nweiz@google.com 7ed753c214 Fix client/html_tests so they use the new framework.
TBR=jacobr

Review URL: http://codereview.chromium.org//8341027

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@707 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-25 18:36:26 +00:00
nweiz@google.com 5ff2269189 Move the individual property definitions from client/base/Css to CSSStyleDeclaration.
Review URL: http://codereview.chromium.org//8360025

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@651 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-24 20:44:30 +00:00
nweiz@google.com c1ca81a9e4 Make DocumentFragment implement Element.
Review URL: http://codereview.chromium.org//8355019

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@587 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-20 19:55:58 +00:00
nweiz@google.com 260693a55e Rename cloneNode to clone and move it into the Node interface.
Review URL: http://codereview.chromium.org//8330003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@563 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-19 18:03:24 +00:00
vsm@google.com 50ae8ae116 Repackage html lib.
This is just regen:
- cd .../client/html
- rm -rf release
- ../tools/copy_dart.py release html.dart

Review URL: http://codereview.chromium.org//8234030

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@370 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-12 18:10:51 +00:00
arv@google.com a89740adaa Dart DOM: Fix some TODOs in Element and Node.
BUG=None
TEST=None

Review URL: https://chromereviews.googleplex.com/3560012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@304 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-10 17:39:34 +00:00
jacobr@google.com ddaacbe83b checkpoint
BUG=
TEST=

Review URL: https://chromereviews.googleplex.com/3556012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@265 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 23:29:39 +00:00
ngeoffray@google.com c2b5e488da Remove substringToEnd.
Review URL: https://chromereviews.googleplex.com/3561013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@201 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 08:41:38 +00:00
ngeoffray@google.com cb3a9f6641 Add range methods to List. Throw not implemented for now.
Review URL: https://chromereviews.googleplex.com/3573012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@198 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 07:56:42 +00:00
kasperl@google.com c9f9ba04f2 Stop using the old syntax for default argument values in more places.
The code in client/html/generated/ will be regenerated shortly
but for now I want to get to a point where we can remove the
support for the old syntax.

TBR'ed.

R=ngeoffray@google.com
BUG=
TEST=

Review URL: https://chromereviews.googleplex.com/3564013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@193 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 05:46:15 +00:00
vsm@google.com 71197ca222 Package html lib into single (2 for now) files
To generate:
(1) cd into client/html
(2) run: ../tools/copy_dart.py release html.dart

Review URL: https://chromereviews.googleplex.com/3565013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@190 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 02:55:41 +00:00
jacobr@google.com 2af03fc05b Enhanced performance by removing unused UI, reducing the # of absolutely positioned elements thus reducing the # of render layers, and increasing the amount of logic performed using string concat instead of DOM manipulation.
Also added back a bugfix  change I'd thought I'd landed to HTMLDocument,

Added some significant polish and missing features to the keyboard shortcuts
by correctly taking into account that some views may be partially visible.

New hotness available at:
http://dart.googleplex.com/jacobr-swarm-js.html

I'm finally not embarrassed by the performance when scrolling between pages of views on the iPad.  Not quite 60fps but close enough to 30fps under the worst conditions scrolling horizontally.

BUG=
TEST=

Review URL: https://chromereviews.googleplex.com/3543015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@165 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 22:15:50 +00:00
arv@google.com 21cc2799ec Dart DOM: Add Element attributes setter
BUG=None
TEST=None

Review URL: https://chromereviews.googleplex.com/3526016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@143 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 18:48:23 +00:00
floitsch@google.com 15727ed074 Rename DateTime to Date.
Review URL: https://chromereviews.googleplex.com/3529013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@107 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 10:14:49 +00:00
arv@google.com f5de883b77 Dart DOM: Implement dataAttributes Map.
BUG=None
TEST=None

Review URL: https://chromereviews.googleplex.com/3536014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@83 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-05 23:32:35 +00:00
arv@google.com 3501cc95ce Dart DOM: Rename query to queryAll and queryOne to query.
BUG=None
TEST=None

Review URL: https://chromereviews.googleplex.com/3517023

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@77 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-05 22:19:09 +00:00
arv@google.com 57051017bd Revert "Add Element data property"
This reverts commit r71.

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@74 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-05 21:43:54 +00:00
arv@google.com 515c527ecd Dart DOM: Fix syntax error.
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@73 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-05 21:43:42 +00:00
arv@google.com 1e650a0e64 Add Element data property
BUG=None
TEST=None

Review URL: https://chromereviews.googleplex.com/3512017

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@71 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-05 20:40:39 +00:00
dgrove@google.com 4bc64b8c2b Initial checkin.
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-05 04:52:33 +00:00