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.
Add shell api to set default for windows data (flutter#14002)
- Loading branch information
Showing
16 changed files
with
158 additions
and
78 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
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,12 @@ | ||
// Copyright 2013 The Flutter 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/runtime/window_data.h" | ||
|
||
namespace flutter { | ||
WindowData::WindowData() = default; | ||
|
||
WindowData::~WindowData() = default; | ||
|
||
} // namespace flutter |
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,48 @@ | ||
// Copyright 2013 The Flutter 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_RUNTIME_WINDOW_DATA_H_ | ||
#define FLUTTER_RUNTIME_WINDOW_DATA_H_ | ||
|
||
#include "flutter/lib/ui/window/viewport_metrics.h" | ||
|
||
#include <memory> | ||
#include <string> | ||
#include <vector> | ||
|
||
namespace flutter { | ||
|
||
//------------------------------------------------------------------------------ | ||
/// The struct of platform-specific data used for initializing ui.Window. | ||
/// | ||
/// framework may request data from ui.Window before platform is properly | ||
/// configured. Engine this struct to set the desired default value for | ||
/// ui.Window when creating Shell before platform is ready to send the real | ||
/// data. | ||
/// | ||
/// See also: | ||
/// | ||
/// * flutter::Shell::Create, which takes a window_data to initialize the | ||
/// ui.Window attached to it. | ||
struct WindowData { | ||
WindowData(); | ||
|
||
~WindowData(); | ||
|
||
ViewportMetrics viewport_metrics; | ||
std::string language_code; | ||
std::string country_code; | ||
std::string script_code; | ||
std::string variant_code; | ||
std::vector<std::string> locale_data; | ||
std::string user_settings_data = "{}"; | ||
std::string lifecycle_state; | ||
bool semantics_enabled = false; | ||
bool assistive_technology_enabled = false; | ||
int32_t accessibility_feature_flags_ = 0; | ||
}; | ||
|
||
} // namespace flutter | ||
|
||
#endif // FLUTTER_RUNTIME_WINDOW_DATA_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
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
Oops, something went wrong.