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

Unified Diff: components/exo/display.cc

Issue 2706543002: exo: Synchronize multi-display window positioning (Closed)
Patch Set: Address nit Created 3 years, 10 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 | « components/exo/display.h ('k') | components/exo/display_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/exo/display.cc
diff --git a/components/exo/display.cc b/components/exo/display.cc
index 4216d8af9a2a8c148c081b031a15fa8bdf161880..44b975a24256036c792f93acae4a79d0cd3aa28c 100644
--- a/components/exo/display.cc
+++ b/components/exo/display.cc
@@ -179,6 +179,7 @@ std::unique_ptr<ShellSurface> Display::CreatePopupShellSurface(
std::unique_ptr<ShellSurface> Display::CreateRemoteShellSurface(
Surface* surface,
+ const gfx::Point& origin,
int container) {
TRACE_EVENT2("exo", "Display::CreateRemoteShellSurface", "surface",
surface->AsTracedValue(), "container", container);
@@ -192,7 +193,7 @@ std::unique_ptr<ShellSurface> Display::CreateRemoteShellSurface(
bool can_minimize = container != ash::kShellWindowId_SystemModalContainer;
return base::MakeUnique<ShellSurface>(
- surface, nullptr, ShellSurface::BoundsMode::CLIENT, gfx::Point(),
+ surface, nullptr, ShellSurface::BoundsMode::CLIENT, origin,
true /* activatable */, can_minimize, container);
}
« no previous file with comments | « components/exo/display.h ('k') | components/exo/display_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698