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

Side by Side Diff: ui/views/test/test_views_delegate.h

Issue 2453953003: Moves TransientWindowClient to ui/aura/client and adds observer (Closed)
Patch Set: merge Created 4 years, 1 month 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
OLDNEW
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 <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "build/build_config.h" 11 #include "build/build_config.h"
12 #include "ui/views/views_delegate.h" 12 #include "ui/views/views_delegate.h"
13 13
14 namespace wm {
15 class WMState;
16 }
17
18 namespace views { 14 namespace views {
19 15
20 class TestViewsDelegate : public ViewsDelegate { 16 class TestViewsDelegate : public ViewsDelegate {
21 public: 17 public:
22 TestViewsDelegate(); 18 TestViewsDelegate();
23 ~TestViewsDelegate() override; 19 ~TestViewsDelegate() override;
24 20
25 // If set to |true|, forces widgets that do not provide a native widget to use 21 // If set to |true|, forces widgets that do not provide a native widget to use
26 // DesktopNativeWidgetAura instead of whatever the default native widget would 22 // DesktopNativeWidgetAura instead of whatever the default native widget would
27 // be. This has no effect on ChromeOS. 23 // be. This has no effect on ChromeOS.
(...skipping 16 matching lines...) Expand all
44 #endif 40 #endif
45 void OnBeforeWidgetInit(Widget::InitParams* params, 41 void OnBeforeWidgetInit(Widget::InitParams* params,
46 internal::NativeWidgetDelegate* delegate) override; 42 internal::NativeWidgetDelegate* delegate) override;
47 ui::ContextFactory* GetContextFactory() override; 43 ui::ContextFactory* GetContextFactory() override;
48 44
49 private: 45 private:
50 ui::ContextFactory* context_factory_; 46 ui::ContextFactory* context_factory_;
51 bool use_desktop_native_widgets_; 47 bool use_desktop_native_widgets_;
52 bool use_transparent_windows_; 48 bool use_transparent_windows_;
53 49
54 #if defined(USE_AURA)
55 std::unique_ptr<wm::WMState> wm_state_;
56 #endif
57
58 DISALLOW_COPY_AND_ASSIGN(TestViewsDelegate); 50 DISALLOW_COPY_AND_ASSIGN(TestViewsDelegate);
59 }; 51 };
60 52
61 } // namespace views 53 } // namespace views
62 54
63 #endif // UI_VIEWS_TEST_TEST_VIEWS_DELEGATE_H_ 55 #endif // UI_VIEWS_TEST_TEST_VIEWS_DELEGATE_H_
OLDNEW
« no previous file with comments | « ui/views/corewm/tooltip_controller_unittest.cc ('k') | ui/views/test/test_views_delegate_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698