9189 Commits

Author SHA1 Message Date
Ben Konyi
a817ee14cb
Fixed failure on Windows in paragraph.cc which was surfaced by enabling (#4434)
Fixed failure on Windows in paragraph.cc which was surfaced by enabling flutter_tester.exe build on bots.
2017-12-08 16:27:47 -08:00
Chinmay Garde
e8526e6fd3
Add macros to mark APIs as being deprecated or unavailable. (#4401) 2017-12-08 13:30:45 -08:00
Jason Simmons
2cf9ed094e
Exclude Skia's copy of libjpeg-turbo from the license crawl (#4432) 2017-12-08 11:50:13 -08:00
Ben Konyi
c3f18b90e0
Fixed errors introduced in landing of fml changes for Windows. (#4431) 2017-12-08 11:17:48 -08:00
Ben Konyi
4d718568b2
Updated fml to build on Windows. (#4415) 2017-12-08 10:40:10 -08:00
Brian Osman
5309ac6c19
Remove SkToBool usage (#4429) 2017-12-08 13:28:06 -05:00
Chris Bracken
8e39760168
Expose keyboard height as view inset on iOS (#4428)
Keyboard height is now treated as a view inset, which could be used to
shrink the content area of the app as is done in the Material Scaffold,
rather than padding, which is used to indicate content areas where user
interaction should be avoided.
2017-12-07 18:37:46 -08:00
Jason Simmons
a2f488ac7f
Do not report a cursor location if there is no active selection (#4427)
Fixes https://github.com/flutter/flutter/issues/13398
2017-12-07 17:43:51 -08:00
Ryan Macnak
1cdaab88e3
Roll Dart to a38ac7cf127f4611c873c2f2d523c06ce06b1342. (#4422) 2017-12-06 16:48:37 -08:00
Michael Goderbauer
9d5cd4b12e
Fix typo (#4424) 2017-12-06 16:14:04 -08:00
Michael Goderbauer
fb44dce8c2
A11y cursor movements for text fields on Android (#4419)
* a11y cursor movement by character

* focus fixes

* doc fixes
2017-12-06 15:46:35 -08:00
Chris Bracken
f888186e50
Fix an extra paren in locale_test.dart (#4423) 2017-12-06 15:38:40 -08:00
Jason Simmons
e79dc185f0
libtxt: implement GetWordBoundary using the ICU word breaker (#4421) 2017-12-06 15:23:40 -08:00
Chris Bracken
a94e88200a
Set window.viewInsets.bottom to keyboard height on iOS (#4420)
This allows for us to start migrating framework classes (notably
Scaffold) to use window.viewInsets.bottom to get the keyboard height.
Once framework updates have landed, we will land an engine patch to
expose the iOS bottom safe area inset as padding.

This change is already landed for Android.

Related issue: flutter/flutter#12098
2017-12-06 15:06:12 -08:00
Jason Simmons
affa4e7c46
libtxt: handle lines containing both LTR and RTL text runs (#4416)
* Call the ICU bidi API to divide the text into LTR/RTL runs and merge
  them with the styled runs defined by the application
* Maintain a list of glyph positions sorted by the order of the corresponding
  code units in the text, as well as a list of glyphs sorted by x/y coordinates
  in the layout
2017-12-06 14:46:03 -08:00
Ian Hickson
7e4df308a7
Make Locale know about the deprecated Hebrew language code. (#4411)
...by making it know about ALL the deprecated language and region codes.
2017-12-06 12:17:30 -08:00
Chris Bracken
033daf152d
Update the iOS mark region on setTextInputState (#4418)
Previously, we failed to clear/update the mark text range on updates
from the framework. This resulted in a crash if the incoming text value
was shorter than the current mark range when iOS attempts to extract the
mark range substring from the text.

Fixes flutter/flutter#12585
2017-12-06 11:30:14 -08:00
Ben Konyi
9b366e1e1a
Dart SDK roll for 2017/12/08. (#4417) 2017-12-05 19:56:47 -05:00
Brian Osman
443c5e4c5b
Disable linear blending on iOS simulator (#4413)
Fixes flutter/flutter#13308

Overlooked this case when I previously removed linear blending. MakeS32 creates a surface with a color space attached (triggering the linear blending behavior). MakeN32 creates a legacy surface (no color space), which matches what the other backend bindings do (including the GL surface factory, and the raster cache).
2017-12-05 08:38:53 -05:00
Alexander Markov
b57fca02b5
Roll Dart SDK to d4cfecb1065d322d3670df7e9ec9a0cc2d4b90f0 (#4414) 2017-12-04 13:46:45 -08:00
Adam Barth
b5d0a4ac51
[fuchsia] Sandbox Flutter runner (#4410) 2017-12-04 12:35:38 -08:00
Alexander Markov
3e84bf01c2
Front-end server: use VM-specific package:vm/kernel_front_end (#4412)
* Use the VM-specific wrapper for the kernel front-end to support VM-specific kernel transformations.
* Also, pass a flag to distinguish AOT mode from JIT mode to enable whole-program optimizations.
2017-12-02 17:37:32 -08:00
xster
22e63c3d05
Block image decoding on iOS in the background (#4384)
* Add synchronization to ResourceContext usage

* debug

* Use unique ptr factory

* formatting

* left more notes for future readers
2017-12-01 12:09:00 -08:00
Alexander Aprelev
b62785f00d
Roll dart to 48a927acb2dc4178691b4ddfa817e87043e30b01 (#4409)
* Roll dart to f5fc335a4cdfcf96ae550044c64044ffe599e595

* Update license hash

* Roll a little further to pick up a revert

* Update hash
2017-12-01 11:13:31 -08:00
Brian Salomon
3afab47010 Remove use of SkPath::setConvexity in GraphicsContext. (#4398) 2017-12-01 09:48:57 -05:00
Ben Konyi
8dc5e85167
ifdef'd out unused code on non-Windows platforms (#4408) 2017-11-30 20:04:42 -05:00
Ben Konyi
74a2d90530
Changes to assets/ build/ flow/ runtime/ and shell/ to allow for compilation on Windows (#4407)
Made changes to assets/ build/ flow/ runtime/ and shell/ to allow for
compilation on Windows.
2017-11-30 19:47:20 -05:00
Ben Konyi
da43e7c62e
Added Windows support for libtxt in order to build flutter_tester.exe (#4395)
* Added Windows support for libtxt in order to build flutter_tester.exe.

Relatively minor changes were needed to get libtxt building on Windows
(missing/incompatiable headers, the odd syscall, path separators, etc.).
Windows doesn't render text in the same way as other platforms, so some tests
that checked for specific pixel offsets are disabled.
2017-11-30 16:35:32 -05:00
Zachary Anderson
619f452ece
[Android] Extract the PluginRegistry from the FlutterActivity (#4393) 2017-11-30 11:05:55 -08:00
Chris Bracken
77d8acb9be
Use WindowPadding class to represent view insets (#4406)
This drops the ViewInsets class in favour of the existing WindowPadding
class for representing the view insets.
2017-11-30 10:47:14 -08:00
Siva
77b2d1d95a
Roll dart version in flutter engine. (#4402)
* Roll dart version in flutter engine.

* Update license file.
2017-11-30 08:13:16 -08:00
Chris Bracken
93648ef0ed
Expose Window.viewInsets in dart:ui (#4403)
Window.viewInsets is the set of window-relative insets that describe the
area of the window that an application may want to treat as effectively
reducing the size of the content. Typically this is due to system UI
that fully obscures underlying content, such as the keyboard.

This area differs from padding in that padding is the set of insets that
describe the area of the window that may be partially (or fully)
obscured by system UI or physical intrusions into the view area (e.g.
iPhone X sensor housing, status bar, or the iPhone X home indicator
widget).

This patch does not yet enable the iOS bottom edge safe area. Once the
framework has been updated to use viewInsets for bottom-edge occlusions
(today, the keyboard), the bottom safe area will be enabled and
framework patches that depend on it, landed.
2017-11-29 16:27:15 -08:00
Ben Konyi
fbeb2b284d
Fixing compilation errors on non-Windows platforms. (#4405)
* Removed stray character.

* Added missing include.

* Fixed formatting.
2017-11-29 19:12:35 -05:00
Ben Konyi
c319a20192
Removed stray character. (#4404) 2017-11-29 18:59:51 -05:00
Ben Konyi
475607c003
Updated sky directory to compile on Windows. (#4399) 2017-11-29 18:53:48 -05:00
Jason Simmons
acb597bed4
Set a pending dimension change in the animator only if the viewport's physical width/height changed (#4400)
Fixes https://github.com/flutter/flutter/issues/13183
2017-11-29 10:55:45 -08:00
Ben Konyi
d6d930e38f
Added Semaphore implementation for Windows. (#4396) 2017-11-29 13:41:49 -05:00
Alexander Aprelev
229e474517
Run frontend server from temp directory to force absolute URIs in Kernel file. (#4394)
* Run frontend server from temp directory to force absolute URIs in Kernel file.

* Create special directory to cwd into to avoid conflicts with app sources in temp folder

* Make variable final
2017-11-28 13:58:51 -08:00
ethanblake4
3f3d174963 Fix: use firstRequestedOrientation in fallthrough case (#4392) 2017-11-27 00:09:56 -08:00
P.Y. Laligand
921872ce95
[fuchsia] Updated path to package template. (#4390) 2017-11-22 18:57:26 -08:00
amirh
96bd2cf038
More informative error message for image decoding failure. (#4389) 2017-11-22 17:11:53 -08:00
amirh
1fa9917685
Remove target-os specific gclient dependencies. (#4374)
As we anyway always recommend to set the target_os to android.
Also if you happen to not set the target_os to android it messes up the licenses script output.
2017-11-22 15:55:09 -08:00
Martin Kustermann
93b2179597
Roll third_party/dart to @70e5deacb54aea29566 to pick up revert which broke flutter (#4386) 2017-11-22 15:03:02 +01:00
Sigurd Meldgaard
9d711ccf9b
Move texture registry to platform view (#4388)
* Move texture registry ownership to platform view

This enables the texture registry to survive activity pause on Android.

* Remove debug info

* Formatted

* Set texture registry on initial rasterizer

* Remove unneccessary std::move
2017-11-22 14:39:03 +01:00
Sigurd Meldgaard
1e6ebb35cc
Revert "Move texture registry ownership to platform view (#4348)" (#4387)
This reverts commit e58764fbe0cf7a0fab7e75a94de9143a145108c3.
2017-11-22 14:12:25 +01:00
Sigurd Meldgaard
e58764fbe0
Move texture registry ownership to platform view (#4348)
* Move texture registry ownership to platform view

This enables the texture registry to survive activity pause on Android.
2017-11-22 09:55:45 +01:00
Alexander Aprelev
fbd384329b
Turn off smart minimal IKG compilation (#4383) 2017-11-21 16:09:41 -08:00
Chris Bracken
e89272ab1f
Roll topaz to 1eb2e77be92ed968223b0cea19fe2108e689dcd5 (#4380)
Picks up:
1. Windows support for flutter tester
2. Spaces in Dart package paths in the loader.
2017-11-21 15:42:53 -08:00
Chris Bracken
a2a3dc05ae
Catch divide-by-zero errors early in license tool (#4382)
If Progress is instantiated with a max of 0, throw immediately to avoid
a divide-by-zero later in toString(). This typically happens if the tool
recurses over an empty top-level component, which can happen when a
component is moved around in the repo and the developer hasn't cleaned
up old empty directories from their git client.
2017-11-21 15:42:17 -08:00
Chris Bracken
546cc39f84
Minor formatting fix in license script (#4381)
Fixes an errrant tab and unnecessary braces.
2017-11-21 15:34:13 -08:00