summaryrefslogtreecommitdiffstats
path: root/chrome/views/view.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/views/view.cc')
-rw-r--r--chrome/views/view.cc18
1 files changed, 13 insertions, 5 deletions
diff --git a/chrome/views/view.cc b/chrome/views/view.cc
index 07061b3..7ace91d 100644
--- a/chrome/views/view.cc
+++ b/chrome/views/view.cc
@@ -668,11 +668,15 @@ void View::GetHitTestMask(gfx::Path* mask) const {
DCHECK(mask);
}
-void View::ViewHierarchyChanged(bool is_add, View *parent, View *child) {
+void View::ViewHierarchyChanged(bool is_add,
+ View* parent,
+ View* child) {
}
void View::ViewHierarchyChangedImpl(bool register_accelerators,
- bool is_add, View *parent, View *child) {
+ bool is_add,
+ View* parent,
+ View* child) {
if (register_accelerators) {
if (is_add) {
// If you get this registration, you are part of a subtree that has been
@@ -1253,18 +1257,22 @@ bool View::EnumerateFloatingViewsForInterval(int low_bound, int high_bound,
}
// static
-void View::ConvertPointToView(View* src, View* dst, gfx::Point* point) {
+void View::ConvertPointToView(const View* src,
+ const View* dst,
+ gfx::Point* point) {
ConvertPointToView(src, dst, point, true);
}
// static
-void View::ConvertPointToView(View* src, View* dst, gfx::Point* point,
+void View::ConvertPointToView(const View* src,
+ const View* dst,
+ gfx::Point* point,
bool try_other_direction) {
// src can be NULL
DCHECK(dst);
DCHECK(point);
- View* v;
+ const View* v;
gfx::Point offset;
for (v = dst; v && v != src; v = v->GetParent()) {