| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "views/examples/tabbed_pane_example.h" | 5 #include "views/examples/tabbed_pane_example.h" |
| 6 | 6 |
| 7 #include "views/grid_layout.h" | 7 #include "views/layout/grid_layout.h" |
| 8 | 8 |
| 9 namespace examples { | 9 namespace examples { |
| 10 | 10 |
| 11 TabbedPaneExample::TabbedPaneExample(ExamplesMain* main) | 11 TabbedPaneExample::TabbedPaneExample(ExamplesMain* main) |
| 12 : ExampleBase(main) { | 12 : ExampleBase(main) { |
| 13 } | 13 } |
| 14 | 14 |
| 15 TabbedPaneExample::~TabbedPaneExample() { | 15 TabbedPaneExample::~TabbedPaneExample() { |
| 16 } | 16 } |
| 17 | 17 |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 tabbed_pane_->GetTabCount(), | 83 tabbed_pane_->GetTabCount(), |
| 84 tabbed_pane_->GetSelectedTabIndex()); | 84 tabbed_pane_->GetSelectedTabIndex()); |
| 85 } | 85 } |
| 86 | 86 |
| 87 void TabbedPaneExample::AddButton(const std::wstring& label) { | 87 void TabbedPaneExample::AddButton(const std::wstring& label) { |
| 88 views::TextButton* button = new views::TextButton(NULL, label); | 88 views::TextButton* button = new views::TextButton(NULL, label); |
| 89 tabbed_pane_->AddTab(label, button); | 89 tabbed_pane_->AddTab(label, button); |
| 90 } | 90 } |
| 91 | 91 |
| 92 } // namespace examples | 92 } // namespace examples |
| OLD | NEW |