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

Side by Side Diff: components/mus/ws/server_window_delegate.h

Issue 2119963002: Move mus to //services/ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 5 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/ws/server_window.cc ('k') | components/mus/ws/server_window_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
(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_MUS_WS_SERVER_WINDOW_DELEGATE_H_
6 #define COMPONENTS_MUS_WS_SERVER_WINDOW_DELEGATE_H_
7
8 #include <memory>
9
10 #include "components/mus/public/interfaces/mus_constants.mojom.h"
11 #include "components/mus/public/interfaces/window_tree.mojom.h"
12
13 namespace mus {
14
15 class SurfacesState;
16
17 namespace ws {
18
19 struct ClientWindowId;
20 class ServerWindow;
21 struct WindowId;
22
23 class ServerWindowDelegate {
24 public:
25 virtual SurfacesState* GetSurfacesState() = 0;
26
27 virtual void OnScheduleWindowPaint(ServerWindow* window) = 0;
28
29 // Returns the root of the window tree to which this |window| is attached.
30 // Returns null if this window is not attached up through to a root window.
31 virtual const ServerWindow* GetRootWindow(
32 const ServerWindow* window) const = 0;
33
34 // Schedules a callback to DestroySurfacesScheduledForDestruction() at the
35 // appropriate time, which may be synchronously.
36 virtual void ScheduleSurfaceDestruction(ServerWindow* window) = 0;
37
38 protected:
39 virtual ~ServerWindowDelegate() {}
40 };
41
42 } // namespace ws
43
44 } // namespace mus
45
46 #endif // COMPONENTS_MUS_WS_SERVER_WINDOW_DELEGATE_H_
OLDNEW
« no previous file with comments | « components/mus/ws/server_window.cc ('k') | components/mus/ws/server_window_drawn_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698