Commit Graph

31 Commits

Author SHA1 Message Date
efortuna@google.com 742e1ffcbe Rename XMLHttpRequest to HttpRequest.
Review URL: https://chromiumcodereview.appspot.com//10823352

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11070 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 16:39:35 +00:00
vsm@google.com 8aea752058 Don't auto-send credentials on XHR.get
I've introduced an alternative XHR.getWithCredentials to make this an
explicit opt-in.

BUG=4481

Review URL: https://chromiumcodereview.appspot.com//10831314

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10683 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-14 22:10:59 +00:00
vsm@google.com 3fedf84a1f Cleanup queryAll to return List<Element>.
BUG=3867
TEST=html/queryall-test.dart

Review URL: https://chromiumcodereview.appspot.com//10806016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9784 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-20 17:08:53 +00:00
sra@google.com 7b24c8ac90 Add MutationObserver constructor
Add custom MutationObserver.observe method

The observe method supports configuration by dictionary and optional arguments:

observer.observe(node, {'subtree': true});
observer.observe(node, subtree: true);

If both are given, they are merged.

Review URL: https://chromiumcodereview.appspot.com//10696209

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9752 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-19 02:16:09 +00:00
vsm@google.com 9323a6d742 Add registerPort / lookupPort to generated interfaces with documentation
Note, the implementations are already there in Dartium and Dart2JS.
This will make the APIs show up in the Editor and dartdoc.

Review URL: https://chromiumcodereview.appspot.com//10689150

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9537 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-10 23:54:37 +00:00
vsm@google.com f7011b8730 Some HTML API cleanup
This CL adds:

- A context2d getter to CanvasElement.
- A top-level query method.
- A top-level queryAll method.

TEST=query_test, canvas_test

Review URL: https://chromiumcodereview.appspot.com//10544111

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8591 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-13 03:01:04 +00:00
sra@google.com 161d21ec06 indexedDB work
Make string 'mode' argument to IDBDatabase.transaction work on older browsers.

Make window.indexedDB available.  Does not yet work of Firefox for other
reasons.

Add interface IDBOpenDBRequest.  IDBFactory.open returns this in the most recent spec, and is implemented by Firefox.

Next, I will try to use the new event kinds on IDBOpenDBRequest to get Firefox to open a database.

Review URL: https://chromiumcodereview.appspot.com//10540016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8369 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-06 23:19:36 +00:00
podivilov@google.com 005cdb4959 Fix NodeSelector interface.
R=antonm@google.com

Review URL: https://chromiumcodereview.appspot.com//10536006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8281 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-05 14:24:59 +00:00
podivilov@google.com de9c46909b Cleanup NodeSelectors.
Currently, query and queryAll methods generation in dart:html is somehow affected by a combination of the following factors:
1) Document, DocumentFragment, and Element are declared to inherit from NodeSelector interface in dart.idl
2) NodeSelector methods for some of these interfaces are present in_private_html_members, but not all, resulting in generation of $dom_* variants
3) querySelector is renamed to query via _html_library_renames for all interfaces except for Document
4) Some of these methods and their private variants have custom implementations in impl_*.darttemplate's

This patch aims to simplify that logic.

R=jacobr@google.com,sra@google.com

Review URL: https://chromiumcodereview.appspot.com//10447091

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8240 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-04 09:34:20 +00:00
sra@google.com 4b4991d659 Revert "Revert "Rework Element constructors""
This CL is r8182 plus some other bug fixes to get to green.

The main change is that the first parent of an interface could be a
pure interface.  In that case, it should be treated as a secondary parent
interface, not as the primary implementation inheritance parent.

Review URL: https://chromiumcodereview.appspot.com//10443122

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8184 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-01 07:14:14 +00:00
sra@google.com b4b0bae90d Revert "Rework Element constructors"
Review URL: https://chromiumcodereview.appspot.com//10451105

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8183 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-01 04:25:29 +00:00
sra@google.com 3614cf1500 Rework Element constructors
It turns out we want different types in the frog vs dartium bodies.
We want the implementation type for frog to help with live type analysis.
We can't use the only slightly less general interface type because the language mandates a warning.

So we now generate the factory constructors for each implementation system rather than once for the interfaces system.

I also extended the mechanism to handle multiple element constructors
and used it to generate HeadingElement.h1() through
HeadingElement.h6()

Review URL: https://chromiumcodereview.appspot.com//10442125

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8182 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-01 03:44:47 +00:00
sra@google.com 35eabb7293 Revert "Revert "Add cancelAnimationFrame""
Fix timeout polyfill.

Review URL: https://chromiumcodereview.appspot.com//10448020

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7979 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-25 05:48:28 +00:00
sra@google.com 8045d05d2f Revert "Add cancelAnimationFrame"
Review URL: https://chromiumcodereview.appspot.com//10450033

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7978 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-25 05:38:13 +00:00
sra@google.com 77f7a18db4 Add cancelAnimationFrame
Review URL: https://chromiumcodereview.appspot.com//10454031

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7977 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-25 05:14:23 +00:00
sra@google.com 31ab9dec79 Element constructors
Elements with distinct types can now be constructed directly.

Example:
  var div = new DivElement();

There are many elements that cannot be created this way.  For example, the <b>bold</b> element is simply a HTMLElement with styling, not a separate subclass of HTMLElement.

Review URL: https://chromiumcodereview.appspot.com//10384024

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7921 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-23 19:25:17 +00:00
sra@google.com c14588e1ef Add IDBKeyRange to dart:html, port two indexeddb tests
Review URL: https://chromiumcodereview.appspot.com//10378004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7310 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-04 00:09:24 +00:00
sra@google.com 31b413e555 Revert "Add IDBKeyRange to dart:html, port two indexeddb tests"
Review URL: https://chromiumcodereview.appspot.com//10382002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7309 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-04 00:03:29 +00:00
sra@google.com 098a27d1af Add IDBKeyRange to dart:html, port two indexeddb tests
... with .status fixes

Review URL: https://chromiumcodereview.appspot.com//10375004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7308 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-03 23:54:30 +00:00
sra@google.com 21b2c6302a Revert "Add IDBKeyRange to dart:html, port two indexeddb tests"
Review URL: https://chromiumcodereview.appspot.com//10378003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7307 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-03 23:44:28 +00:00
sra@google.com 6defeeb156 Add IDBKeyRange to dart:html, port two indexeddb tests
Review URL: https://chromiumcodereview.appspot.com//10352021

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7306 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-03 23:28:18 +00:00
vsm@google.com 94344cd762 Rename getTEMPNAME to get
BUG=2584
TEST=xhr_test.dart

Review URL: https://chromiumcodereview.appspot.com//10291006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7212 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-02 04:20:45 +00:00
vsm@google.com 6482916705 Add AudioElement constructor to dart:html
BUG=2517
TEST=dom/audiocontext_test.dart

Review URL: https://chromiumcodereview.appspot.com//10257022

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7111 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-27 23:18:34 +00:00
sra@google.com c809a98b54 Browser compat for window.requestAnimationFrame
Review URL: https://chromiumcodereview.appspot.com//10166024

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6824 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-21 19:38:23 +00:00
sra@google.com 18554fa4de Revert "Browser compat for window.requestAnimationFrame"
This reverts commit 5ce95ee727ce46bb0381926bba21335a1eff7443.

Review URL: https://chromiumcodereview.appspot.com//10161018

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6823 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-21 19:03:26 +00:00
sra@google.com e6c9d7df7f Browser compat for window.requestAnimationFrame
Review URL: https://chromiumcodereview.appspot.com//10161014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6822 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-21 18:14:45 +00:00
jacobr@google.com af8e09788d Fix ApiDoc to work with new dart:html code. Tweak dart:html generator to generate clearer @domName annotations.
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//10068019

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6505 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-13 09:27:20 +00:00
nweiz@google.com 6cabc53f79 Make Storage implement Map.
Review URL: https://chromiumcodereview.appspot.com//9956076

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6117 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-02 22:51:57 +00:00
jacobr@google.com f68c5edb14 Fix issue http://code.google.com/p/dart/issues/detail?id=1877 without degrading performance. Improved performance by removing harmful caching logic.
BUG=1877
TEST=

Review URL: https://chromiumcodereview.appspot.com//9930008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6015 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-30 01:00:08 +00:00
jacobr@google.com dd9bdb5ece dart:html perf optimization based on runing Dromaeo benchmarks
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//9732019

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5955 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-28 22:23:39 +00:00
dgrove@google.com 7d558789d6 Rename client/{dom,html} to lib/{dom,html} .
Review URL: http://codereview.chromium.org//9845043

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5840 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-26 16:29:54 +00:00