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

Unified Diff: chrome/browser/ui/views/apps/glass_app_window_frame_view_win.cc

Issue 1079913002: [Win] Keep client area the same size as window when fullscreened. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments. Created 5 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
Index: chrome/browser/ui/views/apps/glass_app_window_frame_view_win.cc
diff --git a/chrome/browser/ui/views/apps/glass_app_window_frame_view_win.cc b/chrome/browser/ui/views/apps/glass_app_window_frame_view_win.cc
index 39c12feea213ecbf4972915a409c2d3f9558a999..b45d2881e28e1b581c8b1b80aec8a2108b9b5d5d 100644
--- a/chrome/browser/ui/views/apps/glass_app_window_frame_view_win.cc
+++ b/chrome/browser/ui/views/apps/glass_app_window_frame_view_win.cc
@@ -55,6 +55,9 @@ gfx::Rect GlassAppWindowFrameViewWin::GetBoundsForClientView() const {
gfx::Rect GlassAppWindowFrameViewWin::GetWindowBoundsForClientBounds(
const gfx::Rect& client_bounds) const {
+ if (widget_->IsFullscreen())
+ return bounds();
+
gfx::Insets insets = GetGlassInsets();
// Our bounds are not the same as the window's due to the offset added by
// AppWindowDesktopWindowTreeHostWin::GetClientAreaInsets. So account for it

Powered by Google App Engine
This is Rietveld 408576698