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

Unified Diff: ash/mus/bridge/wm_window_mus.cc

Issue 2227643003: Converts mash to use the common non-client frame (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@native_widget_mus_fix
Patch Set: tweaks Created 4 years, 4 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
Index: ash/mus/bridge/wm_window_mus.cc
diff --git a/ash/mus/bridge/wm_window_mus.cc b/ash/mus/bridge/wm_window_mus.cc
index 1b8db8eca743ac72736fc75a717a0e52cd875fd2..fee32961c931c1258b29605f2ec7b07b6d39627d 100644
--- a/ash/mus/bridge/wm_window_mus.cc
+++ b/ash/mus/bridge/wm_window_mus.cc
@@ -272,7 +272,8 @@ gfx::Rect WmWindowMus::ConvertRectFromScreen(const gfx::Rect& rect) const {
}
gfx::Size WmWindowMus::GetMinimumSize() const {
- return widget_ ? widget_->GetMinimumSize() : gfx::Size();
+ return widget_ && !use_empty_minimum_size_ ? widget_->GetMinimumSize()
+ : gfx::Size();
}
gfx::Size WmWindowMus::GetMaximumSize() const {
@@ -356,6 +357,12 @@ void WmWindowMus::SetIntProperty(WmWindowProperty key, int value) {
return;
}
+ if (key == WmWindowProperty::TOP_VIEW_INSET) {
+ // TODO: need support for TOP_VIEW_INSET: http://crbug.com/615100.
+ NOTIMPLEMENTED();
+ return;
+ }
+
NOTREACHED();
}

Powered by Google App Engine
This is Rietveld 408576698