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

Side by Side Diff: ui/views/test/views_test_helper_aura.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
« no previous file with comments | « ui/views/test/test_views_delegate_aura.cc ('k') | ui/views/test/views_test_helper_aura.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_VIEWS_TEST_HELPER_AURA_H_ 5 #ifndef UI_VIEWS_TEST_VIEWS_TEST_HELPER_AURA_H_
6 #define UI_VIEWS_TEST_VIEWS_TEST_HELPER_AURA_H_ 6 #define UI_VIEWS_TEST_VIEWS_TEST_HELPER_AURA_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "ui/views/test/views_test_helper.h" 12 #include "ui/views/test/views_test_helper.h"
13 13
14 namespace aura { 14 namespace aura {
15 namespace client { 15 namespace client {
16 class ScreenPositionClient; 16 class ScreenPositionClient;
17 } 17 }
18 namespace test { 18 namespace test {
19 class AuraTestHelper; 19 class AuraTestHelper;
20 } 20 }
21 } 21 }
22 22
23 namespace base { 23 namespace base {
24 class MessageLoopForUI; 24 class MessageLoopForUI;
25 } 25 }
26 26
27 namespace wm {
28 class WMState;
29 }
30
31 namespace views { 27 namespace views {
32 28
33 class ViewsTestHelperAura : public ViewsTestHelper { 29 class ViewsTestHelperAura : public ViewsTestHelper {
34 public: 30 public:
35 ViewsTestHelperAura(base::MessageLoopForUI* message_loop, 31 ViewsTestHelperAura(base::MessageLoopForUI* message_loop,
36 ui::ContextFactory* context_factory); 32 ui::ContextFactory* context_factory);
37 ~ViewsTestHelperAura() override; 33 ~ViewsTestHelperAura() override;
38 34
39 // Overridden from ViewsTestHelper: 35 // Overridden from ViewsTestHelper:
40 void SetUp() override; 36 void SetUp() override;
41 void TearDown() override; 37 void TearDown() override;
42 gfx::NativeWindow GetContext() override; 38 gfx::NativeWindow GetContext() override;
43 39
44 private: 40 private:
45 ui::ContextFactory* context_factory_; 41 ui::ContextFactory* context_factory_;
46 std::unique_ptr<aura::test::AuraTestHelper> aura_test_helper_; 42 std::unique_ptr<aura::test::AuraTestHelper> aura_test_helper_;
47 std::unique_ptr<wm::WMState> wm_state_;
48 std::unique_ptr<aura::client::ScreenPositionClient> screen_position_client_; 43 std::unique_ptr<aura::client::ScreenPositionClient> screen_position_client_;
49 44
50 DISALLOW_COPY_AND_ASSIGN(ViewsTestHelperAura); 45 DISALLOW_COPY_AND_ASSIGN(ViewsTestHelperAura);
51 }; 46 };
52 47
53 } // namespace views 48 } // namespace views
54 49
55 #endif // UI_VIEWS_TEST_VIEWS_TEST_HELPER_AURA_H_ 50 #endif // UI_VIEWS_TEST_VIEWS_TEST_HELPER_AURA_H_
OLDNEW
« no previous file with comments | « ui/views/test/test_views_delegate_aura.cc ('k') | ui/views/test/views_test_helper_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698