mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Fix typos (flutter/engine#29280)
This commit is contained in:
parent
08976a1807
commit
acdc8a5c8b
@ -202,7 +202,7 @@ def main():
|
||||
default=[])
|
||||
parser.add_argument('--sdk-ext-files',
|
||||
metavar='sdk_ext_files',
|
||||
help='List of .dart files that are part of of sdk_ext.',
|
||||
help='List of .dart files that are part of sdk_ext.',
|
||||
nargs='*',
|
||||
default=[])
|
||||
parser.add_argument('--sdk-ext-mappings',
|
||||
|
||||
@ -30,7 +30,7 @@ class ImmutableBuffer : public RefCountedDartWrappable<ImmutableBuffer> {
|
||||
|
||||
/// Initializes a new ImmutableData from a Dart Uint8List.
|
||||
///
|
||||
/// The zero indexed argument is the the caller that will be registered as the
|
||||
/// The zero indexed argument is the caller that will be registered as the
|
||||
/// Dart peer of the native ImmutableBuffer object.
|
||||
///
|
||||
/// The first indexed argumented is a tonic::Uint8List of bytes to copy.
|
||||
|
||||
@ -1157,7 +1157,7 @@ class FontFeature {
|
||||
///
|
||||
/// {@tool sample --template=stateless_widget}
|
||||
///
|
||||
/// The Piazzolla font supports the `ssXX` feature for for more
|
||||
/// The Piazzolla font supports the `ssXX` feature for more
|
||||
/// elaborate stylistic effects. Set 1 turns some Latin characters
|
||||
/// into Roman numerals, set 2 enables some ASCII characters to be
|
||||
/// used to create pretty arrows, and so forth.
|
||||
@ -3479,7 +3479,7 @@ class ParagraphBuilder extends NativeFieldWrapperClass1 {
|
||||
/// [PlaceholderAlignment.aboveBaseline], and [PlaceholderAlignment.belowBaseline]
|
||||
/// alignment modes are used, the baseline needs to be set with the `baseline`.
|
||||
/// When using [PlaceholderAlignment.baseline], `baselineOffset` indicates the distance
|
||||
/// of the baseline down from the top of of the rectangle. The default `baselineOffset`
|
||||
/// of the baseline down from the top of the rectangle. The default `baselineOffset`
|
||||
/// is the `height`.
|
||||
///
|
||||
/// Examples:
|
||||
|
||||
@ -83,7 +83,7 @@ class AssetManager {
|
||||
class AssetManagerException implements Exception {
|
||||
/// Http request url for asset.
|
||||
final String url;
|
||||
/// Http status of of response.
|
||||
/// Http status of response.
|
||||
final int httpStatus;
|
||||
|
||||
/// Initializes exception with request url and http status.
|
||||
|
||||
@ -145,7 +145,7 @@ class RuntimeController : public PlatformConfigurationClient {
|
||||
std::unique_ptr<IsolateConfiguration> isolate_configuration);
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
/// @brief Clone the the runtime controller. Launching an isolate with a
|
||||
/// @brief Clone the runtime controller. Launching an isolate with a
|
||||
/// cloned runtime controller will use the same snapshots and
|
||||
/// copies all window data to the new instance. This is usually
|
||||
/// only used in the debug runtime mode to support the
|
||||
@ -311,7 +311,7 @@ class RuntimeController : public PlatformConfigurationClient {
|
||||
/// the VM. There is a “small” pause that occurs when the concurrent mark is
|
||||
/// initiated and another pause when the mark concludes and a sweep is
|
||||
/// initiated.
|
||||
/// * If the total allocations exceeds the the hard threshold, a “big”
|
||||
/// * If the total allocations exceeds the hard threshold, a “big”
|
||||
/// stop-the-world pause is initiated.
|
||||
/// * If after either the sweep after the concurrent mark, or, the
|
||||
/// stop-the-world pause, the consumption returns to be below the soft
|
||||
@ -334,7 +334,7 @@ class RuntimeController : public PlatformConfigurationClient {
|
||||
/// the concurrent mark initiated by either reaching the soft threshold or
|
||||
/// an explicit NotifyIdle.
|
||||
/// * If you are running out of memory, its because too many large objects
|
||||
/// were allocation and remained reachable such that the the old space kept
|
||||
/// were allocation and remained reachable such that the old space kept
|
||||
/// growing till it could grow no more.
|
||||
/// * At the edges of allocation thresholds, failures can occur gracefully if
|
||||
/// the instigating allocation was made in the Dart VM or rather gracelessly
|
||||
|
||||
@ -60,9 +60,9 @@ public class KeyboardManager {
|
||||
* Constructor for {@link KeyboardManager} that takes a list of {@link
|
||||
* KeyboardManager.Responder}s.
|
||||
*
|
||||
* <p>The view is used as the destination to send the synthesized key to. This means that the the
|
||||
* next thing in the focus chain will get the event when the {@link KeyboardManager.Responder}s
|
||||
* return false from onKeyDown/onKeyUp.
|
||||
* <p>The view is used as the destination to send the synthesized key to. This means that the next
|
||||
* thing in the focus chain will get the event when the {@link KeyboardManager.Responder}s return
|
||||
* false from onKeyDown/onKeyUp.
|
||||
*
|
||||
* <p>It is possible that that in the middle of the async round trip, the focus chain could
|
||||
* change, and instead of the native widget that was "next" when the event was fired getting the
|
||||
|
||||
@ -62,7 +62,7 @@ public class RestorationChannel {
|
||||
*/
|
||||
public final boolean waitForRestorationData;
|
||||
|
||||
// Holds the the most current restoration data which may have been provided by the engine
|
||||
// Holds the most current restoration data which may have been provided by the engine
|
||||
// via "setRestorationData" or by the framework via the method channel. This is the data the
|
||||
// framework should be restored to in case the app is terminated.
|
||||
private byte[] restorationData;
|
||||
|
||||
@ -50,7 +50,7 @@ FLUTTER_DARWIN_EXPORT
|
||||
- (void)textureFrameAvailable:(int64_t)textureId;
|
||||
/**
|
||||
* Unregisters a `FlutterTexture` that has previously regeistered with `registerTexture:`. Textures
|
||||
* must be unregistered on the the platform thread.
|
||||
* must be unregistered on the platform thread.
|
||||
*
|
||||
* @param textureId The result that was previously returned from `registerTexture:`.
|
||||
*/
|
||||
|
||||
@ -611,7 +611,7 @@ std::shared_ptr<FlutterPlatformViewLayer> FlutterPlatformViewsController::GetLay
|
||||
|
||||
UIView* overlay_view = layer->overlay_view.get();
|
||||
// Set the size of the overlay view.
|
||||
// This size is equal to the the device screen size.
|
||||
// This size is equal to the device screen size.
|
||||
overlay_view.frame = flutter_view_.get().bounds;
|
||||
|
||||
std::unique_ptr<SurfaceFrame> frame = layer->surface->AcquireFrame(frame_size_);
|
||||
|
||||
@ -22,7 +22,7 @@ namespace flutter {
|
||||
/// contexts on iOS. On-screen contexts are used by Flutter for
|
||||
/// rendering into the surface. The lifecycle of this context may be
|
||||
/// tied to the lifecycle of the surface. On the other hand, the
|
||||
/// lifecycle of the the off-screen context it tied to that of the
|
||||
/// lifecycle of the off-screen context it tied to that of the
|
||||
/// platform view. This one object used to manage both context
|
||||
/// because GPU handles may need to be shared between the two
|
||||
/// context. To achieve this, context may need references to one
|
||||
|
||||
@ -47,7 +47,7 @@ struct EmbeddedViewInfo {
|
||||
// returned EmbeddedViewInfo, which the caller can use to embed the child.
|
||||
// For example, an interface to a ViewProvider is obtained, a pair of
|
||||
// zx::eventpairs is created, CreateView is called, etc. This encapsulates
|
||||
// the boilerplate the the client would otherwise write themselves.
|
||||
// the boilerplate the client would otherwise write themselves.
|
||||
EmbeddedViewInfo LaunchComponentAndCreateView(
|
||||
const fuchsia::sys::LauncherPtr& launcher,
|
||||
const std::string& component_url,
|
||||
|
||||
@ -35,7 +35,7 @@ struct _FlPluginRegistryInterface {
|
||||
* @registry: an #FlPluginRegistry.
|
||||
* @name: plugin name.
|
||||
*
|
||||
* Gets the plugin registrar for the the plugin with @name.
|
||||
* Gets the plugin registrar for the plugin with @name.
|
||||
*
|
||||
* Returns: (transfer full): an #FlPluginRegistrar.
|
||||
*/
|
||||
@ -48,7 +48,7 @@ struct _FlPluginRegistryInterface {
|
||||
* @registry: an #FlPluginRegistry.
|
||||
* @name: plugin name.
|
||||
*
|
||||
* Gets the plugin registrar for the the plugin with @name.
|
||||
* Gets the plugin registrar for the plugin with @name.
|
||||
*
|
||||
* Returns: (transfer full): an #FlPluginRegistrar.
|
||||
*/
|
||||
|
||||
@ -31,10 +31,10 @@ struct CpuUsageInfo {
|
||||
};
|
||||
|
||||
/**
|
||||
* @brief Memory usage stats. `dirty_memory_usage` is the the memory usage (in
|
||||
* @brief Memory usage stats. `dirty_memory_usage` is the memory usage (in
|
||||
* MB) such that the app uses its physical memory for dirty memory. Dirty memory
|
||||
* is the memory data that cannot be paged to disk. `owned_shared_memory_usage`
|
||||
* is the memory usage (in MB) such that the app uses its physicaal memory for
|
||||
* is the memory usage (in MB) such that the app uses its physical memory for
|
||||
* shared memory, including loaded frameworks and executables. On iOS, it's
|
||||
* `physical memory - dirty memory`.
|
||||
*/
|
||||
|
||||
@ -14,7 +14,7 @@ For the main ax code, the following parts were not imported:
|
||||
|
||||
Update to this Library
|
||||
==============
|
||||
Bug fixes to the forked files in the the four directories should proceed as usual.
|
||||
Bug fixes to the forked files in the four directories should proceed as usual.
|
||||
New features or changes that change the behaviors of these classes are discouraged.
|
||||
|
||||
If you do need to make such change, please log the change at the end of this file.
|
||||
|
||||
@ -30,11 +30,11 @@ def main():
|
||||
description="Generate response file for FIDL frontend")
|
||||
parser.add_argument(
|
||||
"--out-response-file",
|
||||
help="The path for for the response file to generate",
|
||||
help="The path for the response file to generate",
|
||||
required=True)
|
||||
parser.add_argument(
|
||||
"--out-libraries",
|
||||
help="The path for for the libraries file to generate",
|
||||
help="The path for the libraries file to generate",
|
||||
required=True)
|
||||
parser.add_argument(
|
||||
"--json", help="The path for the JSON file to generate, if any")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user