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

Unified Diff: ui/aura/window.cc

Issue 10823015: Make Window::ContainsPoint and Window::ContainsPointInRoot const. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
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 | « ui/aura/window.h ('k') | no next file » | 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 12e7787ea3858e9aee511053e46bb8e4f92af3d7..3035ffadd6c6ec50f1341bd594d3195ae6fe4215 100644
--- a/ui/aura/window.cc
+++ b/ui/aura/window.cc
@@ -479,8 +479,8 @@ void Window::RemoveObserver(WindowObserver* observer) {
observers_.RemoveObserver(observer);
}
-bool Window::ContainsPointInRoot(const gfx::Point& point_in_root) {
- Window* root_window = GetRootWindow();
+bool Window::ContainsPointInRoot(const gfx::Point& point_in_root) const {
+ const Window* root_window = GetRootWindow();
if (!root_window)
return false;
gfx::Point local_point(point_in_root);
@@ -488,7 +488,7 @@ bool Window::ContainsPointInRoot(const gfx::Point& point_in_root) {
return gfx::Rect(GetTargetBounds().size()).Contains(local_point);
}
-bool Window::ContainsPoint(const gfx::Point& local_point) {
+bool Window::ContainsPoint(const gfx::Point& local_point) const {
return gfx::Rect(bounds().size()).Contains(local_point);
}
« no previous file with comments | « ui/aura/window.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698