summaryrefslogtreecommitdiffstats
path: root/views/controls/tabbed_pane
diff options
context:
space:
mode:
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-26 18:54:50 +0000
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-26 18:54:50 +0000
commit0aaa52814089919103ffa3fee8081e5124c63875 (patch)
tree4b43ac8931e6beae4d5122803ed8724517e8e07c /views/controls/tabbed_pane
parentf4d92d437ea14ea3a02e95ec837dc6872ca6b183 (diff)
downloadchromium_src-0aaa52814089919103ffa3fee8081e5124c63875.zip
chromium_src-0aaa52814089919103ffa3fee8081e5124c63875.tar.gz
chromium_src-0aaa52814089919103ffa3fee8081e5124c63875.tar.bz2
Convert View::HasFocus() to be const. Required adding const versions of some accessors which in turn prompted me to make some uses of these accessors be a bit more const-correct.
BUG=none TEST=none Review URL: http://codereview.chromium.org/8393024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107403 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/controls/tabbed_pane')
-rw-r--r--views/controls/tabbed_pane/native_tabbed_pane_win.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/views/controls/tabbed_pane/native_tabbed_pane_win.cc b/views/controls/tabbed_pane/native_tabbed_pane_win.cc
index 773761d..e975e4a 100644
--- a/views/controls/tabbed_pane/native_tabbed_pane_win.cc
+++ b/views/controls/tabbed_pane/native_tabbed_pane_win.cc
@@ -66,7 +66,7 @@ class TabLayout : public LayoutManager {
FocusManager* focus_manager = page->GetFocusManager();
DCHECK(focus_manager);
- View* focused_view = focus_manager->GetFocusedView();
+ const View* focused_view = focus_manager->GetFocusedView();
if (focused_view && host->Contains(focused_view) &&
!page->Contains(focused_view))
focus_manager->SetFocusedView(page);