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

Side by Side Diff: components/mus/server_view_delegate.h

Issue 1351013002: Revert of Mandoline UI Process: Update namespaces and file names (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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
« no previous file with comments | « components/mus/server_view.cc ('k') | components/mus/server_view_drawn_tracker.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 COMPONENTS_MUS_SERVER_VIEW_DELEGATE_H_ 5 #ifndef COMPONENTS_MUS_SERVER_VIEW_DELEGATE_H_
6 #define COMPONENTS_MUS_SERVER_VIEW_DELEGATE_H_ 6 #define COMPONENTS_MUS_SERVER_VIEW_DELEGATE_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "components/mus/public/interfaces/compositor_frame.mojom.h" 9 #include "components/mus/public/interfaces/compositor_frame.mojom.h"
10 #include "components/mus/public/interfaces/mus_constants.mojom.h" 10 #include "components/mus/public/interfaces/view_manager_constants.mojom.h"
11 11
12 namespace cc { 12 namespace cc {
13 class CompositorFrame; 13 class CompositorFrame;
14 } 14 }
15 15
16 namespace mus { 16 namespace surfaces {
17 class SurfacesState;
18 }
19
20 namespace view_manager {
17 21
18 class ServerView; 22 class ServerView;
19 class SurfacesState;
20 23
21 class ServerViewDelegate { 24 class ServerViewDelegate {
22 public: 25 public:
23 virtual scoped_ptr<cc::CompositorFrame> UpdateViewTreeFromCompositorFrame( 26 virtual scoped_ptr<cc::CompositorFrame> UpdateViewTreeFromCompositorFrame(
24 const mojo::CompositorFramePtr& input) = 0; 27 const mojo::CompositorFramePtr& input) = 0;
25 28
26 virtual SurfacesState* GetSurfacesState() = 0; 29 virtual surfaces::SurfacesState* GetSurfacesState() = 0;
27 30
28 virtual void OnScheduleViewPaint(const ServerView* view) = 0; 31 virtual void OnScheduleViewPaint(const ServerView* view) = 0;
29 32
30 // Returns the root of the view tree to which this |view| is attached. Returns 33 // Returns the root of the view tree to which this |view| is attached. Returns
31 // null if this view is not attached up through to a root view. 34 // null if this view is not attached up through to a root view.
32 virtual const ServerView* GetRootView(const ServerView* view) const = 0; 35 virtual const ServerView* GetRootView(const ServerView* view) const = 0;
33 36
34 protected: 37 protected:
35 virtual ~ServerViewDelegate() {} 38 virtual ~ServerViewDelegate() {}
36 }; 39 };
37 40
38 } // namespace mus 41 } // namespace view_manager
39 42
40 #endif // COMPONENTS_MUS_SERVER_VIEW_DELEGATE_H_ 43 #endif // COMPONENTS_MUS_SERVER_VIEW_DELEGATE_H_
OLDNEW
« no previous file with comments | « components/mus/server_view.cc ('k') | components/mus/server_view_drawn_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698