OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_TEST_VIEWS_DELEGATE_H_ | 5 #ifndef UI_VIEWS_TEST_TEST_VIEWS_DELEGATE_H_ |
6 #define UI_VIEWS_TEST_TEST_VIEWS_DELEGATE_H_ | 6 #define UI_VIEWS_TEST_TEST_VIEWS_DELEGATE_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "ui/views/views_delegate.h" | 9 #include "ui/views/views_delegate.h" |
10 | 10 |
11 namespace wm { | 11 namespace wm { |
12 class WMState; | 12 class WMState; |
13 } | 13 } |
14 | 14 |
15 namespace views { | 15 namespace views { |
16 | 16 |
17 class TestViewsDelegate : public ViewsDelegate { | 17 class TestViewsDelegate : public ViewsDelegate { |
18 public: | 18 public: |
19 TestViewsDelegate(); | 19 TestViewsDelegate(); |
20 virtual ~TestViewsDelegate(); | 20 virtual ~TestViewsDelegate(); |
21 | 21 |
22 void SetUseDesktopNativeWidgets(bool desktop); | |
sky
2014/05/15 16:44:01
Inline this (meaning set_use_desktop_native_widget
mohsen
2014/05/16 15:56:09
Done.
| |
23 | |
22 void SetUseTransparentWindows(bool transparent); | 24 void SetUseTransparentWindows(bool transparent); |
23 | 25 |
24 // ViewsDelegate: | 26 // ViewsDelegate: |
25 virtual void OnBeforeWidgetInit( | 27 virtual void OnBeforeWidgetInit( |
26 Widget::InitParams* params, | 28 Widget::InitParams* params, |
27 internal::NativeWidgetDelegate* delegate) OVERRIDE; | 29 internal::NativeWidgetDelegate* delegate) OVERRIDE; |
28 | 30 |
29 private: | 31 private: |
32 bool use_desktop_native_widgets_; | |
30 bool use_transparent_windows_; | 33 bool use_transparent_windows_; |
31 scoped_ptr<wm::WMState> wm_state_; | 34 scoped_ptr<wm::WMState> wm_state_; |
32 | 35 |
33 DISALLOW_COPY_AND_ASSIGN(TestViewsDelegate); | 36 DISALLOW_COPY_AND_ASSIGN(TestViewsDelegate); |
34 }; | 37 }; |
35 | 38 |
36 } // namespace views | 39 } // namespace views |
37 | 40 |
38 #endif // UI_VIEWS_TEST_TEST_VIEWS_DELEGATE_H_ | 41 #endif // UI_VIEWS_TEST_TEST_VIEWS_DELEGATE_H_ |
OLD | NEW |