OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 VIEWS_CONTROLS_TABBED_PANE_NATIVE_TABBED_PANE_GTK_H_ | 5 #ifndef VIEWS_CONTROLS_TABBED_PANE_NATIVE_TABBED_PANE_GTK_H_ |
6 #define VIEWS_CONTROLS_TABBED_PANE_NATIVE_TABBED_PANE_GTK_H_ | 6 #define VIEWS_CONTROLS_TABBED_PANE_NATIVE_TABBED_PANE_GTK_H_ |
7 | 7 |
8 #include "views/controls/native_control_gtk.h" | 8 #include "views/controls/native_control_gtk.h" |
9 #include "views/controls/tabbed_pane/native_tabbed_pane_wrapper.h" | 9 #include "views/controls/tabbed_pane/native_tabbed_pane_wrapper.h" |
10 | 10 |
11 namespace views { | 11 namespace views { |
(...skipping 12 matching lines...) Expand all Loading... |
24 const std::wstring& title, | 24 const std::wstring& title, |
25 View* contents, | 25 View* contents, |
26 bool select_if_first_tab); | 26 bool select_if_first_tab); |
27 virtual View* RemoveTabAtIndex(int index); | 27 virtual View* RemoveTabAtIndex(int index); |
28 virtual void SelectTabAt(int index); | 28 virtual void SelectTabAt(int index); |
29 virtual int GetTabCount(); | 29 virtual int GetTabCount(); |
30 virtual int GetSelectedTabIndex(); | 30 virtual int GetSelectedTabIndex(); |
31 virtual View* GetSelectedTab(); | 31 virtual View* GetSelectedTab(); |
32 virtual View* GetView(); | 32 virtual View* GetView(); |
33 virtual void SetFocus(); | 33 virtual void SetFocus(); |
| 34 virtual gfx::Size GetPreferredSize(); |
34 virtual gfx::NativeView GetTestingHandle() const; | 35 virtual gfx::NativeView GetTestingHandle() const; |
35 | 36 |
36 // NativeControlGtk overrides. | 37 // NativeControlGtk overrides. |
37 virtual void CreateNativeControl(); | 38 virtual void CreateNativeControl(); |
38 | 39 |
39 // View override: | 40 // View override: |
40 virtual FocusTraversable* GetFocusTraversable(); | 41 virtual FocusTraversable* GetFocusTraversable(); |
41 | 42 |
42 private: | 43 private: |
43 void DoAddTabAtIndex(int index, | 44 void DoAddTabAtIndex(int index, |
(...skipping 14 matching lines...) Expand all Loading... |
58 | 59 |
59 // The tabbed-pane we are bound to. | 60 // The tabbed-pane we are bound to. |
60 TabbedPane* tabbed_pane_; | 61 TabbedPane* tabbed_pane_; |
61 | 62 |
62 DISALLOW_COPY_AND_ASSIGN(NativeTabbedPaneGtk); | 63 DISALLOW_COPY_AND_ASSIGN(NativeTabbedPaneGtk); |
63 }; | 64 }; |
64 | 65 |
65 } // namespace views | 66 } // namespace views |
66 | 67 |
67 #endif // VIEWS_CONTROLS_TABBED_PANE_NATIVE_TABBED_PANE_GTK_H_ | 68 #endif // VIEWS_CONTROLS_TABBED_PANE_NATIVE_TABBED_PANE_GTK_H_ |
OLD | NEW |