Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(241)

Side by Side Diff: views/controls/tabbed_pane/native_tabbed_pane_wrapper.h

Issue 2812026: Auto-size the views version of the options dialog. (Closed)
Patch Set: Fix autosizing issue with gtk pref pages in chromeos options dialog. Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « views/controls/tabbed_pane/native_tabbed_pane_win.cc ('k') | views/controls/tabbed_pane/tabbed_pane.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698