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

Unified Diff: components/exo/display.cc

Issue 2016883002: exo: Remote shell surfaces are not yet resizeable. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit Created 4 years, 7 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 | « no previous file | no next file » | 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 6b39164f8fda8c50212c69ba48515aa7e8e0c909..e40fc94b0b1c3c07b1981b1f5e94832baa5cebda 100644
--- a/components/exo/display.cc
+++ b/components/exo/display.cc
@@ -103,9 +103,9 @@ std::unique_ptr<ShellSurface> Display::CreateShellSurface(Surface* surface) {
return nullptr;
}
- return base::WrapUnique(
- new ShellSurface(surface, nullptr, gfx::Rect(), true, true,
- ash::kShellWindowId_DefaultContainer));
+ return base::WrapUnique(new ShellSurface(
+ surface, nullptr, gfx::Rect(), true /* activatable */,
+ true /* resizeable */, ash::kShellWindowId_DefaultContainer));
}
std::unique_ptr<ShellSurface> Display::CreatePopupShellSurface(
@@ -127,7 +127,8 @@ std::unique_ptr<ShellSurface> Display::CreatePopupShellSurface(
return base::WrapUnique(
new ShellSurface(surface, parent, gfx::Rect(position, gfx::Size(1, 1)),
- false, true, ash::kShellWindowId_DefaultContainer));
+ false /* activatable */, true /* resizeable */,
+ ash::kShellWindowId_DefaultContainer));
}
std::unique_ptr<ShellSurface> Display::CreateRemoteShellSurface(
@@ -142,7 +143,8 @@ std::unique_ptr<ShellSurface> Display::CreateRemoteShellSurface(
}
return base::WrapUnique(new ShellSurface(surface, nullptr, gfx::Rect(1, 1),
- true, true, container));
+ true /* activatable */,
+ false /* resizeable */, container));
}
std::unique_ptr<SubSurface> Display::CreateSubSurface(Surface* surface,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698