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

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: feedback 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
« no previous file with comments | « ash/mus/bridge/wm_window_mus.h ('k') | ash/mus/bridge/wm_window_mus_test_api.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..d779cf4ec90edc4f0d88f0c55e6fc8ef80a5131a 100644
--- a/ash/mus/bridge/wm_window_mus.cc
+++ b/ash/mus/bridge/wm_window_mus.cc
@@ -272,7 +272,9 @@ 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_for_testing_
+ ? widget_->GetMinimumSize()
+ : gfx::Size();
}
gfx::Size WmWindowMus::GetMaximumSize() const {
@@ -356,6 +358,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();
}
« no previous file with comments | « ash/mus/bridge/wm_window_mus.h ('k') | ash/mus/bridge/wm_window_mus_test_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698