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

Side by Side Diff: services/ui/ws/test_server_window_delegate.h

Issue 2521123004: Mus: ws/ should not depend on surfaces/ (Closed)
Patch Set: Rebased 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 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 SERVICES_UI_WS_TEST_SERVER_WINDOW_DELEGATE_H_ 5 #ifndef SERVICES_UI_WS_TEST_SERVER_WINDOW_DELEGATE_H_
6 #define SERVICES_UI_WS_TEST_SERVER_WINDOW_DELEGATE_H_ 6 #define SERVICES_UI_WS_TEST_SERVER_WINDOW_DELEGATE_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "services/ui/surfaces/display_compositor.h"
10 #include "services/ui/ws/server_window_delegate.h" 9 #include "services/ui/ws/server_window_delegate.h"
11 10
11 namespace cc {
12 namespace mojom {
13 class DisplayCompositor;
14 }
15 }
16
12 namespace ui { 17 namespace ui {
13 18
14 namespace ws { 19 namespace ws {
15 20
16 struct WindowId; 21 struct WindowId;
17 22
18 class TestServerWindowDelegate : public ServerWindowDelegate { 23 class TestServerWindowDelegate : public ServerWindowDelegate {
19 public: 24 public:
20 TestServerWindowDelegate(); 25 TestServerWindowDelegate();
21 ~TestServerWindowDelegate() override; 26 ~TestServerWindowDelegate() override;
22 27
23 void set_root_window(ServerWindow* window) { root_window_ = window; } 28 void set_root_window(ServerWindow* window) { root_window_ = window; }
24 29
25 private: 30 private:
26 // ServerWindowDelegate: 31 // ServerWindowDelegate:
27 cc::mojom::DisplayCompositor* GetDisplayCompositor() override; 32 cc::mojom::DisplayCompositor* GetDisplayCompositor() override;
28 ServerWindow* GetRootWindow(const ServerWindow* window) override; 33 ServerWindow* GetRootWindow(const ServerWindow* window) override;
29 34
30 ServerWindow* root_window_; 35 ServerWindow* root_window_;
31 std::unique_ptr<ui::DisplayCompositor> display_compositor_;
32 36
33 DISALLOW_COPY_AND_ASSIGN(TestServerWindowDelegate); 37 DISALLOW_COPY_AND_ASSIGN(TestServerWindowDelegate);
34 }; 38 };
35 39
36 } // namespace ws 40 } // namespace ws
37 41
38 } // namespace ui 42 } // namespace ui
39 43
40 #endif // SERVICES_UI_WS_TEST_SERVER_WINDOW_DELEGATE_H_ 44 #endif // SERVICES_UI_WS_TEST_SERVER_WINDOW_DELEGATE_H_
OLDNEW
« no previous file with comments | « services/ui/ws/server_window_compositor_frame_sink_manager.cc ('k') | services/ui/ws/test_server_window_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698