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

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

Issue 11421164: Migrate CollectedCookiesViews to Chrome style. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 UI_VIEWS_CONTROLS_TABBED_PANE_NATIVE_TABBED_PANE_VIEWS_H_ 5 #ifndef UI_VIEWS_CONTROLS_TABBED_PANE_NATIVE_TABBED_PANE_VIEWS_H_
6 #define UI_VIEWS_CONTROLS_TABBED_PANE_NATIVE_TABBED_PANE_VIEWS_H_ 6 #define UI_VIEWS_CONTROLS_TABBED_PANE_NATIVE_TABBED_PANE_VIEWS_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "ui/views/controls/tabbed_pane/native_tabbed_pane_wrapper.h" 10 #include "ui/views/controls/tabbed_pane/native_tabbed_pane_wrapper.h"
11 #include "ui/views/view.h" 11 #include "ui/views/view.h"
12 12
13 namespace views { 13 namespace views {
14 14
15 class TabbedPane; 15 class TabbedPane;
16 class TabLayout; 16 class TabLayout;
17 class TabStrip; 17 class TabStrip;
18 class Widget; 18 class Widget;
19 19
20 class NativeTabbedPaneViews : public View, 20 class NativeTabbedPaneViews : public View,
21 public NativeTabbedPaneWrapper { 21 public NativeTabbedPaneWrapper {
22 public: 22 public:
23 explicit NativeTabbedPaneViews(TabbedPane* tabbed_pane); 23 explicit NativeTabbedPaneViews(TabbedPane* tabbed_pane,
24 bool use_chrome_style);
24 virtual ~NativeTabbedPaneViews(); 25 virtual ~NativeTabbedPaneViews();
25 26
26 void TabSelectionChanged(View* selected); 27 void TabSelectionChanged(View* selected);
27 28
28 // Overridden from NativeTabbedPaneWrapper: 29 // Overridden from NativeTabbedPaneWrapper:
29 virtual void AddTab(const string16& title, View* contents) OVERRIDE; 30 virtual void AddTab(const string16& title, View* contents) OVERRIDE;
30 virtual void AddTabAtIndex(int index, 31 virtual void AddTabAtIndex(int index,
31 const string16& title, 32 const string16& title,
32 View* contents, 33 View* contents,
33 bool select_if_first_tab) OVERRIDE; 34 bool select_if_first_tab) OVERRIDE;
(...skipping 25 matching lines...) Expand all
59 60
60 // The layout manager we use for managing our tabs. 61 // The layout manager we use for managing our tabs.
61 TabLayout* tab_layout_manager_; 62 TabLayout* tab_layout_manager_;
62 63
63 // TabStrip. 64 // TabStrip.
64 TabStrip* tab_strip_; 65 TabStrip* tab_strip_;
65 66
66 // The content displayed in the tab. 67 // The content displayed in the tab.
67 View* content_view_; 68 View* content_view_;
68 69
70 // Use new Chrome-style rendering for the tabbed pane.
71 bool use_chrome_style_;
72
69 DISALLOW_COPY_AND_ASSIGN(NativeTabbedPaneViews); 73 DISALLOW_COPY_AND_ASSIGN(NativeTabbedPaneViews);
70 }; 74 };
71 75
72 } // namespace views 76 } // namespace views
73 77
74 #endif // UI_VIEWS_CONTROLS_TABBED_PANE_NATIVE_TABBED_PANE_VIEWS_H_ 78 #endif // UI_VIEWS_CONTROLS_TABBED_PANE_NATIVE_TABBED_PANE_VIEWS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698