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

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

Issue 7015051: Re-land: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 42
43 // View: 43 // View:
44 virtual FocusTraversable* GetFocusTraversable() OVERRIDE; 44 virtual FocusTraversable* GetFocusTraversable() OVERRIDE;
45 45
46 private: 46 private:
47 void DoAddTabAtIndex(int index, 47 void DoAddTabAtIndex(int index,
48 const std::wstring& title, 48 const std::wstring& title,
49 View* contents, 49 View* contents,
50 bool select_if_first_tab); 50 bool select_if_first_tab);
51 51
52 // Returns the WidgetGtk containing the tab contents at |index|. 52 // Returns the Widget containing the tab contents at |index|.
53 WidgetGtk* GetWidgetAt(int index); 53 Widget* GetWidgetAt(int index);
54 54
55 View* GetTabViewAt(int index); 55 View* GetTabViewAt(int index);
56 void OnSwitchPage(int selected_tab_index); 56 void OnSwitchPage(int selected_tab_index);
57 57
58 static void CallSwitchPage(GtkNotebook* widget, 58 static void CallSwitchPage(GtkNotebook* widget,
59 GtkNotebookPage* page, 59 GtkNotebookPage* page,
60 guint selected_tab_index, 60 guint selected_tab_index,
61 NativeTabbedPaneGtk* tabbed_pane); 61 NativeTabbedPaneGtk* tabbed_pane);
62 62
63 // The tabbed-pane we are bound to. 63 // The tabbed-pane we are bound to.
64 TabbedPane* tabbed_pane_; 64 TabbedPane* tabbed_pane_;
65 65
66 DISALLOW_COPY_AND_ASSIGN(NativeTabbedPaneGtk); 66 DISALLOW_COPY_AND_ASSIGN(NativeTabbedPaneGtk);
67 }; 67 };
68 68
69 } // namespace views 69 } // namespace views
70 70
71 #endif // VIEWS_CONTROLS_TABBED_PANE_NATIVE_TABBED_PANE_GTK_H_ 71 #endif // VIEWS_CONTROLS_TABBED_PANE_NATIVE_TABBED_PANE_GTK_H_
OLDNEW
« no previous file with comments | « views/controls/native/native_view_host_gtk.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