forked from flutter/engine
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement all known blink::PointerData fields on iOS. (flutter#3955)
- Loading branch information
1 parent
cc7e71e
commit b08167b
Showing
6 changed files
with
127 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// Copyright 2017 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
#ifndef FLUTTER_FML_PLATFORM_DARWIN_PLATFORM_VERSION_H_ | ||
#define FLUTTER_FML_PLATFORM_DARWIN_PLATFORM_VERSION_H_ | ||
|
||
#include <sys/types.h> | ||
#include "lib/ftl/macros.h" | ||
|
||
namespace fml { | ||
|
||
bool IsPlatformVersionAtLeast(size_t major, size_t minor = 0, size_t patch = 0); | ||
|
||
} // namespace fml | ||
|
||
#endif // FLUTTER_FML_PLATFORM_DARWIN_PLATFORM_VERSION_H_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// Copyright 2017 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
#include "flutter/fml/platform/darwin/platform_version.h" | ||
#include <Foundation/NSProcessInfo.h> | ||
|
||
namespace fml { | ||
|
||
bool IsPlatformVersionAtLeast(size_t major, size_t minor, size_t patch) { | ||
const NSOperatingSystemVersion version = { | ||
.majorVersion = static_cast<NSInteger>(major), | ||
.minorVersion = static_cast<NSInteger>(minor), | ||
.patchVersion = static_cast<NSInteger>(patch), | ||
}; | ||
return [[NSProcessInfo processInfo] isOperatingSystemAtLeastVersion:version]; | ||
} | ||
|
||
} // namespace fml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters