Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(88)

Unified Diff: ui/views/controls/tabbed_pane/native_tabbed_pane_views.cc

Issue 10831009: Change the GetSelectedTab method of the NativeTabbedPaneView to return the tab contents. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: " Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/views/controls/tabbed_pane/native_tabbed_pane_views.cc
diff --git a/ui/views/controls/tabbed_pane/native_tabbed_pane_views.cc b/ui/views/controls/tabbed_pane/native_tabbed_pane_views.cc
index 3612b8b0a37d850cc13b91fbb3b88320f72f94ba..2a1b447c4fd82e290c875abac6f7b6e0ee7904bc 100644
--- a/ui/views/controls/tabbed_pane/native_tabbed_pane_views.cc
+++ b/ui/views/controls/tabbed_pane/native_tabbed_pane_views.cc
@@ -359,7 +359,7 @@ int NativeTabbedPaneViews::GetSelectedTabIndex() {
}
View* NativeTabbedPaneViews::GetSelectedTab() {
- return tab_strip_->selected_tab();
+ return content_view_->child_at(GetSelectedTabIndex());
}
View* NativeTabbedPaneViews::GetView() {

Powered by Google App Engine
This is Rietveld 408576698