1. 15 6月, 2019 1 次提交
    • J
      Handle one-way platform messages in the embedder library (#9331) · 7283ae3a
      Jason Simmons 提交于
      Messages sent to the embedder host may be one-way messages with no response
      handler.  If the host calls FlutterEngineSendPlatformMessageResponse on a
      one-way message, then just delete the message response handle.
      
      Also update the documentation to indicate that
      FlutterEngineSendPlatformMessageResponse must be called for all messages.
      Previously the docs implied that some FlutterPlatformMessage objects may
      have a null response_handle.  The embedder will now set a response_handle for
      every message (even if the sender does not expect a response).
      7283ae3a
  2. 26 5月, 2019 1 次提交
  3. 22 5月, 2019 1 次提交
    • S
      Expose pointer type and buttons in embedder.h (#9034) · 4dbb9ba3
      stuartmorgan 提交于
      Rather than hard-coding the type of incoming events to mouse, and
      synthesizing a primary button press for kDown/kUp, expose device kind
      and buttons in the API.
      
      For backwards compatibility, if the type is not set, the old behavior is
      used. If an embedder sets the type to mouse explicitly, however, they
      must also set correct button information.
      
      For the touch type, the API abstracts away the framework's internal
      expectation that a button is set for touch down/move for simplicity.
      
      Fixes flutter/flutter#32854
      4dbb9ba3
  4. 12 4月, 2019 1 次提交
  5. 11 4月, 2019 1 次提交
  6. 28 3月, 2019 1 次提交
    • C
      Allow embedders to specify their own task runner interfaces. (#8273) · cb8eb801
      Chinmay Garde 提交于
      Currently, all Flutter threads are managed by the engine itself. This works for
      all threads except the platform thread. On this thread, the engine cannot see
      the underlying event multiplexing mechanism. Using the new task runner
      interfaces, the engine can relinquish the task of setting up the event
      multiplexing mechanism and instead have the embedder provide one for it during
      setup.
      
      This scheme is only wired up for the platform thread. But, the eventual goal
      is to expose this message loop interoperability for all threads.
      cb8eb801
  7. 27 3月, 2019 1 次提交
  8. 15 3月, 2019 2 次提交
  9. 09 3月, 2019 3 次提交
  10. 08 3月, 2019 2 次提交
    • C
      Update a11y word forward/back enum names (#8073) · a48cd16e
      Chris Bracken 提交于
      This updates the FlutterSemanticsAction enumerator identifiers for the
      'move cursor forward/back one word' actions (added in
      flutter/engine#8033) for consistency with the 'move cusor forward/back
      on character' identifiers.
      
      ABI compatibility is unaffected, but this with require the following
      change in any embedder making use of these fields:
      
      Rename:
          kFlutterSemanticsActionMoveCursorForwardByWordIndex
      to:
          kFlutterSemanticsActionMoveCursorForwardByWord
      
      Rename:
          kFlutterSemanticsActionMoveCursorBackwardByWordIndex
      to:
          kFlutterSemanticsActionMoveCursorBackwardByWord
      a48cd16e
    • C
      Delay the vsync callback till the frame start time specified by embedder. (#8072) · b5f59ed8
      Chinmay Garde 提交于
      The current assumption is that the embedder will wait till the vsync event and
      then fire the callback. However, some embedders have that information upfront.
      Since the time point has already been specified by the embedder, there is no
      reason to burden the embedder with having to setup a wait either.
      b5f59ed8
  11. 06 3月, 2019 1 次提交
    • S
      Add engine support for scrollwheel events (#7494) · dd80fc9f
      stuartmorgan 提交于
      Adds support for pointer signals, in a way that will support both discrete events (e.g., scroll wheels, flutter/flutter#22762) and continuous gestures (e.g., trackpad scroll, flutter/flutter#21953).
      
      Also exposes these new event options to the embedder. Does not include code to send the
      new events from the platform shells.
      dd80fc9f
  12. 05 3月, 2019 2 次提交
    • C
      Add missing values to semantics action enums (#8033) · e6a5201f
      Chris Bracken 提交于
      This brings the Dart and C++ semantics flag enums back in sync.
      
      In #5902, the ability to move the cursor forward and backward one word
      were added to dart:ui, and to the Android embedder, but not to the
      SemanticsAction enum on the C++ side.
      e6a5201f
    • C
      Add missing kHasImplicitScrolling enum value (#8030) · ed628da0
      Chris Bracken 提交于
      This brings the Dart and C++ semantics flag enums back in sync.
      
      In #5941, implicit scrolling support was added to SemanticsFlag in
      dart:ui, and to the Android embedder, but not to the SemanticsFlags enum
      on the C++ side.
      
      This also clarifies/corrects the documentation for this value in dart:ui
      and in the embedder API.
      ed628da0
  13. 28 2月, 2019 2 次提交
    • C
      Fix two typos in embedder.h (#7993) · 72cbe69c
      Chris Bracken 提交于
      occured -> occurred
      preceeded -> preceded
      72cbe69c
    • C
      Provide batching for semantics updates (#7988) · 3e4e6f5c
      Chris Bracken 提交于
      Some embedders prefer to minimise the number of semantics node/custom
      action updates sent back to the host platform -- for example due to
      expensive serialisation mechanisms, etc.
      
      This patch provides a 'batch end' signal that provides embedders with an
      indication of when a self-consistent set of semantics node or custom action
      updates have been sent.
      
      We overload the node/action ID with information that conveys a batch end
      by using an ID (-1) that is never allotted to semantics nodes by the
      framework.
      3e4e6f5c
  14. 25 2月, 2019 1 次提交
  15. 22 2月, 2019 3 次提交
  16. 21 2月, 2019 1 次提交
    • C
      Add accessibility semantics support to embedder (#7891) · abe9826a
      Chris Bracken 提交于
      Flutter's accessibility APIs consist of three main calls from the
      embedder to the Dart application:
      
        1. FlutterEngineUpdateSemanticsEnabled: enables/disables semantics support.
      
        2. FlutterEngineUpdateAccessibilityFeatures: sets embedder-specific
           accessibility features.
      
        3. FlutterEngineDispatchSemanticsAction: dispatches an action (tap,
           long-press, scroll, etc.) to a semantics node.
      
      and two main callbacks triggered by Dart code:
      
        1. FlutterUpdateSemanticsNodeCallback: notifies the embedder of
           updates to the properties of a given semantics node.
      
        2. FlutterUpdateSemanticsCustomActionCallback: notifies the embedder
           of updates to custom semantics actions registered in Dart code.
      
      In the Flutter framework, when accessibility is first enabled, the
      embedder will receive a stream of update callbacks notifying the
      embedder of the full semantics tree. On further changes in the Dart
      application, only updates will be sent.
      abe9826a
  17. 19 2月, 2019 1 次提交
  18. 12 2月, 2019 1 次提交
  19. 08 2月, 2019 1 次提交
  20. 07 2月, 2019 1 次提交
    • C
      Add FlutterProjectArgs::root_isolate_create_callback (#7651) · ce073991
      Chris Bracken 提交于
      Allows embedders to specify a callback to be invoked in isolate scope
      once root isolate has been created and marked runnable.
      
      As an example of where this is useful, embedder unit test fixtures may
      want to include Dart functions backed by a native implementation. On
      isolate creation, this patch allows the unit test author to call
      Dart_SetNativeResolver in root isolate scope.
      ce073991
  21. 31 1月, 2019 2 次提交
  22. 30 1月, 2019 1 次提交
    • S
      Rename FlutterResult in embedder.h (#7567) · 474d8837
      stuartmorgan 提交于
      FlutterResult is also the name of a class in the Objective-C API
      surface, which is problematic when building a framework that contains
      both (such as a macOS implementation of the Flutter framework).
      474d8837
  23. 19 1月, 2019 1 次提交
  24. 17 1月, 2019 1 次提交
    • C
      Deprecate FlutterProjectArgs.main_path, packages_path (#7497) · 1e93a8eb
      Chris Bracken 提交于
      As of Dart 2, running from Dart source is no longer supported.  Dart
      code should now be compiled to kernel form and will be loaded by from
      kernel.blob in the assets directory. We retain the struct members for ABI
      stability. package_path is also not required since kernel blobs are
      self-contained.
      1e93a8eb
  25. 10 1月, 2019 1 次提交
  26. 08 11月, 2018 1 次提交
  27. 08 9月, 2018 1 次提交
  28. 01 9月, 2018 1 次提交
  29. 29 8月, 2018 1 次提交
  30. 25 8月, 2018 1 次提交
  31. 26 1月, 2018 1 次提交