337 Commits

Author SHA1 Message Date
Ian Hickson
5cd78908c2 Merge pull request #2431 from Hixie/null-core-types-toString
Make Offset, Point, and Size more resilient
2016-02-26 21:38:15 -08:00
Hixie
76ed6dafb7 Revert "Merge pull request #2428 from johnmccutchan/embedder_yaml"
This reverts commit ccd1c5ce1f49c763f9fbce24ad087b46083e4af0, reversing
changes made to d4f97e4fd143b075b52269e22098339941525d8e.

This was requested by @johnmccutchan because this change broke the
analyzer, which only uses SDK version 1.14.1, since that's what we pull
in. He said he'd try again on Monday.
2016-02-26 18:23:11 -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
John McCutchan
ac33584da0 Add _embedder.yaml to sky_engine 2016-02-26 11:02:35 -08:00
Adam Barth
d2ab5b4422 Update Skia 2016-02-25 10:47:09 -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
Adam Barth
8111a77f73 Remove ServiceRegistry
We don't need this anymore now that we have Mozart.
2016-02-18 16:09:58 -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
John McCutchan
319863f7e9 Merge pull request #2355 from rmacnak-google/error-missing-entry
Fix-up tree-shaking entry points. Toward making missing entry points …
2016-02-08 10:08:57 -08:00
Jason Simmons
7980c7fc5c Roll Dart to 1.14.1 2016-02-04 14:05:55 -08:00
Ryan Macnak
6ec57b450f Fix-up tree-shaking entry points. Toward making missing entry points an error. 2016-02-04 13:32:09 -08:00
Adam Barth
aec7d422e7 Pass the Mozart ViewHost into Dart
Dart needs access to the ViewHost in order to create child views.
2016-02-03 14:39:45 -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
5908970756 Update Skia version 2016-01-27 12:21:26 -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
Jason Simmons
50bdfd2f86 Dart/JNI: improve Java method lookup
Add more rules to determine which overloaded Java method should be invoked
for a given Dart call.  In particular, check whether the class of a
Dart-wrapped Java object matches the type declared for the corresponding
argument in the Java method.
2016-01-25 16:51:09 -08:00
Jason Simmons
57ec43971e Merge pull request #2283 from jason-simmons/jni_reflection_wrapper
Dart/JNI: reflection-based wrapper for the raw JNI API
2016-01-25 10:41:37 -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
Jason Simmons
80547a2d2a Dart/JNI: reflection-based wrapper for the raw JNI API
Example:
  JavaClass dateFormatClass = Java.getClass('java.text.SimpleDateFormat');
  JavaObject format = dateFormatClass.newInstance('yyyy.MM.dd');
  print(format.parse('2016.01.01').getYear());
2016-01-22 16:27:36 -08:00
Adam Barth
8b4d246edf Merge pull request #2280 from abarth/window_insets
Improve handling of window insets on Android
2016-01-21 11:34:50 -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
Jason Simmons
2ea1692e7d Dart/JNI: support all field and array data types 2016-01-20 10:41:37 -08:00
Jason Simmons
80f7338602 Fix Dart/JNI string conversion to treat the data as UTF-16 2016-01-19 12:26:01 -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