cygprofile: increase timeouts to allow showing web contents
[chromium-blink-merge.git] / components / view_manager / server_view_delegate.h
blobaa63b8840289c8761e179b5e8d663e90430b0b0a
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_VIEW_MANAGER_SERVER_VIEW_DELEGATE_H_
6 #define COMPONENTS_VIEW_MANAGER_SERVER_VIEW_DELEGATE_H_
8 #include "base/memory/scoped_ptr.h"
9 #include "components/view_manager/public/interfaces/compositor_frame.mojom.h"
10 #include "components/view_manager/public/interfaces/view_manager_constants.mojom.h"
12 namespace cc {
13 class CompositorFrame;
16 namespace surfaces {
17 class SurfacesState;
20 namespace view_manager {
22 class ServerView;
24 class ServerViewDelegate {
25 public:
26 virtual scoped_ptr<cc::CompositorFrame> UpdateViewTreeFromCompositorFrame(
27 const mojo::CompositorFramePtr& input) = 0;
29 virtual surfaces::SurfacesState* GetSurfacesState() = 0;
31 virtual void OnScheduleViewPaint(const ServerView* view) = 0;
33 // Returns the root of the view tree to which this |view| is attached. Returns
34 // null if this view is not attached up through to a root view.
35 virtual const ServerView* GetRootView(const ServerView* view) const = 0;
37 protected:
38 virtual ~ServerViewDelegate() {}
41 } // namespace view_manager
43 #endif // COMPONENTS_VIEW_MANAGER_SERVER_VIEW_DELEGATE_H_