272 Commits

Author SHA1 Message Date
Adam Barth
95b5d5dfa8 Update uses of Mojo to new interfaces 2016-03-02 14:14:55 -08:00
Jason Simmons
41f93f4099 Rename DOMDartState to UIDartState 2016-03-02 10:47:30 -08:00
Jason Simmons
d474e9d2b6 Merge pull request #2439 from jason-simmons/isolate_mojo_services
Implement support for invoking Mojo services from secondary isolates
2016-03-02 10:04:03 -08:00
Adam Barth
8dbd1c1498 Merge pull request #2443 from abarth/rect_radius
Add Rect.fromCircle
2016-03-01 13:06:31 -08:00
Adam Barth
6ccfff2653 Add a license header to RRect.dart
Fixes https://github.com/flutter/flutter/issues/1502
2016-03-01 12:55:01 -08:00
Adam Barth
6bf2152a6b Add Rect.fromCircle
As requested.
2016-03-01 11:12:48 -08:00
Adam Barth
0b6fd31fc3 Merge pull request #2441 from abarth/with_opacity
Add Color#withOpacity
2016-03-01 10:47:22 -08:00
Adam Barth
72ab486c82 Add Color#withOpacity
Fixes https://github.com/flutter/flutter/issues/2277
2016-03-01 10:38:52 -08:00
Adam Barth
b4a78ad86c Add new Size.fromRadius()
Fixes https://github.com/flutter/flutter/issues/2275
2016-03-01 10:30:34 -08:00
John McCutchan
08d1ea32b3 Allow service protocol tests to run against sky_shell 2016-03-01 09:00:30 -08:00
Jason Simmons
0ede7dded8 Implement support for invoking Mojo services from secondary isolates 2016-02-29 16:20:27 -08:00
Hixie
c630023887 Make Offset, Point, and Size more resilient
Turns out you can create these with null values, so toString() shouldn't
assume the values aren't null.
2016-02-26 17:51:45 -08:00
Jason Simmons
320d8e012b Merge pull request #2421 from jason-simmons/isolate_spawn
Support spawning new Dart isolates from within a Flutter app
2016-02-24 17:24:11 -08:00
Jason Simmons
470118b0de Support spawning new Dart isolates from within a Flutter app 2016-02-24 14:59:59 -08:00
Adam Barth
09e87f5865 Enable background compilation by default
We've been enabling it in the flutter tool for a while. This patch enables by
default in general.
2016-02-24 14:55:58 -08:00
Hixie
53fff165c7 Trivial dartdoc typo fixes for Canvas 2016-02-23 08:30:22 -08:00
Chinmay Garde
ab145b1fa9 Update the Dart VM and wire in the extra kDataSnapshot symbol for the precompiler 2016-02-19 16:48:28 -08:00
James Robinson
1a0f9670b0 Enable building for Android using clang for target builds 2016-02-19 14:07:57 -08:00
Jason Simmons
e79f0be909 Merge pull request #2402 from jason-simmons/font_custom_load
Support loading of custom fonts
2016-02-19 10:11:10 -08:00
Adam Barth
67b11a6c6e Remove Dart entry point for ServiceRegistry
We don't use this entry point anymore.
2016-02-19 10:03:18 -08:00
Jason Simmons
0b8038fa1e Support loading of custom fonts
The FLX will contain a font manifest JSON file that maps font family names
to custom font assets.  Flutter will provide a FontSelector that loads
fonts on demand and caches typeface and style data.
2016-02-17 12:07:22 -08:00
Adam Barth
e0c9e3a94f Add a toString to ui.Image
Fixes #1866
2016-02-13 19:41:55 -08:00
Adam Barth
9dae74e97b Remove dart:ui_internals
This patch merges these functions into dart:ui, which is simpler.

Fixes #83
2016-02-12 22:44:20 -08:00
Adam Barth
b09cd543bd Add an off-by-default flag for background compilation 2016-02-12 16:01:18 -08:00
John McCutchan
d089e76e24 Enable and test sky_shell --start-paused 2016-02-10 14:39:52 -08:00
John McCutchan
c9cdcf4ebb Revert "Use tonic's message handler that supports pause on start and exit"
This reverts commit c0a61a0332c4c1a53ae8409d7489e35304e1bcaa.
2016-02-10 11:49:33 -08:00
John McCutchan
c0a61a0332 Use tonic's message handler that supports pause on start and exit 2016-02-10 09:49:50 -08:00
Chinmay Garde
c7de490b93 Update flag passed in during VM initialization to account for updates in dart-lang/sdk 2016-02-09 14:17:29 -08:00
John McCutchan
c76877487d Fix Observatory 2016-02-09 09:25:52 -08:00
Chinmay Garde
930bfee5dc Wire in the device observatory port while initializing the Dart VM 2016-02-08 15:43:12 -08:00
Jason Simmons
7980c7fc5c Roll Dart to 1.14.1 2016-02-04 14:05:55 -08:00
Devon Carew
3c83f895ed some work towards a --start-paused flag 2016-02-02 11:44:01 -08:00
Adam Barth
c3c5af1fbe Move Flow layers to //flow/layers 2016-01-30 23:35:22 -08:00
Adam Barth
21d7575716 Add Paragraph#getPositionForOffset
We'll use this function to position the caret when the user taps a text
input control.

Very little of the code in this patch is actually new. Most of it is
restoring code that we previously removed from the engine. I've made
some small changes to the restored code to handle the lack of a DOM. The
only major change is to RenderObject::createPositionWithAffinity, which
now just returns the values it captures instead of trying to compute a
DOM position.

TextAffinity and TextPosition are lifted from package:flutter. Once this
patch rolls into package:flutter, I'll remove the declarations there.
2016-01-29 23:07:51 -08:00
Adam Barth
88add25212 Add the TextDirection to getRectsForRange
We need this in order to draw the cursor correctly.

Fixes #1491
2016-01-29 21:12:45 -08:00
Adam Barth
4fe584c757 Revert "Update the DartVM"
This reverts commit 3e7cf0b74e5b49ac7a92fa34e4c4117ea871b3da.
2016-01-29 13:38:32 -08:00
Adam Barth
3e7cf0b74e Update the DartVM 2016-01-29 12:39:29 -08:00
Adam Barth
153c93e8db Introduce TextBox
TextBox is a rect that understands TextDirection.
2016-01-29 12:05:16 -08:00
Adam Barth
9b6698f162 Add getRectsForRange to Paragraph
We can use getRectsForRange to implement selection painting in the
framework.
2016-01-29 01:39:47 -08:00
Adam Barth
215b19e3fc Add the ability to create child scenes
This patch contains Dart bindings for adding a child scene when running in
Mozart. The child scene is currently ignored, but a later patch will actually
incoporate it into the tree.
2016-01-28 16:08:42 -08:00
Adam Barth
9ee9721b1b Revert "Update DartVM"
This reverts commit ca0342acd20bf2beeeb02bf147fe0071ce5ada65.
2016-01-28 11:19:32 -08:00
Adam Barth
ca0342acd2 Update DartVM 2016-01-27 12:34:17 -08:00
Adam Barth
c3a78a1796 Remove dependencies on ui/gfx/geometry
We have enough geometry classes kicking around. We don't need the
ui/gfx/geometry types too.
2016-01-26 23:57:20 -08:00
Adam Barth
f7731bbdd2 Switch whitespace mode back to pre-wrap
When we removed position: sticky, we introduced a subtle line breaking
bug to pre-wrap that would cause whitespace to accumulate at the
beginning of lines that follow unclean breaks. This patch adds back the
deleted code (cleansed of the position sticky bits).
2016-01-25 00:03:08 -08:00
Adam Barth
33d7553e39 Improve handling of window insets on Android
Now that we understand window insets, we don't need to hard-code the size of
the status bar. Also, convert the viewport metrics to be consistently in
physical pixels.
2016-01-21 11:24:17 -08:00
Adam Barth
4888996b1b Clean up DartInvoke
Remove the non-initializer version of DartInvokeAppClosure and rename
the function to the simpler DartInvoke. Also, add a special case for
DartInvokeVoid to make the callers prettier.
2016-01-18 20:47:47 -08:00
Adam Barth
c04b57b27a Remove FromArgumentsWithNullCheck
We use FromArguments everywhere now.
2016-01-18 20:47:47 -08:00
Adam Barth
c9cf1f3b95 Remove integration between tonic and WTF::Vector
There's no reason to use WTF::Vector here over std::vector.
2016-01-18 20:47:47 -08:00
Adam Barth
0140555b54 Remove integration between tonic and WTFString
We used to share memory between Dart strings and WTF::String objects by
way of the Dart externalized strings. That used to be important when the
DOM shared many strings between C++ and Dart. However, now that we don't
retain strings in C++ much anymore, we don't need this complexity.

This patch removes DartStringCache and the integration. It also unwinds
several cases where we were converting back and forth between
WTF::String and std::string for no reason. Now we use std::string more
consistently.

For the case of ParagraphBuilder::addText, we now take a raw const
char*, which more closely matches the API the DartVM exposes. That means
we do a single copy out of the VM and into the render tree at that
point.
2016-01-18 20:47:46 -08:00
Adam Barth
1f4416f87b Move microtask queue into tonic
Moving the microtask queue into tonic solves three problems:

1) Removes three levels of indirection when invoking microtask
callbacks.
2) Removes the sky/engine/dom directory entirely.
3) Removes the last client of the (inefficient) DartValue class.
2016-01-18 16:59:52 -08:00