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

Unified Diff: chrome/views/view.cc

Issue 13235: Cleanup adding BoundsInWidget to View to convert callers... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 12 years 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
« chrome/views/view.h ('K') | « chrome/views/view.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/views/view.cc
===================================================================
--- chrome/views/view.cc (revision 6273)
+++ chrome/views/view.cc (working copy)
@@ -1333,6 +1333,14 @@
}
}
+gfx::Rect View::BoundsInWidget() {
+ gfx::Rect bounds_in_widget = bounds_;
+ gfx::Point origin;
+ ConvertPointToWidget(this, &origin);
+ bounds_in_widget.set_origin(origin);
+ return bounds_in_widget;
+}
+
/////////////////////////////////////////////////////////////////////////////
//
// View - event handlers
« chrome/views/view.h ('K') | « chrome/views/view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698