OLD | NEW |
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 VIEWS_WIDGET_NATIVE_WIDGET_TEST_UTILS_H_ | 5 #ifndef VIEWS_WIDGET_NATIVE_WIDGET_TEST_UTILS_H_ |
6 #define VIEWS_WIDGET_NATIVE_WIDGET_TEST_UTILS_H_ | 6 #define VIEWS_WIDGET_NATIVE_WIDGET_TEST_UTILS_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 namespace views { | 9 namespace views { |
10 class View; | 10 class View; |
11 namespace internal { | 11 namespace internal { |
12 class NativeWidgetPrivate; | 12 class NativeWidgetPrivate; |
13 | 13 |
14 // Create dummy Widgets for use in testing. | 14 // Create dummy widgets for use in testing. Caller owns the returned |
| 15 // |NativeWidgetPrivate| object which, in turn, owns the associated Widget. |
15 NativeWidgetPrivate* CreateNativeWidget(); | 16 NativeWidgetPrivate* CreateNativeWidget(); |
16 NativeWidgetPrivate* CreateNativeWidgetWithContents(View* contents_view); | 17 NativeWidgetPrivate* CreateNativeSubWidget(); |
17 NativeWidgetPrivate* CreateNativeWidgetWithParent(NativeWidgetPrivate* parent); | |
18 | 18 |
19 } // namespace internal | 19 } // namespace internal |
20 } // namespace views | 20 } // namespace views |
21 | 21 |
22 #endif // VIEWS_WIDGET_NATIVE_WIDGET_TEST_UTILS_H_ | 22 #endif // VIEWS_WIDGET_NATIVE_WIDGET_TEST_UTILS_H_ |
OLD | NEW |