| 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/string16.h" | 10 #include "base/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 NativeTabbedPaneWrapper; | 15 class NativeTabbedPaneWrapper; |
| 16 class TabbedPaneListener; | 16 class TabbedPaneListener; |
| 17 | 17 |
| 18 // TabbedPane is a view that shows tabs. When the user clicks on a tab, the | 18 // TabbedPane is a view that shows tabs. When the user clicks on a tab, the |
| 19 // associated view is displayed. | 19 // associated view is displayed. |
| 20 class VIEWS_EXPORT TabbedPane : public View { | 20 class VIEWS_EXPORT TabbedPane : public View { |
| 21 public: | 21 public: |
| 22 TabbedPane(); | 22 TabbedPane(bool use_chrome_style); |
| 23 virtual ~TabbedPane(); | 23 virtual ~TabbedPane(); |
| 24 | 24 |
| 25 TabbedPaneListener* listener() const { return listener_; } | 25 TabbedPaneListener* listener() const { return listener_; } |
| 26 void set_listener(TabbedPaneListener* listener) { listener_ = listener; } | 26 void set_listener(TabbedPaneListener* listener) { listener_ = listener; } |
| 27 #if defined(OS_WIN) && !defined(USE_AURA) | 27 #if defined(OS_WIN) && !defined(USE_AURA) |
| 28 bool use_native_win_control() { return use_native_win_control_; } | 28 bool use_native_win_control() { return use_native_win_control_; } |
| 29 void set_use_native_win_control(bool use_native_win_control) { | 29 void set_use_native_win_control(bool use_native_win_control) { |
| 30 use_native_win_control_ = use_native_win_control; | 30 use_native_win_control_ = use_native_win_control; |
| 31 } | 31 } |
| 32 #endif | 32 #endif |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 #if defined(OS_WIN) && !defined(USE_AURA) | 95 #if defined(OS_WIN) && !defined(USE_AURA) |
| 96 bool use_native_win_control_; | 96 bool use_native_win_control_; |
| 97 #endif | 97 #endif |
| 98 | 98 |
| 99 // Our listener. Not owned. Notified when tab selection changes. | 99 // Our listener. Not owned. Notified when tab selection changes. |
| 100 TabbedPaneListener* listener_; | 100 TabbedPaneListener* listener_; |
| 101 | 101 |
| 102 // The accessible name of this tabbed pane. | 102 // The accessible name of this tabbed pane. |
| 103 string16 accessible_name_; | 103 string16 accessible_name_; |
| 104 | 104 |
| 105 // Use new Chrome-style rendering for the tabbed pane. |
| 106 bool use_chrome_style_; |
| 107 |
| 105 DISALLOW_COPY_AND_ASSIGN(TabbedPane); | 108 DISALLOW_COPY_AND_ASSIGN(TabbedPane); |
| 106 }; | 109 }; |
| 107 | 110 |
| 108 } // namespace views | 111 } // namespace views |
| 109 | 112 |
| 110 #endif // UI_VIEWS_CONTROLS_TABBED_PANE_TABBED_PANE_H_ | 113 #endif // UI_VIEWS_CONTROLS_TABBED_PANE_TABBED_PANE_H_ |
| OLD | NEW |