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

Unified Diff: mash/wm/frame/non_client_frame_view_mash.cc

Issue 1994763002: Wires up WorkspaceLayoutManager in mash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: data deps 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 | « mash/wm/bridge/wm_window_mus.cc ('k') | mash/wm/non_client_frame_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mash/wm/frame/non_client_frame_view_mash.cc
diff --git a/mash/wm/frame/non_client_frame_view_mash.cc b/mash/wm/frame/non_client_frame_view_mash.cc
index 320d7689f3a3b570b1ec950782885133196c95ea..d0fd849e82cc495820e2edbacd4a3f6c992ab745 100644
--- a/mash/wm/frame/non_client_frame_view_mash.cc
+++ b/mash/wm/frame/non_client_frame_view_mash.cc
@@ -260,6 +260,12 @@ const char* NonClientFrameViewMash::GetClassName() const {
}
gfx::Size NonClientFrameViewMash::GetMinimumSize() const {
+ // If the client area is empty we assume the client is rendering everything
+ // and the window can be resized to anything.
+ // TODO(sky): we need a minimum-size property.
+ if (window_->client_area().IsEmpty())
+ return gfx::Size();
+
gfx::Size min_client_view_size(frame_->client_view()->GetMinimumSize());
return gfx::Size(
std::max(header_view_->GetMinimumWidth(), min_client_view_size.width()),
« no previous file with comments | « mash/wm/bridge/wm_window_mus.cc ('k') | mash/wm/non_client_frame_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698