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

Unified Diff: ui/views/examples/tabbed_pane_example.cc

Issue 2415633002: TabbedPane: refactor away manual layout and selected_tab_index_ (Closed)
Patch Set: nits for msw Created 4 years, 2 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
« no previous file with comments | « ui/views/controls/tabbed_pane/tabbed_pane_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/examples/tabbed_pane_example.cc
diff --git a/ui/views/examples/tabbed_pane_example.cc b/ui/views/examples/tabbed_pane_example.cc
index 087c77bf0df46c8d2feb1afeb8bed7119ff59867..524fec6c99a7d15dd1bf864f36825508502c708d 100644
--- a/ui/views/examples/tabbed_pane_example.cc
+++ b/ui/views/examples/tabbed_pane_example.cc
@@ -40,6 +40,7 @@ void TabbedPaneExample::CreateExampleView(View* container) {
// Create a few tabs with a button first.
AddButton("Tab 1");
AddButton("Tab 2");
+ AddButton("Tab 3");
// Add control buttons horizontally.
const int button_column = 1;
@@ -76,7 +77,7 @@ void TabbedPaneExample::TabSelectedAt(int index) {
void TabbedPaneExample::PrintStatus() {
ExampleBase::PrintStatus("Tab Count:%d, Selected Tab:%d",
tabbed_pane_->GetTabCount(),
- tabbed_pane_->selected_tab_index());
+ tabbed_pane_->GetSelectedTabIndex());
}
void TabbedPaneExample::AddButton(const std::string& label) {
« no previous file with comments | « ui/views/controls/tabbed_pane/tabbed_pane_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698