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

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

Issue 2503623002: Support creation of toplevel mus::Windows on separate displays (Closed)
Patch Set: Reduce code size to convert rect from window to screen coordinate. Created 4 years, 1 month 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
Index: ash/mus/test/wm_test_base.h
diff --git a/ash/mus/test/wm_test_base.h b/ash/mus/test/wm_test_base.h
index 8c17d39f29eff12eae1f9b1ad7ff7056c9f8e89e..1aa21b169837e4e6b8a4d0517c5b7bab3965634c 100644
--- a/ash/mus/test/wm_test_base.h
+++ b/ash/mus/test/wm_test_base.h
@@ -10,6 +10,7 @@
#include "base/macros.h"
#include "testing/gtest/include/gtest/gtest.h"
+#include "ui/display/display.h"
#include "ui/wm/public/window_types.h"
namespace display {
@@ -58,7 +59,11 @@ class WmTestBase : public testing::Test {
ui::Window* CreateTestWindow(const gfx::Rect& bounds);
ui::Window* CreateTestWindow(const gfx::Rect& bounds,
ui::wm::WindowType window_type);
- ui::Window* CreateFullscreenTestWindow();
+
+ // Creates a visibile fullscreen top level window on the display corresponding
+ // to the display_id provided.
+ ui::Window* CreateFullscreenTestWindow(
+ int64_t display_id = display::kInvalidDisplayId);
// Creates a window parented to |parent|. The returned window is visible.
ui::Window* CreateChildTestWindow(ui::Window* parent,

Powered by Google App Engine
This is Rietveld 408576698