| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef UI_VIEWS_CONTROLS_TABBED_PANE_TABBED_PANE_H_ | 5 #ifndef UI_VIEWS_CONTROLS_TABBED_PANE_TABBED_PANE_H_ |
| 6 #define UI_VIEWS_CONTROLS_TABBED_PANE_TABBED_PANE_H_ | 6 #define UI_VIEWS_CONTROLS_TABBED_PANE_TABBED_PANE_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
| 11 #include "ui/views/view.h" | 11 #include "ui/views/view.h" |
| 12 | 12 |
| 13 namespace views { | 13 namespace views { |
| 14 | 14 |
| 15 class Tab; | 15 class Tab; |
| 16 class TabbedPaneListener; | 16 class TabbedPaneListener; |
| 17 class TabStrip; | 17 class TabStrip; |
| 18 | 18 |
| 19 // TabbedPane is a view that shows tabs. When the user clicks on a tab, the | 19 // TabbedPane is a view that shows tabs. When the user clicks on a tab, the |
| 20 // associated view is displayed. | 20 // associated view is displayed. |
| 21 class VIEWS_EXPORT TabbedPane : public View { | 21 class VIEWS_EXPORT TabbedPane : public View { |
| 22 public: | 22 public: |
| 23 // Internal class name. | 23 // Internal class name. |
| 24 static const char kViewClassName[]; | 24 static const char kViewClassName[]; |
| 25 | 25 |
| 26 // |draw_border| indicates whether the tabbed pane should draw a border | 26 TabbedPane(); |
| 27 // around its boundary or not. | |
| 28 explicit TabbedPane(bool draw_border); | |
| 29 virtual ~TabbedPane(); | 27 virtual ~TabbedPane(); |
| 30 | 28 |
| 31 TabbedPaneListener* listener() const { return listener_; } | 29 TabbedPaneListener* listener() const { return listener_; } |
| 32 void set_listener(TabbedPaneListener* listener) { listener_ = listener; } | 30 void set_listener(TabbedPaneListener* listener) { listener_ = listener; } |
| 33 | 31 |
| 34 int selected_tab_index() const { return selected_tab_index_; } | 32 int selected_tab_index() const { return selected_tab_index_; } |
| 35 | 33 |
| 36 // Returns the number of tabs. | 34 // Returns the number of tabs. |
| 37 int GetTabCount(); | 35 int GetTabCount(); |
| 38 | 36 |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 | 81 |
| 84 // The selected tab index or -1 if invalid. | 82 // The selected tab index or -1 if invalid. |
| 85 int selected_tab_index_; | 83 int selected_tab_index_; |
| 86 | 84 |
| 87 DISALLOW_COPY_AND_ASSIGN(TabbedPane); | 85 DISALLOW_COPY_AND_ASSIGN(TabbedPane); |
| 88 }; | 86 }; |
| 89 | 87 |
| 90 } // namespace views | 88 } // namespace views |
| 91 | 89 |
| 92 #endif // UI_VIEWS_CONTROLS_TABBED_PANE_TABBED_PANE_H_ | 90 #endif // UI_VIEWS_CONTROLS_TABBED_PANE_TABBED_PANE_H_ |
| OLD | NEW |