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

Side by Side Diff: chrome/browser/ui/views/apps/glass_app_window_frame_view_win.cc

Issue 659883002: Enable hidpi on Linux, refactor a bit on Windows to share Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: constants Created 6 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/views/apps/glass_app_window_frame_view_win.h" 5 #include "chrome/browser/ui/views/apps/glass_app_window_frame_view_win.h"
6 6
7 #include "extensions/browser/app_window/native_app_window.h" 7 #include "extensions/browser/app_window/native_app_window.h"
8 #include "ui/base/hit_test.h" 8 #include "ui/base/hit_test.h"
9 #include "ui/gfx/win/dpi.h" 9 #include "ui/gfx/dpi.h"
10 #include "ui/views/widget/widget.h" 10 #include "ui/views/widget/widget.h"
11 #include "ui/views/widget/widget_delegate.h" 11 #include "ui/views/widget/widget_delegate.h"
12 12
13 namespace { 13 namespace {
14 14
15 const int kResizeAreaCornerSize = 16; 15 const int kResizeAreaCornerSize = 16;
16 16
17 } // namespace 17 } // namespace
18 18
19 const char GlassAppWindowFrameViewWin::kViewClassName[] = 19 const char GlassAppWindowFrameViewWin::kViewClassName[] =
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 gfx::Size max_size = widget_->client_view()->GetMaximumSize(); 130 gfx::Size max_size = widget_->client_view()->GetMaximumSize();
131 131
132 gfx::Insets insets = GetGlassInsets(); 132 gfx::Insets insets = GetGlassInsets();
133 if (max_size.width()) 133 if (max_size.width())
134 max_size.Enlarge(insets.left() + insets.right(), 0); 134 max_size.Enlarge(insets.left() + insets.right(), 0);
135 if (max_size.height()) 135 if (max_size.height())
136 max_size.Enlarge(0, insets.top() + insets.bottom()); 136 max_size.Enlarge(0, insets.top() + insets.bottom());
137 137
138 return max_size; 138 return max_size;
139 } 139 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698