Chromium Code Reviews| Index: ui/views/test/test_views_delegate.h |
| diff --git a/ui/views/test/test_views_delegate.h b/ui/views/test/test_views_delegate.h |
| index 1d726f8f38dfb1828c4c4e8c09bf16c92eeea375..b9ed90b62b66256f1111bc40cdbd779e9baad7a1 100644 |
| --- a/ui/views/test/test_views_delegate.h |
| +++ b/ui/views/test/test_views_delegate.h |
| @@ -19,7 +19,16 @@ class TestViewsDelegate : public ViewsDelegate { |
| TestViewsDelegate(); |
| virtual ~TestViewsDelegate(); |
| - void SetUseTransparentWindows(bool transparent); |
| + // If set to |true|, forces widgets that do not provide a native widget to use |
| + // DesktopNativeWidgetAura instead of whatever the default native widget would |
| + // be. |
|
sky
2014/05/16 17:21:29
nit: add a comment this has no effect on chromeos.
mohsen
2014/05/16 17:36:38
Done.
|
| + void set_use_desktop_native_widgets(bool desktop) { |
| + use_desktop_native_widgets_ = desktop; |
| + } |
| + |
| + void set_use_transparent_windows(bool transparent) { |
| + use_transparent_windows_ = transparent; |
| + } |
| // ViewsDelegate: |
| virtual void OnBeforeWidgetInit( |
| @@ -27,6 +36,7 @@ class TestViewsDelegate : public ViewsDelegate { |
| internal::NativeWidgetDelegate* delegate) OVERRIDE; |
| private: |
| + bool use_desktop_native_widgets_; |
| bool use_transparent_windows_; |
| #if defined(USE_AURA) |
| scoped_ptr<wm::WMState> wm_state_; |