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

Unified Diff: ui/aura/window.cc

Issue 10806055: Fix aura::Window::ContainsPointInRoot(). (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 5 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 | « no previous file | ui/aura/window_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/window.cc
diff --git a/ui/aura/window.cc b/ui/aura/window.cc
index 7f8dd83eb571ec26705c858ec79a3ca364960333..685f644e22c7d655bc07e40dc16287c2397fbc98 100644
--- a/ui/aura/window.cc
+++ b/ui/aura/window.cc
@@ -487,7 +487,8 @@ bool Window::ContainsPointInRoot(const gfx::Point& point_in_root) {
return false;
gfx::Point local_point(point_in_root);
ConvertPointToWindow(root_window, this, &local_point);
- return GetTargetBounds().Contains(local_point);
+ return gfx::Rect(gfx::Point(),
+ GetTargetBounds().size()).Contains(local_point);
oshima 2012/07/21 13:25:04 gfx::Rect(GetTargetBounds().size()).Contains(local
Yusuke Sato 2012/07/23 16:39:42 Done.
}
bool Window::ContainsPoint(const gfx::Point& local_point) {
« no previous file with comments | « no previous file | ui/aura/window_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698