Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2792)

Unified Diff: ash/mus/test/wm_test_base.cc

Issue 2150933003: mash: Add touch-hud app. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/mus/test/wm_test_base.h ('k') | ash/touch_hud/mus/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/mus/test/wm_test_base.cc
diff --git a/ash/mus/test/wm_test_base.cc b/ash/mus/test/wm_test_base.cc
index 492053751f011d5726f7c01803357c05aef3d179..366cd5afda60c4e30574cb3592171f5f9e53448c 100644
--- a/ash/mus/test/wm_test_base.cc
+++ b/ash/mus/test/wm_test_base.cc
@@ -173,6 +173,18 @@ display::Display WmTestBase::GetSecondaryDisplay() {
return window;
}
+::ui::Window* WmTestBase::CreateFullscreenTestWindow() {
+ std::map<std::string, std::vector<uint8_t>> properties;
+ properties[::ui::mojom::WindowManager::kShowState_Property] =
+ mojo::ConvertTo<std::vector<uint8_t>>(
+ static_cast<int32_t>(ui::mojom::ShowState::FULLSCREEN));
+ ::ui::Window* window =
+ GetRootsOrderedByDisplayId()[0]->window_manager()->NewTopLevelWindow(
+ &properties);
+ window->SetVisible(true);
+ return window;
+}
+
::ui::Window* WmTestBase::CreateChildTestWindow(::ui::Window* parent,
const gfx::Rect& bounds) {
std::map<std::string, std::vector<uint8_t>> properties;
« no previous file with comments | « ash/mus/test/wm_test_base.h ('k') | ash/touch_hud/mus/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698