47 Commits

Author SHA1 Message Date
Adam Barth
11e2e884c3 Complete routing for Java-to-Dart messages (flutter/engine#3140)
This patch completes the routing for Java-to-Dart platform messages.
2016-10-17 16:47:42 -07:00
Adam Barth
b3cf0e32fa Add clipboard functionality to platform plugin (flutter/engine#3139)
This will eventually replace the clipboard mojom.
2016-10-17 15:46:47 -07:00
Adam Barth
ac963ad808 Handle non-null terminated strings properly (flutter/engine#3138)
The function we were using to initialize this NSString assumed that our
UTF-8 data was null-terminated, which wasn't a valid assumption.

Fixes https://github.com/flutter/flutter/issues/6359
2016-10-17 14:18:45 -07:00
Adam Barth
d12cedb0a6 Remove Activity service (flutter/engine#3136)
This functionality has been replaced by the PlatformPlugin. Also move the
contents of //flutter/services/common to more sensible homes.
2016-10-14 16:12:01 -07:00
Adam Barth
7b42d06850 Fix build 2016-10-14 16:01:23 -07:00
Adam Barth
2e7a8d13bb Response messages (flutter/engine#3134)
Add plunbing for Host-to-Dart platform messages

We'll use the plumbing in this direction for things like key events.
2016-10-14 15:51:25 -07:00
Adam Barth
e583731e22 PointerChange.cancel should have a zero index (flutter/engine#3135)
To make the default state all zeros.

Fixes https://github.com/flutter/flutter/issues/6236
2016-10-14 15:46:46 -07:00
Adam Barth
c731aee1a1 Keep precision in iOS event timestamp (flutter/engine#3133)
Previously we were rounding event time stamps to the nearest second
because ftl::TimeDelta::FromSeconds takes an integer number of seconds.
Now we just convert directly from floating point seconds to
microseconds to avoid losing precision.

Fixes https://github.com/flutter/flutter/issues/6313
2016-10-13 16:41:28 -07:00
Adam Barth
cec1a1e428 Add SystemNavigator.pop (flutter/engine#3130)
This method will let us remove the activity service.
2016-10-13 14:39:03 -07:00
Adam Barth
d7e000f83e Remove unused services (flutter/engine#3128)
The platform use cases are handled by the PlatformPlugin. The media service and
the sensor service have no clients. If we want to use them, we should create
plugins for them.
2016-10-13 12:14:38 -07:00
Adam Barth
04a38139ad Don't start in fullscreen mode on Android (flutter/engine#3129)
Fixes https://github.com/flutter/flutter/issues/6303
2016-10-13 11:10:02 -07:00
Adam Barth
02fd1c1680 More nil checking 2016-10-13 00:56:40 -07:00
Adam Barth
062c853752 Implement PlatformPlugin on iOS (flutter/engine#3125)
Also, expose a convenience class for processing JSON messages.
2016-10-13 00:04:30 -07:00
Adam Barth
1ccda4a4ca Complete PlatformPlugin.java (flutter/engine#3123)
After this patch, the PlatformPlugin has all the required functionality on Android.
2016-10-12 14:29:57 -07:00
Adam Barth
35e0fa1818 Add SystemChrome support to PlatformPlugin.java (flutter/engine#3122) 2016-10-12 14:09:18 -07:00
Adam Barth
921f0b9f21 Add PlatformPlugin.java (flutter/engine#3121)
The PlatformPlugin is the first of the built-in plugins that will replace the
mojom platform services.
2016-10-12 13:27:12 -07:00
Adam Barth
9f04e2a7b2 Finish routing platform messages on iOS (flutter/engine#3119) 2016-10-12 12:52:11 -07:00
Adam Barth
b420addcbb Rewire platform messages to work like semantics (flutter/engine#3118)
After this patch, platform messages now take the same path through the system
that semantics data does (on Android). Support on iOS will be in another patch.
2016-10-11 19:02:04 -07:00
Adam Barth
5f04763e8b Remove semanitcs.mojom (flutter/engine#3117)
We've cut over to the new semantics interface.
2016-10-11 15:39:08 -07:00
Adam Barth
e3e8182ace Improve new semantics backend (flutter/engine#3113)
TalkBack still isn't fully working, but this patch gets us much closer.
2016-10-11 13:27:11 -07:00
Jason Simmons
4795317841 Remove obsolete PlatformView::Resize and GetSize methods (flutter/engine#3112) 2016-10-11 11:55:23 -07:00
Jason Simmons
e4c161f028 Do not attach and detach the EGL context on each frame in the rasterizer thread (flutter/engine#3110) 2016-10-11 11:14:07 -07:00
Adam Barth
42b02cda80 Switch backend to consume new semantics API (flutter/engine#3103) 2016-10-11 10:52:48 -07:00
Adam Barth
c0aa11d81e Update //lib/ftl (flutter/engine#3108)
This fixes this Fuchsia build, which uses the latest //lib/ftl.
2016-10-07 14:07:09 -07:00
Jason Simmons
fec82b04a1 Reinstate the trace events for Skia canvas flush and eglSwapBuffers (flutter/engine#3107) 2016-10-07 14:01:22 -07:00
Adam Barth
86501e442b Add new platform message transport on Android (flutter/engine#3105)
This transport uses the Dart and JNI APIs directly instead of indirecting
through Mojo.
2016-10-07 12:05:43 -07:00
Adam Barth
2ae4b3f0f3 Remove failed UIDelegate abstraction (flutter/engine#3106)
We only ever had one UIDelegate. We might as well have people use the Engine
interface directly.
2016-10-06 16:19:05 -07:00
Chinmay Garde
79b509c602 Make the PlatformView client rendering API agnostic. (flutter/engine#3099) 2016-10-06 15:06:21 -07:00
Adam Barth
da7b7f72b3 Remove pointer.mojom (flutter/engine#3102)
This patch moves the rest of the clients to use the new PointerData
transport.
2016-10-06 10:59:30 -07:00
Jason Simmons
9e6bbacf00 Fix an ART warning about deletion of a non-local JNI reference (flutter/engine#3100) 2016-10-06 09:43:30 -07:00
Adam Barth
649b958d19 Expose SemanticsUpdate and SemanticsUpdateBuilder (flutter/engine#3098)
This patch prepares us to switch sending semantics information over mojom to
using dart:ui directly. Currently the recorded information is dropped on the
floor, but that will improve in future patches.
2016-10-05 12:22:03 -07:00
Chinmay Garde
559d585233 Update buildroot and re-enable use of C++14 on Android x86. (flutter/engine#3096) 2016-10-04 12:53:08 -07:00
Adam Barth
62dc1d9ce9 Fix iOS build 2016-10-03 21:29:44 -07:00
Adam Barth
908131c94d Fix x86_64 build 2016-10-03 21:26:26 -07:00
Adam Barth
119877f035 Remove support for dynamic Mojo services (flutter/engine#3089)
Instead, clients should use host messaging.
2016-10-03 21:02:52 -07:00
Adam Barth
f2310a49ff Android should use PointerDataPackets (flutter/engine#3092)
We now use JNI rather than Mojo to transport pointer data from Java to Dart.
Also, fill in a few more of the pointer data fields from information in Java.
2016-10-03 21:02:46 -07:00
Jason Simmons
d1e9bf31f5 Service protocol extension for grabbing screenshots (flutter/engine#3087)
This is intended for use in flutter_driver tests
2016-10-03 10:39:16 -07:00
Adam Barth
c61c39546e Stop dispatching pointer packets (flutter/engine#3080)
Long live pointer data packets.
2016-09-29 21:59:44 -07:00
Jeff Brown
69b52df977 Update skia to e038489a743d6c0ab1cb208862c305180815bc8e. (flutter/engine#3074) 2016-09-28 19:39:19 -07:00
Adam Barth
2aa9886924 Switch to manually encoded pointer data (flutter/engine#3073)
Rather than using mojom to encode pointer data, we now encode and decode it
manually. A future patch will remove the mojom codepath once the framework is
updated.
2016-09-28 15:50:09 -07:00
Chinmay Garde
a140c6d06e Update buildtools to latest, account for GN updates and use Clang on Android. (flutter/engine#3064) 2016-09-28 11:48:48 -07:00
Adam Barth
8467c87765 Make the --flx flag work on Linux (flutter/engine#3065)
Previously we would error out because of a lack of positional arguments.
2016-09-27 16:13:44 -07:00
John McCutchan
9c4f3e830a Make bundle path optional for the RUN intent (flutter/engine#3061) 2016-09-27 14:12:23 -07:00
Chinmay Garde
360755d6c8 If the platform requests setting up the resource context without making the context current, don’t attempt to create the GL native interface. (flutter/engine#3059) 2016-09-26 12:24:04 -07:00
Chinmay Garde
ca79a2a30f Extract a common interface out of GaneshCanvas (into GPUCanvas) that can also be used for the Vulkan canvas. (flutter/engine#3058) 2016-09-24 20:50:10 -07:00
Chinmay Garde
eab36e0efe Remove the systrace logger. Dart can now redirect traces to systrace. (flutter/engine#3057) 2016-09-23 16:56:59 -07:00
Chinmay Garde
b2e97acdb8 Move shell to //flutter and split shell/BUILD.gn into smaller pieces for each subcomponent. (flutter/engine#3053)
* Namespaces have been updated to reflect the move from //flutter/sky/shell to //flutter/shell.
* shell/BUILD.gn file has been split into smaller GN files for each subcomponent of the shell (common, GPU, diagnostic, testing).
* GN dependencies have been rewritten to stop exposing common shell dependencies as public. Duplicates have also been removed.
* GPU subcomponent has been updated make it more suitable for Vulkan integration.
* The GLFW backend has been resurrected.
2016-09-23 15:33:25 -07:00