| OLD | NEW |
| (Empty) |
| 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. | |
| 4 | |
| 5 #ifndef COMPONENTS_VIEW_MANAGER_TEST_SERVER_VIEW_DELEGATE_H_ | |
| 6 #define COMPONENTS_VIEW_MANAGER_TEST_SERVER_VIEW_DELEGATE_H_ | |
| 7 | |
| 8 #include "base/basictypes.h" | |
| 9 #include "components/view_manager/server_view_delegate.h" | |
| 10 | |
| 11 namespace view_manager { | |
| 12 | |
| 13 class TestServerViewDelegate : public ServerViewDelegate { | |
| 14 public: | |
| 15 TestServerViewDelegate(); | |
| 16 ~TestServerViewDelegate() override; | |
| 17 | |
| 18 void set_root_view(const ServerView* view) { root_view_ = view; } | |
| 19 private: | |
| 20 // ServerViewDelegate: | |
| 21 scoped_ptr<cc::CompositorFrame> UpdateViewTreeFromCompositorFrame( | |
| 22 const mojo::CompositorFramePtr& input) override; | |
| 23 surfaces::SurfacesState* GetSurfacesState() override; | |
| 24 void OnScheduleViewPaint(const ServerView* view) override; | |
| 25 const ServerView* GetRootView(const ServerView* view) const override; | |
| 26 | |
| 27 const ServerView* root_view_; | |
| 28 | |
| 29 DISALLOW_COPY_AND_ASSIGN(TestServerViewDelegate); | |
| 30 }; | |
| 31 | |
| 32 } // namespace view_manager | |
| 33 | |
| 34 #endif // COMPONENTS_VIEW_MANAGER_TEST_SERVER_VIEW_DELEGATE_H_ | |
| OLD | NEW |