Constify the params of a couple View functions, which I'll need for an upcoming change to be able to call these from someone else's const member function.
Also fixes a couple cases of wrong parameter wrapping/"*" binding.
Review URL: http://codereview.chromium.org/18251
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8057 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/views/view.h b/chrome/views/view.h
index a3ecc68e..f7d99064 100644
--- a/chrome/views/view.h
+++ b/chrome/views/view.h
@@ -675,8 +675,8 @@
// If source and dst are not in the same View hierarchy, the result is
// undefined.
// Source can be NULL in which case it means the screen coordinate system
- static void ConvertPointToView(View* src,
- View* dst,
+ static void ConvertPointToView(const View* src,
+ const View* dst,
gfx::Point* point);
// Convert a point from the coordinate system of a View to that of the
@@ -1173,13 +1173,15 @@
// Takes care of registering/unregistering accelerators if
// |register_accelerators| true and calls ViewHierarchyChanged().
void ViewHierarchyChangedImpl(bool register_accelerators,
- bool is_add, View *parent, View *child);
+ bool is_add,
+ View* parent,
+ View* child);
// This is the actual implementation for ConvertPointToView()
// Attempts a parent -> child conversion and then a
// child -> parent conversion if try_other_direction is true
- static void ConvertPointToView(View* src,
- View *dst,
+ static void ConvertPointToView(const View* src,
+ const View* dst,
gfx::Point* point,
bool try_other_direction);