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

Side by Side Diff: ui/views/controls/tabbed_pane/native_tabbed_pane_views.h

Issue 8687013: Get the examples to run in aura_shell. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years 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
« no previous file with comments | « ui/views/OWNERS ('k') | ui/views/controls/tabbed_pane/native_tabbed_pane_views.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef UI_VIEWS_CONTROLS_TABBED_PANE_NATIVE_TABBED_PANE_VIEWS_H_
6 #define UI_VIEWS_CONTROLS_TABBED_PANE_NATIVE_TABBED_PANE_VIEWS_H_
7 #pragma once
8
9 #include <vector>
10
11 #include "ui/views/controls/tabbed_pane/native_tabbed_pane_wrapper.h"
12 #include "views/view.h"
13
14 namespace views {
15
16 class TabLayout;
17 class TabStrip;
18 class Widget;
19
20 class NativeTabbedPaneViews : public View,
21 public NativeTabbedPaneWrapper {
22 public:
23 explicit NativeTabbedPaneViews(TabbedPane* tabbed_pane);
24 virtual ~NativeTabbedPaneViews();
25
26 void TabSelectionChanged(View* selected);
27
28 // Overridden from NativeTabbedPaneWrapper:
29 virtual void AddTab(const string16& title, View* contents) OVERRIDE;
30 virtual void AddTabAtIndex(int index,
31 const string16& title,
32 View* contents,
33 bool select_if_first_tab) OVERRIDE;
34 virtual View* RemoveTabAtIndex(int index) OVERRIDE;
35 virtual void SelectTabAt(int index) OVERRIDE;
36 virtual int GetTabCount() OVERRIDE;
37 virtual int GetSelectedTabIndex() OVERRIDE;
38 virtual View* GetSelectedTab() OVERRIDE;
39 virtual View* GetView() OVERRIDE;
40 virtual void SetFocus() OVERRIDE;
41 virtual gfx::Size GetPreferredSize() OVERRIDE;
42 virtual gfx::NativeView GetTestingHandle() const OVERRIDE;
43
44 // View overrides:
45 virtual void Layout() OVERRIDE;
46 virtual FocusTraversable* GetFocusTraversable() OVERRIDE;
47 virtual void ViewHierarchyChanged(bool is_add, View *parent,
48 View *child) OVERRIDE;
49
50 private:
51 void InitControl();
52
53 // Called upon creation of native control to initialize tabs that are added
54 // before the native control is created.
55 void InitializeTabs();
56
57 // Adds a tab with the given content to native control at the given index.
58 void AddNativeTab(int index, const string16& title);
59
60 // The tabbed-pane we are bound to.
61 TabbedPane* tabbed_pane_;
62
63 // The layout manager we use for managing our tabs.
64 TabLayout* tab_layout_manager_;
65
66 // TabStrip.
67 TabStrip* tab_strip_;
68
69 // The window displayed in the tab.
70 Widget* content_window_;
71
72 DISALLOW_COPY_AND_ASSIGN(NativeTabbedPaneViews);
73 };
74
75 } // namespace views
76
77 #endif // UI_VIEWS_CONTROLS_TABBED_PANE_NATIVE_TABBED_PANE_VIEWS_H_
OLDNEW
« no previous file with comments | « ui/views/OWNERS ('k') | ui/views/controls/tabbed_pane/native_tabbed_pane_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698