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

Side by Side Diff: views/controls/resize_area.cc

Issue 3048043: Merge 53732 - Make the resize gripper invisible.... (Closed) Base URL: svn://svn.chromium.org/chrome/branches/472/src/
Patch Set: Created 10 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « views/controls/resize_area.h ('k') | views/controls/resize_gripper.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "views/controls/resize_area.h" 5 #include "views/controls/resize_area.h"
6 6
7 #include "app/resource_bundle.h" 7 #include "app/resource_bundle.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 9
10 namespace views { 10 namespace views {
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 78
79 void ResizeArea::ReportResizeAmount(int resize_amount, bool last_update) { 79 void ResizeArea::ReportResizeAmount(int resize_amount, bool last_update) {
80 gfx::Point point(resize_amount, 0); 80 gfx::Point point(resize_amount, 0);
81 View::ConvertPointToScreen(this, &point); 81 View::ConvertPointToScreen(this, &point);
82 resize_amount = point.x() - initial_position_; 82 resize_amount = point.x() - initial_position_;
83 delegate_->OnResize(base::i18n::IsRTL() ? -resize_amount : resize_amount, 83 delegate_->OnResize(base::i18n::IsRTL() ? -resize_amount : resize_amount,
84 last_update); 84 last_update);
85 } 85 }
86 86
87 } // namespace views 87 } // namespace views
OLDNEW
« no previous file with comments | « views/controls/resize_area.h ('k') | views/controls/resize_gripper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698