summaryrefslogtreecommitdiffstats
path: root/views
diff options
context:
space:
mode:
authorsky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-13 22:11:03 +0000
committersky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-13 22:11:03 +0000
commit5e26d9d482761e38a15f8cb987294d979bc58576 (patch)
treefb218ddc03bb4e3a3996c114c5ad3aa40a0e6914 /views
parent7cd70c394eeaeb6a93a8e28142942b5584f01e2d (diff)
downloadchromium_src-5e26d9d482761e38a15f8cb987294d979bc58576.zip
chromium_src-5e26d9d482761e38a15f8cb987294d979bc58576.tar.gz
chromium_src-5e26d9d482761e38a15f8cb987294d979bc58576.tar.bz2
Refactors TabStrip code for better sharing between TabStrip and
SideTabStrip. I still have a bunch of cleanup to do, but this is a good checkpoint. BUG=none TEST=none Review URL: http://codereview.chromium.org/2037012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47202 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views')
-rw-r--r--views/view.cc2
-rw-r--r--views/view.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/views/view.cc b/views/view.cc
index 4978003..5cb4f0e 100644
--- a/views/view.cc
+++ b/views/view.cc
@@ -860,7 +860,7 @@ bool View::IsParentOf(View* v) const {
return false;
}
-int View::GetChildIndex(View* v) const {
+int View::GetChildIndex(const View* v) const {
for (int i = 0, count = GetChildViewCount(); i < count; i++) {
if (v == GetChildViewAt(i))
return i;
diff --git a/views/view.h b/views/view.h
index 68d583d..83247e6 100644
--- a/views/view.h
+++ b/views/view.h
@@ -445,7 +445,7 @@ class View : public AcceleratorTarget {
// Returns the index of the specified |view| in this view's children, or -1
// if the specified view is not a child of this view.
- int GetChildIndex(View* v) const;
+ int GetChildIndex(const View* v) const;
// Returns true if the specified view is a direct or indirect child of this
// view.