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

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

Issue 2527003002: [DONT COMMIT] Revert of Mus: ws/ should not depend on surfaces/ (Closed)
Patch Set: Created 4 years 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"
9 #include "services/ui/ws/server_window_delegate.h" 10 #include "services/ui/ws/server_window_delegate.h"
10 11
11 namespace cc {
12 namespace mojom {
13 class DisplayCompositor;
14 }
15 }
16
17 namespace ui { 12 namespace ui {
18 13
19 namespace ws { 14 namespace ws {
20 15
21 struct WindowId; 16 struct WindowId;
22 17
23 class TestServerWindowDelegate : public ServerWindowDelegate { 18 class TestServerWindowDelegate : public ServerWindowDelegate {
24 public: 19 public:
25 TestServerWindowDelegate(); 20 TestServerWindowDelegate();
26 ~TestServerWindowDelegate() override; 21 ~TestServerWindowDelegate() override;
27 22
28 void set_root_window(ServerWindow* window) { root_window_ = window; } 23 void set_root_window(ServerWindow* window) { root_window_ = window; }
29 24
30 private: 25 private:
31 // ServerWindowDelegate: 26 // ServerWindowDelegate:
32 cc::mojom::DisplayCompositor* GetDisplayCompositor() override; 27 cc::mojom::DisplayCompositor* GetDisplayCompositor() override;
33 ServerWindow* GetRootWindow(const ServerWindow* window) override; 28 ServerWindow* GetRootWindow(const ServerWindow* window) override;
34 29
35 ServerWindow* root_window_; 30 ServerWindow* root_window_;
31 std::unique_ptr<ui::DisplayCompositor> display_compositor_;
36 32
37 DISALLOW_COPY_AND_ASSIGN(TestServerWindowDelegate); 33 DISALLOW_COPY_AND_ASSIGN(TestServerWindowDelegate);
38 }; 34 };
39 35
40 } // namespace ws 36 } // namespace ws
41 37
42 } // namespace ui 38 } // namespace ui
43 39
44 #endif // SERVICES_UI_WS_TEST_SERVER_WINDOW_DELEGATE_H_ 40 #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