From 0aaa52814089919103ffa3fee8081e5124c63875 Mon Sep 17 00:00:00 2001 From: "pkasting@chromium.org" Date: Wed, 26 Oct 2011 18:54:50 +0000 Subject: 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 --- views/controls/tabbed_pane/native_tabbed_pane_win.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'views/controls/tabbed_pane') 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); -- cgit v1.1