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

Unified Diff: views/controls/tabbed_pane/native_tabbed_pane_gtk.h

Issue 185003: * gtk implemenation of tabbed pane... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | views/controls/tabbed_pane/native_tabbed_pane_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/tabbed_pane/native_tabbed_pane_gtk.h
===================================================================
--- views/controls/tabbed_pane/native_tabbed_pane_gtk.h (revision 0)
+++ views/controls/tabbed_pane/native_tabbed_pane_gtk.h (revision 0)
@@ -0,0 +1,62 @@
+// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef VIEWS_CONTROLS_TABBED_PANE_NATIVE_TABBED_PANE_GTK_H_
+#define VIEWS_CONTROLS_TABBED_PANE_NATIVE_TABBED_PANE_GTK_H_
+
+#include <vector>
+
+#include "views/controls/native_control_gtk.h"
+#include "views/controls/tabbed_pane/native_tabbed_pane_wrapper.h"
+
+namespace views {
+
+class WidgetGtk;
+
+class NativeTabbedPaneGtk : public NativeControlGtk,
+ public NativeTabbedPaneWrapper {
+ public:
+ explicit NativeTabbedPaneGtk(TabbedPane* tabbed_pane);
+ virtual ~NativeTabbedPaneGtk();
+
+ // NativeTabbedPaneWrapper implementation:
+ virtual void AddTab(const std::wstring& title, View* contents);
+ virtual void AddTabAtIndex(int index,
+ const std::wstring& title,
+ View* contents,
+ bool select_if_first_tab);
+ virtual View* RemoveTabAtIndex(int index);
+ virtual void SelectTabAt(int index);
+ virtual int GetTabCount();
+ virtual int GetSelectedTabIndex();
+ virtual View* GetSelectedTab();
+ virtual View* GetView();
+ virtual void SetFocus();
+ virtual gfx::NativeView GetTestingHandle() const;
+
+ // NativeControlGtk overrides.
+ virtual void CreateNativeControl();
+
+ private:
+ void DoAddTabAtIndex(int index,
+ const std::wstring& title,
+ View* contents,
+ bool select_if_first_tab);
+ View* GetTabViewAt(int index);
+ void OnSwitchPage(int selected_tab_index);
+
+ static void CallSwitchPage(GtkNotebook* widget,
+ GtkNotebookPage* page,
+ guint selected_tab_index,
+ NativeTabbedPaneGtk* tabbed_pane);
+
+ // The tabbed-pane we are bound to.
+ TabbedPane* tabbed_pane_;
+
+ DISALLOW_COPY_AND_ASSIGN(NativeTabbedPaneGtk);
+};
+
+} // namespace views
+
+#endif // VIEWS_CONTROLS_TABBED_PANE_NATIVE_TABBED_PANE_GTK_H_
Property changes on: views/controls/tabbed_pane/native_tabbed_pane_gtk.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « no previous file | views/controls/tabbed_pane/native_tabbed_pane_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698