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

Side by Side Diff: ash/mus/test/wm_test_screen.h

Issue 2029883002: Moves mash/wm into ash/mus (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove_static_assert
Patch Set: move comment Created 4 years, 6 months 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 | « ash/mus/test/wm_test_helper.cc ('k') | ash/mus/test/wm_test_screen.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 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
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_
OLDNEW
« no previous file with comments | « ash/mus/test/wm_test_helper.cc ('k') | ash/mus/test/wm_test_screen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698