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 MASH_WM_WM_TEST_SCREEN_H_ | 5 #ifndef ASH_MUS_TEST_WM_TEST_SCREEN_H_ |
6 #define MASH_WM_WM_TEST_SCREEN_H_ | 6 #define ASH_MUS_TEST_WM_TEST_SCREEN_H_ |
7 | 7 |
8 #include "ui/display/screen.h" | 8 #include "ui/display/screen.h" |
9 #include "ui/views/mus/display_list.h" | 9 #include "ui/views/mus/display_list.h" |
10 | 10 |
11 namespace mash { | 11 namespace ash { |
12 namespace wm { | 12 namespace mus { |
13 | 13 |
14 // Screen implementation used by tests for the windowmanager. Does not talk | 14 // Screen implementation used by tests for the windowmanager. Does not talk |
15 // to mus. Tests must keep the list of Displays in sync manually. | 15 // to mus. Tests must keep the list of Displays in sync manually. |
16 class WmTestScreen : public display::Screen { | 16 class WmTestScreen : public display::Screen { |
17 public: | 17 public: |
18 WmTestScreen(); | 18 WmTestScreen(); |
19 ~WmTestScreen() override; | 19 ~WmTestScreen() override; |
20 | 20 |
21 const views::DisplayList& display_list() const { return display_list_; } | 21 const views::DisplayList& display_list() const { return display_list_; } |
22 views::DisplayList* display_list() { return &display_list_; } | 22 views::DisplayList* display_list() { return &display_list_; } |
(...skipping 12 matching lines...) Expand all Loading... |
35 display::Display GetDisplayMatching( | 35 display::Display GetDisplayMatching( |
36 const gfx::Rect& match_rect) const override; | 36 const gfx::Rect& match_rect) const override; |
37 void AddObserver(display::DisplayObserver* observer) override; | 37 void AddObserver(display::DisplayObserver* observer) override; |
38 void RemoveObserver(display::DisplayObserver* observer) override; | 38 void RemoveObserver(display::DisplayObserver* observer) override; |
39 | 39 |
40 views::DisplayList display_list_; | 40 views::DisplayList display_list_; |
41 | 41 |
42 DISALLOW_COPY_AND_ASSIGN(WmTestScreen); | 42 DISALLOW_COPY_AND_ASSIGN(WmTestScreen); |
43 }; | 43 }; |
44 | 44 |
45 } // namespace wm | 45 } // namespace mus |
46 } // namespace mash | 46 } // namespace ash |
47 | 47 |
48 #endif // MASH_WM_WM_TEST_SCREEN_H_ | 48 #endif // ASH_MUS_TEST_WM_TEST_SCREEN_H_ |
OLD | NEW |