6852 Commits

Author SHA1 Message Date
Adam Barth
1035e5e60b Roll Mojo to 9a791294e429f9f2ca4f427796a284edb6f6768e (#2663)
* Update to mojo 9a791294e429f9f2ca4f427796a284edb6f6768e

* Update to account for Mojo API changes
2016-05-09 10:56:47 -07:00
Matt Perry
f608c94934 Add mojo service for accessing the system clipboard. (#2659)
* Add mojo service for accessing the system clipboard.

Hooked up for iOS and Android.

BUG=https://github.com/flutter/flutter/issues/1567
2016-05-09 13:26:19 -04:00
Adam Barth
215fa98639 Remove main_ios.mm (#2662)
We no longer provide the main function for Flutter apps on iOS. Instead, we
just provide Flutter.framework, and the end-developer provides main.

Also, remove unused build rules for building Runner.app. We don't build that
target anymore.
2016-05-09 09:53:04 -07:00
Todd Volkert
98f020ff2d Correctly report accessibilityFrame as screen coordinates (#2660)
flutter/flutter#1664
2016-05-06 15:46:48 -07:00
Jason Simmons
6ba3199eef Roll Dart (#2661) 2016-05-06 15:46:05 -07:00
Chinmay Garde
d52d3a4448 Wire up the interpreter on iOS devices. (#2648) 2016-05-06 15:37:59 -07:00
Jason Simmons
c0a5c08cd5 Roll Skia (#2658) 2016-05-06 12:04:57 -07:00
Todd Volkert
6770b4a5d5 Fix copy-paste error from code review (#2657) 2016-05-06 11:31:45 -07:00
Todd Volkert
fdc0b71889 Move node implementation to Objective C (#2652)
* Move node implementation to Objective C

This changes AccessibilityBridge::Node (C++) to be AccessibilityNode (objc)
in order to have the nodes returned directly as ui accessibility elements.
This buys us a few things:

1) We can now return an element tree instead of a flat list, thus negating
   the need to maintain a global rect and global translation
2) We use less memory since we don't need to instantiate both nodes and
   their ensuing accessibility elements
3) accessibility elements can now implement the methods necessary to respond
   to events like user scrolling

https://github.com/flutter/flutter/issues/1664
2016-05-06 11:26:01 -07:00
Adam Barth
7af714532d Make iOS Flutter apps extensible (#2654)
This patch switches us to building Runner.app on the end-developer's machine,
which will eventually let them customize their app.
2016-05-06 11:16:04 -07:00
Adam Barth
8f2bcbfccb Add a script for creating the iOS SDK (#2655)
Hosting this script inside the repo will let us change the contents of the SDK
without having to synchronize a change on the infrastructure and in the repo.
2016-05-06 10:57:11 -07:00
Jason Simmons
5d523cd94a Fixes for Dart/native conversion of some painting objects (#2656) 2016-05-06 10:40:17 -07:00
Adam Barth
c081845efc Remove Dart_GetField from Canvas interface (#2653)
These Dart_GetField calls show up on traces. This patch removes almost all of
them from the Canvas interface. We still have a few in drawAltas and
drawVertices, which will be removed in a later patch.
2016-05-05 19:56:41 -07:00
Adam Barth
1d23f210d2 Add support for app messages to iOS (#2651)
Fixes https://github.com/flutter/flutter/issues/3256
2016-05-05 16:58:27 -07:00
Jason Simmons
86837edd4e Add an android-cpu engine build flag that can select ARM, x86 (32-bit), and x64 targets (#2650)
Remove the use of --simulator to indicate x64 on Android
2016-05-05 14:38:42 -07:00
Jason Simmons
6110ec2d11 Fall back to an RGBA4444 canvas configuration if 8888 is not supported (#2649) 2016-05-05 11:55:45 -07:00
Adam Barth
8559ffe868 Remove GetField calls from compositing upload (#2647)
Now we grab the underlying primative values before exiting the VM.
2016-05-04 17:14:09 -07:00
Jason Simmons
c74c0bfb09 Explicitly close Mojo proxies during destruction of a FlutterView (#2646)
Partial fix for https://github.com/flutter/flutter/issues/2950
2016-05-04 14:35:35 -07:00
Jason Simmons
db5d105e1d Improve cleanup of the FlutterView's Mojo service providers (#2644) 2016-05-04 10:02:30 -07:00
Adam Barth
0e991c74b2 Remove dependency from //sky/services/platform to //sky/services/activity (#2643)
Instead of using a static Activity, we can use the one we get when we construct
the service.
2016-05-03 15:02:36 -07:00
Ian Hickson
d85ead8ec2 Add Path.contains, an API to hit test a Path (#2642) 2016-05-03 13:04:43 -07:00
Adam Barth
29c802278e Move main_ios.mm over to public APIs (#2637)
After this patch, main_ios.mm now consumes Flutter.framework via public APIs.
This patch prepares us to move Flutter on iOS over to consuming
Flutter.framework as a binary artifact.
2016-05-03 11:56:43 -07:00
Yegor
6907cdcffd provide link to instructions for building for iOS
Fixes #https://github.com/flutter/flutter/issues/3689
2016-05-03 07:32:14 -07:00
Jason Simmons
a0fd858c22 Remove the intents for controlling tracing on Android (#2639)
The flutter tool is now using the observatory's HTTP-based interface
2016-05-02 16:00:59 -07:00
Adam Barth
6740388a4a Remove legacy interfaces from activity.mojom (#2638)
These are now offerred by the Flutter platform services (e.g., SystemChrome,
SystemSound, HapticFeedback).
2016-05-02 14:24:40 -07:00
Adam Barth
76d5cf230a Don't spin hot in MessagePumpGLFW (#2636)
When there are no pending timers, we should sit in glfwWaitEvents instead of
continuously calling glfwPollEvents. This reduces CPU utilization
significantly.
2016-05-02 10:37:52 -07:00
Adam Barth
6e3228cf81 Revert "Record layer tree to an SkPicture before rasterization (#2628)"
This reverts commit 5bc5c7b5246d62af70780ec7ba0203ac3f318226.

This commit appears to have caused
https://github.com/flutter/flutter/issues/3658
2016-05-01 14:23:13 -07:00
Adam Barth
716cbd24ff Remove FNL build configuration (#2635)
These build definitions no longer work with the current version of FNL. Once
FNL is ready, we'll add new build definitions that work for it again.
2016-04-29 12:15:15 -07:00
Matt Perry
bec2c43aeb Merge pull request #2634 from mpcomplete/backspace
Fix handling of backspace in text input.
2016-04-29 14:02:52 -04:00
Adam Barth
a25959370a Remove the old Paragraph API (#2633)
All the clients of migrated to the new ParagraphConstraints API.
2016-04-29 09:49:34 -07:00
Adam Barth
28fbcc3a38 Use LayoutUnit to normalize infinity properly (#2632)
In the new ParagraphConstraints code path, we weren't converting through
LayoutUnit, so we weren't getting the right overflow behavior for extremely
large double values. This resulted in test/rendering/block_test.dart failing.
2016-04-28 16:11:16 -07:00
Adam Barth
c0bb843311 Remove ScriptSnapshotter from precompilation SDK (#2631)
We don't need to use an explict version of the script snapshotter that is
packaged with the iOS SDK. Instead, we can rely on the flutter command having a
working snapshotter.
2016-04-28 13:30:38 -07:00
Adam Barth
d980ee5d6f Clarify which source files are part of Flutter.framework (#2630)
All the headers for Flutter.framework are now in framework/Headers and all the
source files for Flutter.framework are now in framework/Source. Previously it
was unclear that FlutterAppDelegate and main_ios.mm weren't part of
Flutter.framework. (They still build as part of the framework, but that's
something I'll fix in a later patch.)
2016-04-28 12:33:19 -07:00
Adam Barth
6829d7da5e Fix AOT build for iOS (#2629) 2016-04-28 11:23:17 -07:00
Adam Barth
5bc5c7b524 Record layer tree to an SkPicture before rasterization (#2628)
This lets Skia run an optimization pass over the SkPicture before actually
issuing GL commands.
2016-04-28 10:15:38 -07:00
Adam Barth
7a186960d7 Add ParagraphConstraints (#2622)
This patch begins to update the Paragraph interface to something sensible. It
introduces a ParagraphConstraints object that is passed to layout() to control
the layout of the paragraph. Once clients are migrated over, the argument will
become required.
2016-04-28 09:38:08 -07:00
Adam Barth
fcf3a6e2ab Fix iOS build 2016-04-27 15:46:59 -07:00
Jason Simmons
f1a8c5468d Load the precompiled snapshot from a group of asset files on Android (#2621)
Previously the AOT snapshot was packaged as a dynamic library (similar to the
scheme used on iOS).  This change eliminates the need for a native code
toolchain when building for AOT.
2016-04-27 15:35:25 -07:00
Adam Barth
ac1b5667a4 Use the GrGLCreateNativeInterface_glfw.cpp from Skia (#2627)
Instead of our own shadow copy.
2016-04-27 15:11:56 -07:00
Adam Barth
625e937442 Update Skia (#2626) 2016-04-27 14:59:06 -07:00
Seth Ladd
402efb9836 Explicit import instructions in the library-level docs (#2623)
Explicit import instructions in dart:jni
2016-04-27 12:40:49 -07:00
Seth Ladd
15824398bc Explicit import instructions for dart:ui (#2624) 2016-04-27 12:34:28 -07:00
Jason Simmons
1143592b1d Roll Dart to 14ec00f86bbc893f1c731ea36afb1b98d8cd77cc (#2620) 2016-04-26 12:52:25 -07:00
Jason Simmons
0fd6fce9f4 Remove a redundant line from the gn script (#2619) 2016-04-25 17:05:31 -07:00
Jason Simmons
9d19f93386 Do not create the service isolate when Dart is built in product mode (#2618) 2016-04-25 17:05:21 -07:00
Todd Volkert
a6b99b82dc Merge pull request #2594 from tvolkert/work
Report Flutter widgets to iOS accessibility API
2016-04-25 17:00:28 -07:00
Jason Simmons
0629d36a79 Fix the dist target when building in AOT (deploy) mode on Android (#2617) 2016-04-25 15:37:48 -07:00
Adam Barth
3d35f392c1 Remove the extra lints from _embedder.yaml (#2616)
These were forcing our customers to obey these lints, but not all of our
customers like them. We might enable some of these in the future if they have
concrete benefits (e.g., faster generated code when compiling ahead-of-time).
2016-04-25 11:31:48 -07:00
Jason Simmons
b478563ea6 Support ahead-of-time compilation on Android in the engine (#2614)
This include build system changes for selecting Dart's precompiler mode
plus a way to locate and load the precompiled snapshot library from an
Android application
2016-04-25 10:45:23 -07:00
Adam Barth
71a211ba36 Improve docs for window.size (#2615)
This would have answered a question we received on flutter-dev.

Fixes https://github.com/flutter/flutter/issues/3517
2016-04-25 10:22:29 -07:00