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

Unified Diff: mash/wm/non_client_frame_controller.cc

Issue 1878303002: mash: Don't draw the window title under chrome tabs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/non_client_frame_controller.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mash/wm/non_client_frame_controller.cc
diff --git a/mash/wm/non_client_frame_controller.cc b/mash/wm/non_client_frame_controller.cc
index f62cb153bb1f2d20f81b21d7b9adc68c19e420f4..81dc82b7fb1f2fb5756d19473babbf45f649742d 100644
--- a/mash/wm/non_client_frame_controller.cc
+++ b/mash/wm/non_client_frame_controller.cc
@@ -256,6 +256,12 @@ bool NonClientFrameController::CanMinimize() const {
mus::mojom::kResizeBehaviorCanMinimize) != 0;
}
+bool NonClientFrameController::ShouldShowWindowTitle() const {
+ // Only draw the title if the client hasn't declared any additional client
+ // areas which might conflict with it.
+ return window_ && window_->additional_client_areas().empty();
+}
+
views::ClientView* NonClientFrameController::CreateClientView(
views::Widget* widget) {
return new ClientViewMus(widget, GetContentsView(), this);
« no previous file with comments | « mash/wm/non_client_frame_controller.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698