[fuchsia] Use GraphicalPresenter to show windows when launched in CFv2
Under Component Framework v1 Chrome implements the ViewProvider protocol,
providing a single View to the system, within which top-level windows
are nested as child Views.
Chrome now has a command-line option --use-graphical-presenter that
configures it to use fuchsia.element.GraphicalPresenter to present a
separate top-level View for each top-level window, greatly simplifying
the presentation logic and improving the user experience. This new
mode is always used under Component Framework v2.
Bug: 1284806
Change-Id: I3755aba55caccd061639219598c31c43057e265d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3372630
Reviewed-by: Robert Sesek <[email protected]>
Auto-Submit: Wez <[email protected]>
Reviewed-by: Benjamin Lerman <[email protected]>
Commit-Queue: Wez <[email protected]>
Cr-Commit-Position: refs/heads/main@{#958923}
diff --git a/chrome/browser/BUILD.gn b/chrome/browser/BUILD.gn
index f08e358..b42790c 100644
--- a/chrome/browser/BUILD.gn
+++ b/chrome/browser/BUILD.gn
@@ -5910,8 +5910,11 @@
]
deps += [
+ "//third_party/fuchsia-sdk/sdk/fidl/fuchsia.element",
"//third_party/fuchsia-sdk/sdk/fidl/fuchsia.ui.app",
+ "//third_party/fuchsia-sdk/sdk/fidl/fuchsia.ui.composition",
"//third_party/fuchsia-sdk/sdk/fidl/fuchsia.ui.scenic",
+ "//third_party/fuchsia-sdk/sdk/fidl/fuchsia.ui.views",
"//third_party/fuchsia-sdk/sdk/pkg/scenic_cpp",
"//third_party/fuchsia-sdk/sdk/pkg/sys_cpp",
"//ui/platform_window",