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

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

Issue 10797046: (Views only): Allow choosing between NativeTabbedPaneView and NativeTabbedPaneWin on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Make the TabbedPaneTest use NativeTabbedPaneWin. Created 8 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 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 UI_VIEWS_CONTROLS_TABBED_PANE_NATIVE_TABBED_PANE_WIN_H_ 5 #ifndef UI_VIEWS_CONTROLS_TABBED_PANE_NATIVE_TABBED_PANE_WIN_H_
6 #define UI_VIEWS_CONTROLS_TABBED_PANE_NATIVE_TABBED_PANE_WIN_H_ 6 #define UI_VIEWS_CONTROLS_TABBED_PANE_NATIVE_TABBED_PANE_WIN_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "ui/views/controls/native_control_win.h" 10 #include "ui/views/controls/native_control_win.h"
11 #include "ui/views/controls/tabbed_pane/native_tabbed_pane_wrapper.h" 11 #include "ui/views/controls/tabbed_pane/native_tabbed_pane_wrapper.h"
12 12
13 namespace views { 13 namespace views {
14 14
15 class TabbedPane;
16 class TabLayout;
15 class Widget; 17 class Widget;
16 class TabLayout;
17 18
18 class NativeTabbedPaneWin : public NativeControlWin, 19 class NativeTabbedPaneWin : public NativeControlWin,
19 public NativeTabbedPaneWrapper { 20 public NativeTabbedPaneWrapper {
20 public: 21 public:
21 explicit NativeTabbedPaneWin(TabbedPane* tabbed_pane); 22 explicit NativeTabbedPaneWin(TabbedPane* tabbed_pane);
22 virtual ~NativeTabbedPaneWin(); 23 virtual ~NativeTabbedPaneWin();
23 24
24 // NativeTabbedPaneWrapper implementation: 25 // NativeTabbedPaneWrapper implementation:
25 virtual void AddTab(const string16& title, View* contents); 26 virtual void AddTab(const string16& title, View* contents);
26 virtual void AddTabAtIndex(int index, 27 virtual void AddTabAtIndex(int index,
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 83
83 // The window displayed in the tab. 84 // The window displayed in the tab.
84 Widget* content_window_; 85 Widget* content_window_;
85 86
86 DISALLOW_COPY_AND_ASSIGN(NativeTabbedPaneWin); 87 DISALLOW_COPY_AND_ASSIGN(NativeTabbedPaneWin);
87 }; 88 };
88 89
89 } // namespace views 90 } // namespace views
90 91
91 #endif // UI_VIEWS_CONTROLS_TABBED_PANE_NATIVE_TABBED_PANE_WIN_H_ 92 #endif // UI_VIEWS_CONTROLS_TABBED_PANE_NATIVE_TABBED_PANE_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698