1047 Commits

Author SHA1 Message Date
Hixie
e5500c19ac Specs: update elements.md to define List-based APIs in terms of Node-based APIs, and finish dartification of modules.md (and do Document->Root there)
Review URL: https://codereview.chromium.org/926733002
2015-02-13 14:07:34 -08:00
Adam Barth
5b9e4a9fbd Port all of Sky's editing tests to Dart
R=eseidel@chromium.org, ojan@chromium.org

Review URL: https://codereview.chromium.org/921123002
2015-02-13 13:54:49 -08:00
Adam Barth
d1d6e4436d Make sky/tests/services/event-sender.sky pass
This CL ports sky/framework/shell.sky to Dart and makes event-sender.sky. I've
also removed a number of not-that-interesting tests for the JS Mojo bindings.

R=eseidel@chromium.org, rafaelw@chromium.org

Review URL: https://codereview.chromium.org/922123002
2015-02-13 13:52:08 -08:00
Adam Barth
7d9b6f1b8f Delete Sky tests that we're not going to run with Dart
This CL removes a number of tests that we don't plan to port to Dart:

1) custom-elements. We're going to use a different mechanism for custom
   elements. We'll need to write a new set of tests as we implement it.
2) inspector. These are tests of the JS inspector backend, which we don't
   plan to use.
3) js. This is a test of a JavaScript feature.
4) mocha. These are tests of the JavaScript testing framework we were using.
5) mutation-observer. We're keeping the C++ code for mutation observers, but
   it's unclear how we want to expose this in the platform.
6) resources. These are JavaScript-based testing frameworks.

R=eseidel@chromium.org, ojan@chromium.org

Review URL: https://codereview.chromium.org/920343002
2015-02-13 13:51:26 -08:00
Hixie
3a8d8b3a2a Specs: add TODO for renaming insertBefore; rename appendSingle()
Review URL: https://codereview.chromium.org/922113003
2015-02-13 11:17:52 -08:00
Hixie
d9dd8b1280 Specs: Drop @nonnull from dom.md, drop ChildNode from dom.md, drop TreeRoot from dom.md, other minor idomatic changes
Review URL: https://codereview.chromium.org/927613002
2015-02-13 10:57:14 -08:00
Przemyslaw Pietrzkiewicz
7de4ec3b25 Drop weak_ptr_factory in SkyDebugger.
It seems not to be used for anything.

R=abarth@chromium.org

Review URL: https://codereview.chromium.org/921633006
2015-02-13 18:24:15 +01:00
Adam Barth
07fef4ad25 Add initializeFromShellProxy to application.dart
This CL adds the ability to initialize the Dart Application class with a shell
proxy (rather than with a MojoHandle). This change lets Sky use the Dart
bindings for Mojo.

This CL was reviewed on the SkyDart branch in
https://codereview.chromium.org/919883002/

R=zra@google.com, zra@chromium.org

Review URL: https://codereview.chromium.org/922083002
2015-02-12 23:36:40 -08:00
Adam Barth
2d006b8294 Actually stop Sky from linking with V8
We don't use V8 anymore. There's no reason to link it in.

TBR=eseidel@chromium.org

Review URL: https://codereview.chromium.org/918263003
2015-02-12 21:16:55 -08:00
Adam Barth
52b56750a1 Rename sky/engine/bindings2 to sky/engine/bindings
There's only one bindings system now.

TBR=eseidel@chromium.org

Review URL: https://codereview.chromium.org/915293003
2015-02-12 20:16:17 -08:00
Adam Barth
30de02064c Remove unused V8 integration code in Sky
We don't build this code anymore.

TBR=eseidel@chromium.org

Review URL: https://codereview.chromium.org/922053002
2015-02-12 19:44:16 -08:00
Adam Barth
f2d2e80e59 Merge the Sky Engine changes from the SkyDart branch
This CL flips the switch to make Sky use Dart.

TBR=eseidel@chromium.org
BUG=454613

Review URL: https://codereview.chromium.org/922893002
2015-02-12 15:06:03 -08:00
Eric Seidel
c7d2352897 Add the c++ code part of bindings2/
This is all the bindings-level dart code we had to write
to enable Dart in Sky.  We wrote this over the last 2
weeks in:
https://github.com/eseidel/skydart

R=abarth@chromium.org, jamesr@chromium.org
BUG=454613

Review URL: https://codereview.chromium.org/918333002
2015-02-12 13:42:11 -08:00
Hixie
aa99c2f67b Specs: Implement the Dispatcher classes.
R=abarth@chromium.org

Review URL: https://codereview.chromium.org/919693007
2015-02-12 13:40:35 -08:00
Adam Barth
f22842f3bc skydb shouldn't use origin on Linux
Unfortunately, using --origin on Linux is slow and too painful to use at the
moment. We should work on fixing that, but currently many of us have this in
our local working copy anyway.

R=eseidel@chromium.org

Review URL: https://codereview.chromium.org/922823002
2015-02-12 13:37:50 -08:00
Adam Barth
c6dce9ad07 Add DartController and friends
This CL adds the DartController and associated classes. These classes let you
load and execute dart code.

R=rafaelw@chromium.org
BUG=454613

Review URL: https://codereview.chromium.org/921903002
2015-02-12 13:34:45 -08:00
Adam Barth
128591574e Build sky/engine/tonic
This CL adds a dependency from Sky to DartVM.  We need to remove Sky from the
ASAN build because DartVM doesn't currently build in ASAN (see https://code.google.com/p/dart/issues/detail?id=22121).

R=rafaelw@chromium.org
BUG=454613

Review URL: https://codereview.chromium.org/919463004
2015-02-12 13:18:25 -08:00
Rafael Weinstein
2a5e18ff64 Merge the tonic layer from skydart branch back to master
The tonic layer is analogous to "gin" for v8. It provides wrappers and helpers around common dart types and implements the basic infrastructure for allowing dart wrappers around sky DOM objects to have proper GC behavior.

R=abarth@chromium.org
TBR=eseidel
BUG=

Review URL: https://codereview.chromium.org/924593002
2015-02-12 12:55:01 -08:00
Adam Barth
1ad365c384 Add testing resources from SkyDart branch
These packages come from Dart's pub system. I've removed files specific to dart:html
and updated "package:" imports to use relative URLs.

R=eseidel@chromium.org
BUG=454613

Review URL: https://codereview.chromium.org/921863002
2015-02-12 12:23:10 -08:00
Eric Seidel
c0b8517544 Add a new bindings2/scripts directory for Dart bindings
These bindings were developed over the last 2 weeks on:
https://github.com/eseidel/skydart
They started as copies of the Dartium scripts (aka dart/tools/dom):
https://code.google.com/p/dart/source/browse/#svn%2Ftrunk%2Fdart%2Ftools%2Fdom
Which in turn started as a forked copy of Blink's
binding generation scripts from some years ago.

This is still way more python than we need to generate
bindings for SkyDart, but it's a start.

Reviews were done for many (but not all) of the patches.

I'll add the bindings2/ code and build system wiring
in further patches. Landing the new directories one at a
time so that it's easier to read through.

R=abarth@chromium.org, jamesr@chromium.org
BUG=454613

Review URL: https://codereview.chromium.org/914413004
2015-02-12 12:22:38 -08:00
Adam Barth
82c1ea5adc Remove bindings-dart
This code was a drop from Dartium and isn't used. It will be replaced with code
from the SkyDart branch.

TBR=rafaelw@chromium.org

Review URL: https://codereview.chromium.org/918273002
2015-02-12 10:07:28 -08:00
Hans Muller
47bf46b00e Adds support for embedViewManagerClient() to IFrame.
R=abarth@chromium.org

Review URL: https://codereview.chromium.org/912183002
2015-02-10 17:09:22 -08:00
Hixie
b356b12dcd Specs: First draft of timer API for scheduling things for this frame or next frame or when idle.
(not syntax-checked)

Review URL: https://codereview.chromium.org/909403002
2015-02-10 15:50:08 -08:00
Aaron Boodman
17a6f3ed1a Pass the final URL an app was loaded from to the app in Initialize().
R=davemoore@chromium.org

Review URL: https://codereview.chromium.org/905583002
2015-02-10 13:54:19 -08:00
Hixie
27b44a66a3 Specs: forgot to include this line in my last commit
Review URL: https://codereview.chromium.org/912873002
2015-02-10 11:30:04 -08:00
Hixie
07598155ef Specs: found a way to make @autorun work
Review URL: https://codereview.chromium.org/908263002
2015-02-10 11:29:18 -08:00
Hixie
a644c75898 Specs: Dartification or various odds and ends
Review URL: https://codereview.chromium.org/912653003
2015-02-09 17:03:52 -08:00
Hixie
99be7bd226 Specs: Element registration in the Dart world
Review URL: https://codereview.chromium.org/908983002
2015-02-09 16:10:41 -08:00
James Robinson
50527025ca Update from https://crrev.com/315085
This includes the switch to libc++ on Android.

Other fixes:

*) Add (dumb) impl of OrderingBarrier() to command buffer
*) "base/debug/trace_event.h" -> "base/trace_event/trace_event.h"
*) Added a few <cmath> includes to sky

Review URL: https://codereview.chromium.org/903273002
2015-02-06 15:14:04 -08:00
Hixie
b831167c69 Specs: finishing initial dartification of dom.md
Review URL: https://codereview.chromium.org/909613002
2015-02-06 14:45:57 -08:00
Hixie
7026097310 Specs: dartification of dom.md, more work on script.md; this is highly work-in-progress and hasn't been proofread
Review URL: https://codereview.chromium.org/884713009
2015-02-06 13:06:08 -08:00
Adam Barth
f3c8503dfc Plumb resize notifications around sky/shell
This CL plumbs resize notifications from SkyView to Engine. I've taken the
opportunity to reorganize how notifications generated by SkyView are plumbed to
the GPU and UI threads. This approach should reduce the amount of plumbing
needed for new notifications.

R=eseidel@chromium.org

Review URL: https://codereview.chromium.org/880443003
2015-02-05 20:08:22 -08:00
Ojan Vafai
cf0dbc1012 Add opacity to the layers.sky test.
R=esprehn@chromium.org

Review URL: https://codereview.chromium.org/883903003
2015-02-06 14:27:24 +11:00
Ojan Vafai
effdf28e11 Remove position:relative.
The use-cases we care about are met better by translate2d.
Remove the parsing so that people writing on sky don't
depend on it. Followup patches will remove the functionality.

R=esprehn@chromium.org

Review URL: https://codereview.chromium.org/904613005
2015-02-06 12:46:04 +11:00
Ojan Vafai
6ee8440f27 Walk render tree instead of render layers for paint.
This is the first step of getting rid of RenderLayer.
Instead of walking the RenderLayer tree, wall the RenderObject
tree and add any layers encountered to a vector to paint later.

This patch just consolidates and move the code from RenderLayer
to RenderBox and then changes the children painting to
iterate over the vector. Therefore we walk the RenderObject tree.
We still call out to RenderLayer in a bunch of places.
A followup patch will get rid of those.

R=esprehn@chromium.org

Review URL: https://codereview.chromium.org/899753003
2015-02-06 11:38:25 +11:00
Hixie
c642550809 Specs: dartification of modules.md (incomplete)
Review URL: https://codereview.chromium.org/904793002
2015-02-05 16:00:20 -08:00
Hixie
0974ce9303 Specs: markdown fixes (though really, I should find a better way to style this)
Review URL: https://codereview.chromium.org/879243008
2015-02-05 13:50:59 -08:00
Hixie
05dd39cab9 Specs: improve a hyperlink to the keyboard.md spec in the pointer.md spec
Review URL: https://codereview.chromium.org/877783008
2015-02-05 13:49:45 -08:00
Hixie
d2361c62aa Specs: markdown fixes
Review URL: https://codereview.chromium.org/884243009
2015-02-05 13:47:12 -08:00
Hixie
4d62bf8723 Specs: dartification of script.md
Review URL: https://codereview.chromium.org/878453003
2015-02-05 13:44:46 -08:00
Hixie
d1efb43aeb Specs: dartification of gestures; move GestureManager from ApplicationDocument to Application; actually support bubbling
Review URL: https://codereview.chromium.org/901493005
2015-02-05 13:28:33 -08:00
Adam Barth
1f8dd823f9 sky/shell should link with sky/engine
This CL causes sky/shell to create a blink::WebView to show that sky/shell
links with sky/engine. In the process, I've made it easier to be a trivial
embedder of sky/engine by removing the requirement to implement
blink::ServiceProvider.

This CL also causes sky/shell to link with mojo/edk/system to resolve link
errors with Mojo fabric (e.g., MojoClose, MojoWriteMessage, etc). To make this
work properly, we'll need to initialize the EDK in a future CL.

R=eseidel@chromium.org

Review URL: https://codereview.chromium.org/873923003
2015-02-04 19:31:17 -08:00
Scott Violet
089066f249 Adds src to the list of attributes known for iframes
This way I stop getting warnings about an unknown attribute.

R=esprehn@chromium.org

Review URL: https://codereview.chromium.org/899133002
2015-02-04 15:38:59 -08:00
Hixie
bf222d3ae8 Specs: dartification of pointer and wheel events
Review URL: https://codereview.chromium.org/872993007
2015-02-04 11:03:30 -08:00
Hans Muller
978c0ca165 Extend the sky color picker example
Displays the last six selected colors.

BUG=
R=abarth@chromium.org

Review URL: https://codereview.chromium.org/897683002
2015-02-04 09:30:47 -08:00
Tony Gentilcore
2c277b5653 Fix render bounds of iframes on devices with a pixel ratio != 1.
BUG=
R=abarth@chromium.org

Review URL: https://codereview.chromium.org/896233002
2015-02-04 08:57:10 -08:00
Ojan Vafai
8ef2ac27aa Add some basic test coverage for layers.
Add a basic pixel test for z-index, transforms and clip-path.

R=esprehn@chromium.org

Review URL: https://codereview.chromium.org/884503003
2015-02-04 13:55:20 +11:00
Hixie
825fce471f Specs: dartify events spec
Review URL: https://codereview.chromium.org/900713002
2015-02-03 14:20:50 -08:00
Ojan Vafai
b139ec4316 Delete remaining masks dead code.
Removes the straggling code related to masks now that
we've removed the CSS properties.

R=esprehn@chromium.org

Review URL: https://codereview.chromium.org/893093002
2015-02-03 13:56:34 +11:00
James Robinson
5e5c074826 De-client tracing.TraceController interface
The tracing service logically provides one service, TraceCoordinator, which can
start and stop tracing sessions. It also can connect to any number of
TraceControllers each of which can supply tracing information on demand.

Whenever an app connects to the tracing service, the tracing service attempts to
connect to that app's TraceController interface. If the app provides this
interface then tracing data will be requested whenever tracing starts. If the
app doesn't, then the pipe just closes. Thus apps that want to be traced can do
so by creating however many connections to the tracing service they want and
registering a TraceController implementation on each outgoing connection.

The shell connects in a similar fashion by connecting to the tracing service and
providing a TraceController implementation. The code looks a bit different since
the shell is special.

BUG=451319
R=viettrungluu@chromium.org

Review URL: https://codereview.chromium.org/791493006
2015-02-02 16:56:34 -08:00