summaryrefslogtreecommitdiffstats
path: root/views/controls/tabbed_pane
diff options
context:
space:
mode:
authorjcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-07 16:51:07 +0000
committerjcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-07 16:51:07 +0000
commit191e5a20da672688d842ad3b5e4c4c7bf8c6c71c (patch)
tree593c9052b68ca3ca24959caadbdcb8d5299f92d7 /views/controls/tabbed_pane
parente4221ad535d561b931bd900db9278825adf36b06 (diff)
downloadchromium_src-191e5a20da672688d842ad3b5e4c4c7bf8c6c71c.zip
chromium_src-191e5a20da672688d842ad3b5e4c4c7bf8c6c71c.tar.gz
chromium_src-191e5a20da672688d842ad3b5e4c4c7bf8c6c71c.tar.bz2
Turns on the focus traversal unit-tests and fixed some focus traversal problem:
- in TabbedPaneView, the focus traversable were not properly hooked-up - the NativeTextField was focusing the wrapper view instead of the actual Textfield view. Also in the FocusTraversal unit-test I had to select one of the radio-button that the test uses, as the behavior of focusing a disabled button is different on Windows (it forces any non disabled radio-button to become selected) than on Gtk. BUG=None TEST=Run the unit tests. Review URL: http://codereview.chromium.org/242163 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28263 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/controls/tabbed_pane')
-rw-r--r--views/controls/tabbed_pane/native_tabbed_pane_gtk.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/views/controls/tabbed_pane/native_tabbed_pane_gtk.cc b/views/controls/tabbed_pane/native_tabbed_pane_gtk.cc
index 96e26df..eb8f5f2 100644
--- a/views/controls/tabbed_pane/native_tabbed_pane_gtk.cc
+++ b/views/controls/tabbed_pane/native_tabbed_pane_gtk.cc
@@ -136,6 +136,8 @@ void NativeTabbedPaneGtk::DoAddTabAtIndex(int index, const std::wstring& title,
WidgetGtk* page_container = new WidgetGtk(WidgetGtk::TYPE_CHILD);
page_container->Init(NULL, gfx::Rect());
page_container->SetContentsView(contents);
+ page_container->SetFocusTraversableParent(GetRootView());
+ page_container->SetFocusTraversableParentView(this);
page_container->Show();
if (!contents->background()) {