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

Side by Side Diff: components/mus/ws/test_server_window_delegate.cc

Issue 1673783004: Hook up BeginFrameSource to SurfaceFactoryClient via SurfaceManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Register id namespace on Android Created 4 years, 9 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
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 #include "components/mus/surfaces/surfaces_state.h"
5 #include "components/mus/ws/test_server_window_delegate.h" 6 #include "components/mus/ws/test_server_window_delegate.h"
6 #include "components/mus/ws/server_window.h" 7 #include "components/mus/ws/server_window.h"
7 8
8 namespace mus { 9 namespace mus {
9 10
10 namespace ws { 11 namespace ws {
11 12
12 TestServerWindowDelegate::TestServerWindowDelegate() : root_window_(nullptr) {} 13 TestServerWindowDelegate::TestServerWindowDelegate()
14 : root_window_(nullptr), surfaces_state_(new SurfacesState()) {}
13 15
14 TestServerWindowDelegate::~TestServerWindowDelegate() {} 16 TestServerWindowDelegate::~TestServerWindowDelegate() {}
15 17
16 mus::SurfacesState* TestServerWindowDelegate::GetSurfacesState() { 18 mus::SurfacesState* TestServerWindowDelegate::GetSurfacesState() {
17 return nullptr; 19 return surfaces_state_.get();
18 } 20 }
19 21
20 void TestServerWindowDelegate::OnScheduleWindowPaint(ServerWindow* window) {} 22 void TestServerWindowDelegate::OnScheduleWindowPaint(ServerWindow* window) {}
21 23
22 const ServerWindow* TestServerWindowDelegate::GetRootWindow( 24 const ServerWindow* TestServerWindowDelegate::GetRootWindow(
23 const ServerWindow* window) const { 25 const ServerWindow* window) const {
24 return root_window_; 26 return root_window_;
25 } 27 }
26 28
27 void TestServerWindowDelegate::ScheduleSurfaceDestruction( 29 void TestServerWindowDelegate::ScheduleSurfaceDestruction(
28 ServerWindow* window) {} 30 ServerWindow* window) {}
29 31
30 ServerWindow* TestServerWindowDelegate::FindWindowForSurface( 32 ServerWindow* TestServerWindowDelegate::FindWindowForSurface(
31 const ServerWindow* ancestor, 33 const ServerWindow* ancestor,
32 mojom::SurfaceType surface_type, 34 mojom::SurfaceType surface_type,
33 const ClientWindowId& client_window_id) { 35 const ClientWindowId& client_window_id) {
34 return nullptr; 36 return nullptr;
35 } 37 }
36 38
37 } // namespace ws 39 } // namespace ws
38 40
39 } // namespace mus 41 } // namespace mus
OLDNEW
« no previous file with comments | « components/mus/ws/test_server_window_delegate.h ('k') | components/mus/ws/window_finder_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698