2296 Commits

Author SHA1 Message Date
Ian Hickson
8b37dd7526 Add equality to textStyle and co 2016-01-08 09:10:53 -08:00
Jason Simmons
e75a0cb4aa Merge pull request #2224 from jason-simmons/jni_binding
Initial work toward exposing the Java native interface APIs in Dart
2016-01-07 15:27:46 -08:00
Jason Simmons
a9c22e9d8c Initial work toward exposing the Java native interface APIs in Dart 2016-01-07 15:06:35 -08:00
Seth Ladd
a863e4c8b0 Update name and link 2016-01-07 13:22:41 -08:00
Matt Perry
c2c9df5f87 Bump sky services version to 0.0.76 2016-01-07 15:50:31 -05:00
Matt Perry
6ecb8aaa12 Initial support for the Google Cloud Messaging API.
New gcm mojo service with Android implementation.

Temporarily checking into flutter repo until it's easier to add third
party services.
2016-01-07 15:00:19 -05:00
Adam Barth
ebe379ebcd Merge pull request #2220 from abarth/add_canvas_transform
Introduce Canvas.transform
2016-01-07 11:17:49 -08:00
Adam Barth
83351fa445 Introduce Canvas.transform
Canvas.transform is the same as Canvas.concat, just with a better name.

Fixes #1080
2016-01-07 10:53:46 -08:00
Jason Simmons
d5992106dd Include the class name in the IMPLEMENT_WRAPPERTYPEINFO macro expansion
This allow multiple uses of IMPLEMENT_WRAPPERTYPEINFO within a source file
2016-01-07 10:49:09 -08:00
Jason Simmons
443ba0759e Add Tonic macros for dispatching to static methods
DartArgIterator was starting at argument index 1 because it assumed that the
arguments include a pointer to the "this" object for an instance method.
DART_REGISTER_NATIVE makes the same assumption in the argument count.

This change adds versions of the macros that are suitable for static methods
with no implicit arguments.
2016-01-06 15:07:50 -08:00
Adam Barth
72c87f2722 Add direct wrappers to tonic
Instead of using a C++ object as a peer to the Dart wrapper, these wrapper hold
arbitrary data in the internal field of the Dart wrapper.
2016-01-06 11:45:26 -08:00
Chinmay Garde
a59456d63c Initialize the global dart library natives separately and outside the isolate create callback 2016-01-04 16:53:19 -08:00
Hixie
68e757f4ac rev engine 2016-01-04 13:49:33 -08:00
Chinmay Garde
1f783d5787 Merge pull request #2192 from chinmaygarde/master
Update Skia revision
2016-01-04 13:35:27 -08:00
Collin Jackson
0d4185b4f6 Fix typo in application identifier 2016-01-04 12:21:13 -08:00
Adam Barth
241fc21055 Don't destory the engine when detaching from the window
Reading the Android docs, it sounds like an android.view.View can re-attach to
the window after detaching. Previously, we destroyed the engine when we
detached from the window. Now we wait for the activity to be destroyed.

Hopefully fixes #997
2016-01-04 10:39:09 -08:00
Chinmay Garde
47c97a2075 Update Skia revision 2016-01-04 10:20:52 -08:00
Ian Hickson
81f56588dc Implement wordSpacing and per-inline lineHeight.
Change line-height to use percentages rather than pixels.
2015-12-30 12:00:33 -08:00
Adam Barth
2e274281b2 Unhook packages/material_design_icons from the build
We don't have any use for this symlink in the out directory anymore.
This patch lets us remove our fork of build/symlink.py.
2015-12-29 23:07:32 -08:00
Adam Barth
b4377c93dd Remove RuntimeEnabledFeatures
This complex machinery made sense for Blink, which has hundreds of
developers. In our case, we're just moving around two bools. We can do
that in a much simpler way.
2015-12-29 22:27:18 -08:00
Adam Barth
96e66145e9 Merge pull request #2206 from abarth/rm_dead_platform_code
Remove dead code from engine/platform
2015-12-29 22:01:19 -08:00
Adam Barth
c2a5c65572 Remove dead code from engine/platform
Highlights include:
 - A Base64 encoder/decoder
 - A JSON encoder/decoder
 - A JPEG and a PNG encoder
2015-12-29 21:39:16 -08:00
Adam Barth
0633830c55 Remove the last remnants of CSS
This patch also lets us remove FontFamilyNames, which is one of two
remaining clients of jinja2.
2015-12-29 21:20:10 -08:00
Adam Barth
6c5fc73d77 Remove IDL compiler
We no longer use IDL.
2015-12-29 20:12:26 -08:00
Adam Barth
0f23213486 Fully detach the IDL compiler from the build
Prior to this patch, we were still using it to generate dart_ui.dart.
We'll eventually want to reorganize the dart files in the engine. See
https://github.com/flutter/flutter/issues/1040 for some discussion.
2015-12-29 19:52:27 -08:00
Adam Barth
c5fee9d9b8 Remove unused C++ code
This code was referenced by the IDL compiler, which we no longer use.
2015-12-29 11:02:36 -08:00
Adam Barth
03e3948828 Remove Path.idl
This patch removes the last IDL file from the build and unhooks the bulk
of the IDL compiler from the build system. A later patch will actually
delete the IDL compiler.
2015-12-29 00:41:30 -08:00
Adam Barth
b714feca62 Remove IDL from Canvas and related interfaces
After this patch, Path is the only interface using IDL.
2015-12-29 00:21:14 -08:00
Adam Barth
2e693b1750 Remove IDL from Shader subclasses
- Gradient
- ImageShader
2015-12-28 23:02:22 -08:00
Adam Barth
398e0c89de Remove IDL for ColorFilter and MaskFilter 2015-12-28 22:14:04 -08:00
Adam Barth
3288499017 Remove IDL for DrawLooper-related interfaces 2015-12-28 21:54:40 -08:00
Adam Barth
cd01826488 Remove Drawable interface
We didn't end up using this interface. Instead, we use trees of
Pictures.
2015-12-28 19:50:42 -08:00
Ian Hickson
58246595ed Fix bustage by adding a DartConverter<unsigned long>.
Also, update a comment to explain why unsigned long long is special.
2015-12-28 11:21:24 -08:00
Adam Barth
bd3a181dac Remove IDL from engine/core/text
Instead, use our new template magic.
2015-12-25 20:31:51 -08:00
Adam Barth
ca934cf956 Reduce the boilerplate when creating bindings
Instead, use C++ template to generate the callback trampolines and the
registration block.
2015-12-24 01:43:56 -08:00
Adam Barth
e3c12b1daa Remove IDL from engine/core/compositing
Rather than using IDL code generation, we now use some template magic to
generate this code. No all the code is template-generated yet, but this
patch is a start in that direction.
2015-12-24 00:13:09 -08:00
Chinmay Garde
514aa0a69f Add iOS implementations for MediaPlayer volume and looping setters 2015-12-16 14:59:17 -08:00
Chinmay Garde
15e4f080ac Merge pull request #2190 from chinmaygarde/master
Revert "Roll Skia"
2015-12-16 14:25:33 -08:00
Chinmay Garde
31889995c4 Revert "Roll Skia"
This reverts commit eeafe3a576d7f647b347ba9e8de6f2af6c565cca.
2015-12-16 14:18:58 -08:00
Jason Simmons
07948337d9 rev engine 2015-12-16 10:53:54 -08:00
Jason Simmons
e55cf62694 Provide callbacks for activity pause and resume events 2015-12-15 18:01:36 -08:00
Jason Simmons
0cca3dd352 Merge pull request #2186 from jason-simmons/sound_track_volume
Add MediaPlayer methods for volume and looping
2015-12-15 12:24:04 -08:00
Jason Simmons
8883ada7d6 Check the image decoder's failed flag after obtaining the frame buffer
Some decoders (e.g. JPEG) do not execute the decode until the call to
frameBufferAtIndex.  If the decode fails, we should not try to return a
bitmap.
2015-12-15 11:15:00 -08:00
Jason Simmons
04ff30d78b Add MediaPlayer methods for volume and looping 2015-12-15 10:48:00 -08:00
Jason Simmons
50df877592 rev engine 2015-12-14 16:58:03 -08:00
Jason Simmons
784fe3dd0b Revert to libjpeg_turbo
We had switched to libjpeg, but libjpeg was failing to decode images when
built with the defines in our .gn files
2015-12-14 16:48:49 -08:00
Jason Simmons
663cc31668 rev engine 2015-12-14 10:44:44 -08:00
Jason Simmons
d9b4f66dd1 In SoundPool, have the client provide stream IDs so future API calls aren't gated on completion of Play()
Also use an array to represent channel volumes instead of assuming two channels
2015-12-14 10:37:14 -08:00
Hixie
2e2423e8e5 rev engine 2015-12-11 17:51:04 -08:00
Chinmay Garde
cd9be85af7 Merge pull request #2175 from chinmaygarde/master
Switch snapshotter and application runner based on Xcode target
2015-12-11 15:17:41 -08:00