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

Side by Side Diff: views/controls/tabbed_pane/native_tabbed_pane_gtk.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_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
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
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_
OLDNEW
« no previous file with comments | « views/controls/scrollbar/native_scroll_bar_win.cc ('k') | views/controls/tabbed_pane/native_tabbed_pane_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698