| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_TEST_NATIVE_WIDGET_FACTORY_H_ | 5 #ifndef UI_VIEWS_TEST_NATIVE_WIDGET_FACTORY_H_ |
| 6 #define UI_VIEWS_TEST_NATIVE_WIDGET_FACTORY_H_ | 6 #define UI_VIEWS_TEST_NATIVE_WIDGET_FACTORY_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "ui/views/widget/widget.h" | 10 #include "ui/views/widget/widget.h" |
| 11 | 11 |
| 12 namespace views { | 12 namespace views { |
| 13 | 13 |
| 14 class NativeWidget; | 14 class NativeWidget; |
| 15 class Widget; | |
| 16 | 15 |
| 17 namespace test { | 16 namespace test { |
| 18 | 17 |
| 19 // Values supplied to |behavior|. | 18 // Values supplied to |behavior|. |
| 20 // NativeWidget implementation is not customized in anyway. | 19 // NativeWidget implementation is not customized in anyway. |
| 21 const uint32_t kDefault = 0u; | 20 const uint32_t kDefault = 0u; |
| 22 // Indicates capture should be mocked out and not interact with the system. | 21 // Indicates capture should be mocked out and not interact with the system. |
| 23 const uint32_t kStubCapture = 1 << 0; | 22 const uint32_t kStubCapture = 1 << 0; |
| 24 | 23 |
| 25 // Creates the appropriate platform specific NativeWidget implementation. | 24 // Creates the appropriate platform specific NativeWidget implementation. |
| (...skipping 11 matching lines...) Expand all Loading... |
| 37 // true from the destructor of the NativeWidget. | 36 // true from the destructor of the NativeWidget. |
| 38 NativeWidget* CreatePlatformDesktopNativeWidgetImpl( | 37 NativeWidget* CreatePlatformDesktopNativeWidgetImpl( |
| 39 const Widget::InitParams& init_params, | 38 const Widget::InitParams& init_params, |
| 40 Widget* widget, | 39 Widget* widget, |
| 41 bool* destroyed); | 40 bool* destroyed); |
| 42 | 41 |
| 43 } // namespace test | 42 } // namespace test |
| 44 } // namespace views | 43 } // namespace views |
| 45 | 44 |
| 46 #endif // UI_VIEWS_TEST_NATIVE_WIDGET_FACTORY_H_ | 45 #endif // UI_VIEWS_TEST_NATIVE_WIDGET_FACTORY_H_ |
| OLD | NEW |