| 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_WRAPPER_H_ | 5 #ifndef VIEWS_CONTROLS_TABBED_PANE_NATIVE_TABBED_PANE_WRAPPER_H_ |
| 6 #define VIEWS_CONTROLS_TABBED_PANE_NATIVE_TABBED_PANE_WRAPPER_H_ | 6 #define VIEWS_CONTROLS_TABBED_PANE_NATIVE_TABBED_PANE_WRAPPER_H_ |
| 7 | 7 |
| 8 namespace views { | 8 namespace views { |
| 9 | 9 |
| 10 class TabbedPane; | 10 class TabbedPane; |
| 11 class View; | 11 class View; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 | 49 |
| 50 // Returns the contents of the selected tab. | 50 // Returns the contents of the selected tab. |
| 51 virtual View* GetSelectedTab() = 0; | 51 virtual View* GetSelectedTab() = 0; |
| 52 | 52 |
| 53 // Retrieves the views::View that hosts the native control. | 53 // Retrieves the views::View that hosts the native control. |
| 54 virtual View* GetView() = 0; | 54 virtual View* GetView() = 0; |
| 55 | 55 |
| 56 // Sets the focus to the tabbed pane native view. | 56 // Sets the focus to the tabbed pane native view. |
| 57 virtual void SetFocus() = 0; | 57 virtual void SetFocus() = 0; |
| 58 | 58 |
| 59 // Gets the preferred size of the tabbed pane. |
| 60 virtual gfx::Size GetPreferredSize() = 0; |
| 61 |
| 59 // Returns a handle to the underlying native view for testing. | 62 // Returns a handle to the underlying native view for testing. |
| 60 virtual gfx::NativeView GetTestingHandle() const = 0; | 63 virtual gfx::NativeView GetTestingHandle() const = 0; |
| 61 | 64 |
| 62 // Creates an appropriate NativeTabbedPaneWrapper for the platform. | 65 // Creates an appropriate NativeTabbedPaneWrapper for the platform. |
| 63 static NativeTabbedPaneWrapper* CreateNativeWrapper(TabbedPane* tabbed_pane); | 66 static NativeTabbedPaneWrapper* CreateNativeWrapper(TabbedPane* tabbed_pane); |
| 64 }; | 67 }; |
| 65 | 68 |
| 66 } // namespace views | 69 } // namespace views |
| 67 | 70 |
| 68 #endif // VIEWS_CONTROLS_TABBED_PANE_NATIVE_TABBED_PANE_WRAPPER_H_ | 71 #endif // VIEWS_CONTROLS_TABBED_PANE_NATIVE_TABBED_PANE_WRAPPER_H_ |
| OLD | NEW |