summaryrefslogtreecommitdiffstats
path: root/ui/views/window
diff options
context:
space:
mode:
authormgiuca@chromium.org <mgiuca@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-19 05:50:09 +0000
committermgiuca@chromium.org <mgiuca@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-19 05:50:09 +0000
commit945af5d4222904b49163594cd72ffe3c4ba99dbb (patch)
tree03085fcc1e25214cf3f54a5985b8c65d2ec567a5 /ui/views/window
parent34bb99224e819b85862b9012c475ff828b625f53 (diff)
downloadchromium_src-945af5d4222904b49163594cd72ffe3c4ba99dbb.zip
chromium_src-945af5d4222904b49163594cd72ffe3c4ba99dbb.tar.gz
chromium_src-945af5d4222904b49163594cd72ffe3c4ba99dbb.tar.bz2
CustomFrameView: Do not show borders if the window is full-screen.
Fixes full screen on Chrome apps on Linux for windows with frame: chrome. Previously, the title bar would be visible even in full-screen. BUG=339370 TEST=Chrome app with frame: chrome; make full screen (eg window-state-sample). Should have no visible borders. Review URL: https://codereview.chromium.org/196943007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@257855 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/views/window')
-rw-r--r--ui/views/window/custom_frame_view.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/views/window/custom_frame_view.cc b/ui/views/window/custom_frame_view.cc
index 1dbd9fb..9896b0f 100644
--- a/ui/views/window/custom_frame_view.cc
+++ b/ui/views/window/custom_frame_view.cc
@@ -317,6 +317,9 @@ gfx::Rect CustomFrameView::IconBounds() const {
}
bool CustomFrameView::ShouldShowTitleBarAndBorder() const {
+ if (frame_->IsFullscreen())
+ return false;
+
if (ViewsDelegate::views_delegate) {
return !ViewsDelegate::views_delegate->WindowManagerProvidesTitleBar(
frame_->IsMaximized());