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

Side by Side Diff: services/ui/ws/access_policy.h

Issue 2429173005: Mus+Ash: Replace (Server)WindowSurface with (Server)WindowCompositorFrameSink (Closed)
Patch Set: ui::CompositorFrameSink => ui::WindowCompositorFrameSink Created 4 years, 2 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
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 SERVICES_UI_WS_ACCESS_POLICY_H_ 5 #ifndef SERVICES_UI_WS_ACCESS_POLICY_H_
6 #define SERVICES_UI_WS_ACCESS_POLICY_H_ 6 #define SERVICES_UI_WS_ACCESS_POLICY_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "services/ui/public/interfaces/mus_constants.mojom.h" 10 #include "services/ui/public/interfaces/mus_constants.mojom.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 mojom::OrderDirection direction) const = 0; 42 mojom::OrderDirection direction) const = 0;
43 virtual bool CanDeleteWindow(const ServerWindow* window) const = 0; 43 virtual bool CanDeleteWindow(const ServerWindow* window) const = 0;
44 virtual bool CanGetWindowTree(const ServerWindow* window) const = 0; 44 virtual bool CanGetWindowTree(const ServerWindow* window) const = 0;
45 // Used when building a window tree (GetWindowTree()) to decide if we should 45 // Used when building a window tree (GetWindowTree()) to decide if we should
46 // descend into |window|. 46 // descend into |window|.
47 virtual bool CanDescendIntoWindowForWindowTree( 47 virtual bool CanDescendIntoWindowForWindowTree(
48 const ServerWindow* window) const = 0; 48 const ServerWindow* window) const = 0;
49 virtual bool CanEmbed(const ServerWindow* window) const = 0; 49 virtual bool CanEmbed(const ServerWindow* window) const = 0;
50 virtual bool CanChangeWindowVisibility(const ServerWindow* window) const = 0; 50 virtual bool CanChangeWindowVisibility(const ServerWindow* window) const = 0;
51 virtual bool CanChangeWindowOpacity(const ServerWindow* window) const = 0; 51 virtual bool CanChangeWindowOpacity(const ServerWindow* window) const = 0;
52 virtual bool CanSetWindowSurface(const ServerWindow* window, 52 virtual bool CanSetWindowCompositorFrameSink(
53 mojom::SurfaceType surface_type) const = 0; 53 const ServerWindow* window,
54 mojom::CompositorFrameSinkType compositor_frame_sink_type) const = 0;
54 virtual bool CanSetWindowBounds(const ServerWindow* window) const = 0; 55 virtual bool CanSetWindowBounds(const ServerWindow* window) const = 0;
55 virtual bool CanSetWindowProperties(const ServerWindow* window) const = 0; 56 virtual bool CanSetWindowProperties(const ServerWindow* window) const = 0;
56 virtual bool CanSetWindowTextInputState(const ServerWindow* window) const = 0; 57 virtual bool CanSetWindowTextInputState(const ServerWindow* window) const = 0;
57 virtual bool CanSetCapture(const ServerWindow* window) const = 0; 58 virtual bool CanSetCapture(const ServerWindow* window) const = 0;
58 virtual bool CanSetFocus(const ServerWindow* window) const = 0; 59 virtual bool CanSetFocus(const ServerWindow* window) const = 0;
59 virtual bool CanSetClientArea(const ServerWindow* window) const = 0; 60 virtual bool CanSetClientArea(const ServerWindow* window) const = 0;
60 virtual bool CanSetHitTestMask(const ServerWindow* window) const = 0; 61 virtual bool CanSetHitTestMask(const ServerWindow* window) const = 0;
61 virtual bool CanSetAcceptDrops(const ServerWindow* window) const = 0; 62 virtual bool CanSetAcceptDrops(const ServerWindow* window) const = 0;
62 virtual bool CanSetAcceptEvents(const ServerWindow* window) const = 0; 63 virtual bool CanSetAcceptEvents(const ServerWindow* window) const = 0;
63 // Used for all client controllable cursor properties; which cursor should be 64 // Used for all client controllable cursor properties; which cursor should be
(...skipping 15 matching lines...) Expand all
79 virtual const ServerWindow* GetWindowForFocusChange( 80 virtual const ServerWindow* GetWindowForFocusChange(
80 const ServerWindow* focused) = 0; 81 const ServerWindow* focused) = 0;
81 82
82 virtual bool IsValidIdForNewWindow(const ClientWindowId& id) const = 0; 83 virtual bool IsValidIdForNewWindow(const ClientWindowId& id) const = 0;
83 }; 84 };
84 85
85 } // namespace ws 86 } // namespace ws
86 } // namespace ui 87 } // namespace ui
87 88
88 #endif // SERVICES_UI_WS_ACCESS_POLICY_H_ 89 #endif // SERVICES_UI_WS_ACCESS_POLICY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698