1. 08 8月, 2018 1 次提交
  2. 07 8月, 2018 3 次提交
  3. 03 8月, 2018 3 次提交
    • A
      Flush all embedded Android views on hot restart. (#5929) · ffbafc85
      amirh 提交于
      * Flush all embedded Android view on hot restart.
      
      Adds an OnEngineRestarted method to PlatformView, this is currently only
      implemented for Android where we need to use it for embedded views.
      
      * review comments followup
      
      * rename to OnPreEngineRestart, call before Clone
      ffbafc85
    • A
      Don't drop MotionEvents with unknown tool type. (#5931) · 3b66f20d
      amirh 提交于
      Instead, send them with the new unknown PointerDeviceKind.
      
      We hit this when running `adb shell input tap` in tests which sends events with
      an unknown tool type.
      
      This also fills in a missing conversion for TOOL_TYPE_ERASER.
      3b66f20d
    • J
      Add an explicit `-[FlutterViewController init]` implementation (#5924) · 76ec93da
      James D. Lin 提交于
      * Add an explicit `-[FlutterViewController init]` implementation
      
      `-[FlutterViewController init]` currently works because it inherits
      the `-[UIViewController init]` convenience initializer that invokes
      the `-[UIViewController initWithNibName:bundle:]` designated
      initializer that `FlutterViewController` overrides.
      
      However, this doesn't seem to be explicitly documented, so it's a bit
      confusing (or at least non-obvious), and it seems potentially
      brittle.  Add an explicit implementation of `-[FlutterViewController
      init]` instead.
      76ec93da
  4. 02 8月, 2018 1 次提交
  5. 01 8月, 2018 2 次提交
    • J
    • J
      Deprecate -[FlutterDartProject initFromDefaultSourceForConfiguration] (#18886) (#5858) · d06e9e84
      James D. Lin 提交于
      * Deprecate -[FlutterDartProject initFromDefaultSourceForConfiguration] (#18886)
      
      `-[FlutterDartProject initFromDefaultSourceForConfiguration]` no
      longer seems very useful.  It calls `-initWithPrecompiledDartBundle:`
      or `-initWithFlutterAssets:dartMain:packages:`, but since it now
      passes `nil` for all arguments, both paths end up doing the same
      thing.
      
      Additionally, `-initFromDefaultSourceForConfiguration` is awkward to
      use in Swift.  The automatically generated Swift interface is:
      
          public convenience init!(fromDefaultSourceForConfiguration: ())
      
      and it's not obvious how to call that.
      
      Let's deprecate `-initFromDefaultSourceForConfiguration` and instead
      expect callers to use the existing `-init` method. (We can make
      `-init` do different things for different build configurations later
      if necessary.)
      
      Bonus: Rename some parameters to make it more obvious when they may
      be `nil`.
      d06e9e84
  6. 31 7月, 2018 4 次提交
  7. 28 7月, 2018 2 次提交
  8. 27 7月, 2018 2 次提交
  9. 26 7月, 2018 6 次提交
  10. 25 7月, 2018 1 次提交
    • A
      Make the virtual display's presentation window non focusable. (#5845) · 42bd86d6
      amirh 提交于
      When the FlutterView's window loses focus Flutter cannot bring up the
      keyboard (so e.g tapping on text fields doesn't work).
      
      This workaround makes sure that Flutter text fields are working but
      unfortunately now the embedded Android view cannot bring up the keyboard
      as it's window is not focused.
      
      Submitting this until as a stop gap while we're trying to figure out if
      it's possible to allow both windows to bring up the keyboard.
      42bd86d6
  11. 24 7月, 2018 1 次提交
  12. 21 7月, 2018 2 次提交
  13. 20 7月, 2018 1 次提交
  14. 19 7月, 2018 3 次提交
  15. 18 7月, 2018 1 次提交
  16. 17 7月, 2018 3 次提交
  17. 14 7月, 2018 4 次提交
    • J
    • J
      Revert "Add assistiveTechnologyEnabled flag to window" (#5746) · 9af920ef
      Jonah Williams 提交于
      Reverts flutter/engine#5740
      9af920ef
    • A
      Implement PlatformViewsController. (#5722) · 80a85e4a
      amirh 提交于
      Each platform view created (by a plugin supplied factory) is attached to
      a virtual display.
      The virtual displays are controlled by VirtualDisplayController objects.
      The PlatformViewsController maintains a mapping from a platform view's
      id to its VirtualDisplayController, which allows it to operate on the
      virtual display for a given platform view ID when asked so over the
      method channel.
      
      This is using API level 20 APIs, on lower API levels all platform views
      method channel calls are noops.
      We can make this work on API 19 with some refactoring to the
      TextureRegistry (allow the engine Java code to recycle a texture entry
      id).
      
      This CL also adds a platform view id parameter to the
      PlatformViewFactory#create() method. This allows plugins to route
      platform channel messages to specific instances of a platform view.
      
      TBD in future CLs:
        * Forward touch events to the platform views.
        * Support accessibility for platform views.
      
      flutter/flutter#19030
      80a85e4a
    • J
      9ece2752