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

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

Issue 1352043005: mus: Implement Window Server Capture Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added capture unit tests Created 5 years, 1 month 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 COMPONENTS_MUS_WS_ACCESS_POLICY_H_ 5 #ifndef COMPONENTS_MUS_WS_ACCESS_POLICY_H_
6 #define COMPONENTS_MUS_WS_ACCESS_POLICY_H_ 6 #define COMPONENTS_MUS_WS_ACCESS_POLICY_H_
7 7
8 #include "components/mus/public/interfaces/mus_constants.mojom.h" 8 #include "components/mus/public/interfaces/mus_constants.mojom.h"
9 #include "components/mus/public/interfaces/window_tree.mojom.h" 9 #include "components/mus/public/interfaces/window_tree.mojom.h"
10 #include "components/mus/ws/ids.h" 10 #include "components/mus/ws/ids.h"
(...skipping 30 matching lines...) Expand all
41 virtual bool CanDescendIntoWindowForWindowTree( 41 virtual bool CanDescendIntoWindowForWindowTree(
42 const ServerWindow* window) const = 0; 42 const ServerWindow* window) const = 0;
43 virtual bool CanEmbed(const ServerWindow* window, 43 virtual bool CanEmbed(const ServerWindow* window,
44 uint32_t policy_bitmask) const = 0; 44 uint32_t policy_bitmask) const = 0;
45 virtual bool CanChangeWindowVisibility(const ServerWindow* window) const = 0; 45 virtual bool CanChangeWindowVisibility(const ServerWindow* window) const = 0;
46 virtual bool CanSetWindowSurface(const ServerWindow* window, 46 virtual bool CanSetWindowSurface(const ServerWindow* window,
47 mojom::SurfaceType surface_type) const = 0; 47 mojom::SurfaceType surface_type) const = 0;
48 virtual bool CanSetWindowBounds(const ServerWindow* window) const = 0; 48 virtual bool CanSetWindowBounds(const ServerWindow* window) const = 0;
49 virtual bool CanSetWindowProperties(const ServerWindow* window) const = 0; 49 virtual bool CanSetWindowProperties(const ServerWindow* window) const = 0;
50 virtual bool CanSetWindowTextInputState(const ServerWindow* window) const = 0; 50 virtual bool CanSetWindowTextInputState(const ServerWindow* window) const = 0;
51 virtual bool CanSetCapture(const ServerWindow* window) const = 0;
51 virtual bool CanSetFocus(const ServerWindow* window) const = 0; 52 virtual bool CanSetFocus(const ServerWindow* window) const = 0;
52 virtual bool CanSetClientArea(const ServerWindow* window) const = 0; 53 virtual bool CanSetClientArea(const ServerWindow* window) const = 0;
53 54
54 // Returns whether the connection should notify on a hierarchy change. 55 // Returns whether the connection should notify on a hierarchy change.
55 // |new_parent| and |old_parent| are initially set to the new and old parents 56 // |new_parent| and |old_parent| are initially set to the new and old parents
56 // but may be altered so that the client only sees a certain set of windows. 57 // but may be altered so that the client only sees a certain set of windows.
57 virtual bool ShouldNotifyOnHierarchyChange( 58 virtual bool ShouldNotifyOnHierarchyChange(
58 const ServerWindow* window, 59 const ServerWindow* window,
59 const ServerWindow** new_parent, 60 const ServerWindow** new_parent,
60 const ServerWindow** old_parent) const = 0; 61 const ServerWindow** old_parent) const = 0;
61 62
62 // Returns the window to supply to the client when focus changes to |focused|. 63 // Returns the window to supply to the client when focus changes to |focused|.
63 virtual const ServerWindow* GetWindowForFocusChange( 64 virtual const ServerWindow* GetWindowForFocusChange(
64 const ServerWindow* focused) = 0; 65 const ServerWindow* focused) = 0;
65 }; 66 };
66 67
67 } // namespace ws 68 } // namespace ws
68 69
69 } // namespace mus 70 } // namespace mus
70 71
71 #endif // COMPONENTS_MUS_WS_ACCESS_POLICY_H_ 72 #endif // COMPONENTS_MUS_WS_ACCESS_POLICY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698