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

Unified Diff: chrome/views/custom_frame_window.cc

Issue 18804: OpaqueNonClientView cleanup (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 11 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 | « chrome/common/gfx/chrome_canvas.cc ('k') | chrome/views/non_client_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/views/custom_frame_window.cc
===================================================================
--- chrome/views/custom_frame_window.cc (revision 8638)
+++ chrome/views/custom_frame_window.cc (working copy)
@@ -396,7 +396,6 @@
gfx::Size DefaultNonClientView::CalculateWindowSizeForClientSize(
int width,
int height) const {
- int contents_top = CalculateContentsTop();
return gfx::Size(width + (2 * kWindowHorizontalBorderSize),
height + CalculateContentsTop() + kWindowVerticalBorderSize);
}
@@ -447,11 +446,8 @@
if (button_bounds.Contains(point))
return HTSYSMENU;
- component = GetHTComponentForFrame(
- point,
- kResizeAreaSize,
- kResizeAreaCornerSize,
- kResizeAreaNorthSize,
+ component = GetHTComponentForFrame(point, kResizeAreaNorthSize,
+ kResizeAreaSize, kResizeAreaSize, kResizeAreaCornerSize,
container_->window_delegate()->CanResize());
if (component == HTNOWHERE) {
// Finally fall back to the caption.
« no previous file with comments | « chrome/common/gfx/chrome_canvas.cc ('k') | chrome/views/non_client_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698