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

Unified Diff: ui/views/window/custom_frame_view.cc

Issue 336553002: CustomFrameView Caption Button Inset (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update a test to expose hidden failure, disable. Created 6 years, 6 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/wm/system_gesture_event_filter_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/window/custom_frame_view.cc
diff --git a/ui/views/window/custom_frame_view.cc b/ui/views/window/custom_frame_view.cc
index c20bd8a2d27200247feac166e775ac3c1d1b9118..a3fb3f7c96c8008091ec2765a01815c0237fa2c6 100644
--- a/ui/views/window/custom_frame_view.cc
+++ b/ui/views/window/custom_frame_view.cc
@@ -281,7 +281,11 @@ int CustomFrameView::NonClientTopBorderHeight() const {
int CustomFrameView::CaptionButtonY() const {
// Maximized buttons start at window top so that even if their images aren't
// drawn flush with the screen edge, they still obey Fitts' Law.
- return frame_->IsMaximized() ? FrameBorderThickness() : kFrameBorderThickness;
+#if defined(OS_LINUX) && !defined(OS_CHROMEOS)
+ return FrameBorderThickness();
+#else
+ return frame_->IsMaximized() ? FrameBorderThickness() : kFrameShadowThickness;
+#endif
}
int CustomFrameView::TitlebarBottomThickness() const {
« no previous file with comments | « ash/wm/system_gesture_event_filter_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698