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

Side by Side Diff: ui/views/controls/tabbed_pane/native_tabbed_pane_wrapper.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 CreateNativeWrapper a function in an anonymous namespace. Created 8 years, 5 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_WRAPPER_H_ 5 #ifndef UI_VIEWS_CONTROLS_TABBED_PANE_NATIVE_TABBED_PANE_WRAPPER_H_
6 #define UI_VIEWS_CONTROLS_TABBED_PANE_NATIVE_TABBED_PANE_WRAPPER_H_ 6 #define UI_VIEWS_CONTROLS_TABBED_PANE_NATIVE_TABBED_PANE_WRAPPER_H_
7 7
8 #include "base/string16.h" 8 #include "base/string16.h"
9 #include "ui/gfx/native_widget_types.h" 9 #include "ui/gfx/native_widget_types.h"
10 10
11 namespace gfx { 11 namespace gfx {
12 class Size; 12 class Size;
13 } 13 }
14 14
15 namespace views { 15 namespace views {
16 16
17 class TabbedPane; 17 class TabbedPane;
msw 2012/07/24 16:57:57 nit: I don't think this forward decl is needed any
markusheintz_ 2012/07/24 17:03:17 Done.
18 class View; 18 class View;
19 19
20 // An interface implemented by an object that provides a platform-native 20 // An interface implemented by an object that provides a platform-native
21 // tabbed-pane. 21 // tabbed-pane.
22 class NativeTabbedPaneWrapper { 22 class NativeTabbedPaneWrapper {
23 public: 23 public:
24 // The TabbedPane calls this when it is destroyed to clean up the wrapper 24 // The TabbedPane calls this when it is destroyed to clean up the wrapper
25 // object. 25 // object.
26 virtual ~NativeTabbedPaneWrapper() {} 26 virtual ~NativeTabbedPaneWrapper() {}
27 27
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 virtual View* GetView() = 0; 61 virtual View* GetView() = 0;
62 62
63 // Sets the focus to the tabbed pane native view. 63 // Sets the focus to the tabbed pane native view.
64 virtual void SetFocus() = 0; 64 virtual void SetFocus() = 0;
65 65
66 // Gets the preferred size of the tabbed pane. 66 // Gets the preferred size of the tabbed pane.
67 virtual gfx::Size GetPreferredSize() = 0; 67 virtual gfx::Size GetPreferredSize() = 0;
68 68
69 // Returns a handle to the underlying native view for testing. 69 // Returns a handle to the underlying native view for testing.
70 virtual gfx::NativeView GetTestingHandle() const = 0; 70 virtual gfx::NativeView GetTestingHandle() const = 0;
71
72 // Creates an appropriate NativeTabbedPaneWrapper for the platform.
73 static NativeTabbedPaneWrapper* CreateNativeWrapper(TabbedPane* tabbed_pane);
74 }; 71 };
75 72
76 } // namespace views 73 } // namespace views
77 74
78 #endif // UI_VIEWS_CONTROLS_TABBED_PANE_NATIVE_TABBED_PANE_WRAPPER_H_ 75 #endif // UI_VIEWS_CONTROLS_TABBED_PANE_NATIVE_TABBED_PANE_WRAPPER_H_
OLDNEW
« no previous file with comments | « ui/views/controls/tabbed_pane/native_tabbed_pane_win.cc ('k') | ui/views/controls/tabbed_pane/tabbed_pane.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698