1. 28 6月, 2019 1 次提交
    • G
      Has a binary messenger (#9419) · 50a8e736
      gaaclarke 提交于
      Made the engine and the view controllers have BinaryMessengers, not be
      BinaryMessengers.  This allows us to break retain cycles and makes the
      leaking channels we have not less dire.
      50a8e736
  2. 26 6月, 2019 1 次提交
  3. 20 6月, 2019 1 次提交
  4. 19 6月, 2019 1 次提交
    • G
      Surrogate binary messenger (#9347) · 2f36285b
      gaaclarke 提交于
      Created FlutterSurrogateBinaryMessenger to make sure that channels are
      holding onto engines and not viewcontrollers.  This doesn't change the
      public API but makes clients do what we want them to be doing, using
      Engine for FlutterBinaryMessenger.
      2f36285b
  5. 13 6月, 2019 1 次提交
  6. 06 6月, 2019 1 次提交
  7. 01 6月, 2019 1 次提交
  8. 11 5月, 2019 1 次提交
  9. 10 4月, 2019 2 次提交
  10. 05 4月, 2019 1 次提交
  11. 08 3月, 2019 1 次提交
  12. 25 1月, 2019 1 次提交
  13. 23 1月, 2019 1 次提交
  14. 15 1月, 2019 1 次提交
  15. 13 1月, 2019 1 次提交
  16. 29 11月, 2018 1 次提交
  17. 22 11月, 2018 1 次提交
  18. 17 11月, 2018 1 次提交
  19. 14 11月, 2018 2 次提交
  20. 09 11月, 2018 1 次提交
  21. 08 11月, 2018 1 次提交
  22. 07 11月, 2018 1 次提交
  23. 01 11月, 2018 1 次提交
    • A
      Move FlutterPlatformViewsController into FlutterEngine. (#6709) · 92944f72
      Amir Hardon 提交于
      This PR breaks PlatformViewsController's construction dependency on FlutterView,
      which allows making FlutterEngine its owner instead of
      FlutterViewController.
      
      Also renamed the FlutterScreenshotDelegate to FlutterViewEngineDelegate
      which is FlutterView's delegate to the engine, and expanded it to
      provide a view embedder.
      92944f72
  24. 27 10月, 2018 3 次提交
    • A
      Attach and position embedded UIVIews (#6614) · f7970048
      Amir Hardon 提交于
      f7970048
    • A
      Plumb the iOS PlatformViewsController into flow. (#6603) · df85722f
      Amir Hardon 提交于
      For flow to manipulate the embedded UIViews during the paint traversal
      it needs some hook in PaintContext.
      This PR introduces a ViewEmbeder interface that is implemented by the
      iOS PlatformViewsController and plumbs it into PaintContext.
      
      The ViewEmbedder interface is mainly a place holder at this point, as
      this PR is focused on just the plumbing.
      df85722f
    • D
      iOS Embedding Refactor (#6447) · 2bfb893c
      Dan Field 提交于
      * Create FlutterEngine to manage a Shell to support maintaining execution state across instances of FlutterViewControllers
      * Refactor PlatformViewIOS to support adding or removing a FlutterViewController dynamically
      * Refactor FlutterDartHeadlessCodeRunner to implement FlutterEngine
      * Refactor FlutterViewController to accept a FlutterEngine at initialization or to create one for backwards compatibility; any Shell related responsibilities are now passed through to the Engine instance
      * Remove FlutterNavigationController (unused)
      * Update all public Objective C doc comments to be consistent and formatable
      * Add public documentation to all public headers
      2bfb893c
  25. 25 10月, 2018 2 次提交
    • A
      Add an iOS PlatformViewsController for creating/disposing UIViews. (#6569) · 9669b70e
      Amir Hardon 提交于
      Adds a FlutterPlatformViewFactory protocol - a simple factory protocol to be implemented by plugins
        that exposes a UIView for embedding in Flutter apps.
      * Adds a FlutterPlatformView protocol, which is used to associate a
        dispose callback with a `UIView` created by a FlutterPlatformViewFactory.
      * Exposes a registerViewFactory method in FlutterPluginRegistrar.
      * Implements the `flutter/platform_views` system channel on iOS, allowing
        Dart code to ask for creation/destruction of UIViews.
      9669b70e
    • D
      fix setter for viewOpaque (#6653) · 6c2477bd
      Dan Field 提交于
      6c2477bd
  26. 23 10月, 2018 1 次提交
  27. 18 10月, 2018 1 次提交
  28. 16 10月, 2018 1 次提交
  29. 12 10月, 2018 1 次提交
    • J
      Add a callback for iOS when the first Flutter frame is rendered (#6135) · 3ffa3629
      James D. Lin 提交于
      Add a `-[FlutterViewController setFlutterViewDidRenderCallback:]`
      method on iOS so client applications can be notified when the Flutter
      view has rendered.  This can be used for add2app cases to determine
      when to take an initial screenshot for comparisons in automated
      tests.
      
      The callback is expected to be an Objective-C block (or Swift
      closure).  I chose to support only a single callback because it's
      much simpler (especially since it does not require a separate method
      to unregister the callback), and it's not clear that there are use
      cases that would justify additional complexity.  Clients have the
      flexibility to make their callback invoke other callbacks anyway.
      
      I alternatively considered adding a `-[FlutterViewController
      viewDidRenderFirstFlutterFrame]` method that clients could override
      in a subclass, but using an Objective-C block seems more flexible and
      less of a burden.
      
      Fixes https://github.com/flutter/flutter/issues/20665
      3ffa3629
  30. 11 10月, 2018 1 次提交
  31. 05 10月, 2018 1 次提交
    • C
      Remove touch mapper and respect the UITouch phase when calculating the pointer... · 45c5fe56
      Chinmay Garde 提交于
      Remove touch mapper and respect the UITouch phase when calculating the pointer data change type. (#6430)
      
      The touch mapper was a relic of a time when the pointer IDs had to be less
      than 16. Not respecting the touch phase is getting in the way of clients that
      fake their own touches. Turns out the AppDelegate also like to fake touches to
      simulate status bar events. Now, except in cases where there is a specific
      override in place, the UI touch phase is respected.
      45c5fe56
  32. 27 9月, 2018 2 次提交
  33. 25 9月, 2018 1 次提交
  34. 22 9月, 2018 1 次提交