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
3 // found in the LICENSE file.
5 #ifndef COMPONENTS_MUS_TEST_SERVER_VIEW_DELEGATE_H_
6 #define COMPONENTS_MUS_TEST_SERVER_VIEW_DELEGATE_H_
8 #include "base/basictypes.h"
9 #include "components/mus/server_view_delegate.h"
13 class TestServerViewDelegate
: public ServerViewDelegate
{
15 TestServerViewDelegate();
16 ~TestServerViewDelegate() override
;
18 void set_root_view(const ServerView
* view
) { root_view_
= view
; }
21 // ServerViewDelegate:
22 scoped_ptr
<cc::CompositorFrame
> UpdateViewTreeFromCompositorFrame(
23 const mojo::CompositorFramePtr
& input
) override
;
24 SurfacesState
* GetSurfacesState() override
;
25 void OnScheduleViewPaint(const ServerView
* view
) override
;
26 const ServerView
* GetRootView(const ServerView
* view
) const override
;
28 const ServerView
* root_view_
;
30 DISALLOW_COPY_AND_ASSIGN(TestServerViewDelegate
);
35 #endif // COMPONENTS_MUS_TEST_SERVER_VIEW_DELEGATE_H_