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

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

Issue 2655463009: aura-mus: Implement DesktopWindowTreeHostMus::StackAbove(). (Closed)
Patch Set: Add comment. Created 3 years, 11 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 | « services/ui/public/interfaces/window_tree.mojom ('k') | services/ui/ws/default_access_policy.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 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 const ServerWindow* window) const = 0; 53 const ServerWindow* window) const = 0;
54 virtual bool CanSetWindowBounds(const ServerWindow* window) const = 0; 54 virtual bool CanSetWindowBounds(const ServerWindow* window) const = 0;
55 virtual bool CanSetWindowProperties(const ServerWindow* window) const = 0; 55 virtual bool CanSetWindowProperties(const ServerWindow* window) const = 0;
56 virtual bool CanSetWindowTextInputState(const ServerWindow* window) const = 0; 56 virtual bool CanSetWindowTextInputState(const ServerWindow* window) const = 0;
57 virtual bool CanSetCapture(const ServerWindow* window) const = 0; 57 virtual bool CanSetCapture(const ServerWindow* window) const = 0;
58 virtual bool CanSetFocus(const ServerWindow* window) const = 0; 58 virtual bool CanSetFocus(const ServerWindow* window) const = 0;
59 virtual bool CanSetClientArea(const ServerWindow* window) const = 0; 59 virtual bool CanSetClientArea(const ServerWindow* window) const = 0;
60 virtual bool CanSetHitTestMask(const ServerWindow* window) const = 0; 60 virtual bool CanSetHitTestMask(const ServerWindow* window) const = 0;
61 virtual bool CanSetAcceptDrops(const ServerWindow* window) const = 0; 61 virtual bool CanSetAcceptDrops(const ServerWindow* window) const = 0;
62 virtual bool CanSetAcceptEvents(const ServerWindow* window) const = 0; 62 virtual bool CanSetAcceptEvents(const ServerWindow* window) const = 0;
63 virtual bool CanStackAbove(const ServerWindow* above,
64 const ServerWindow* below) const = 0;
63 virtual bool CanStackAtTop(const ServerWindow* window) const = 0; 65 virtual bool CanStackAtTop(const ServerWindow* window) const = 0;
64 // Used for all client controllable cursor properties; which cursor should be 66 // Used for all client controllable cursor properties; which cursor should be
65 // displayed, visibility, locking, etc. 67 // displayed, visibility, locking, etc.
66 virtual bool CanSetCursorProperties(const ServerWindow* window) const = 0; 68 virtual bool CanSetCursorProperties(const ServerWindow* window) const = 0;
67 virtual bool CanInitiateDragLoop(const ServerWindow* window) const = 0; 69 virtual bool CanInitiateDragLoop(const ServerWindow* window) const = 0;
68 virtual bool CanInitiateMoveLoop(const ServerWindow* window) const = 0; 70 virtual bool CanInitiateMoveLoop(const ServerWindow* window) const = 0;
69 71
70 // Returns whether the client should notify on a hierarchy change. 72 // Returns whether the client should notify on a hierarchy change.
71 // |new_parent| and |old_parent| are initially set to the new and old parents 73 // |new_parent| and |old_parent| are initially set to the new and old parents
72 // but may be altered so that the client only sees a certain set of windows. 74 // but may be altered so that the client only sees a certain set of windows.
73 virtual bool ShouldNotifyOnHierarchyChange( 75 virtual bool ShouldNotifyOnHierarchyChange(
74 const ServerWindow* window, 76 const ServerWindow* window,
75 const ServerWindow** new_parent, 77 const ServerWindow** new_parent,
76 const ServerWindow** old_parent) const = 0; 78 const ServerWindow** old_parent) const = 0;
77 virtual bool CanSetWindowManager() const = 0; 79 virtual bool CanSetWindowManager() const = 0;
78 80
79 // Returns the window to supply to the client when focus changes to |focused|. 81 // Returns the window to supply to the client when focus changes to |focused|.
80 virtual const ServerWindow* GetWindowForFocusChange( 82 virtual const ServerWindow* GetWindowForFocusChange(
81 const ServerWindow* focused) = 0; 83 const ServerWindow* focused) = 0;
82 84
83 virtual bool IsValidIdForNewWindow(const ClientWindowId& id) const = 0; 85 virtual bool IsValidIdForNewWindow(const ClientWindowId& id) const = 0;
84 }; 86 };
85 87
86 } // namespace ws 88 } // namespace ws
87 } // namespace ui 89 } // namespace ui
88 90
89 #endif // SERVICES_UI_WS_ACCESS_POLICY_H_ 91 #endif // SERVICES_UI_WS_ACCESS_POLICY_H_
OLDNEW
« no previous file with comments | « services/ui/public/interfaces/window_tree.mojom ('k') | services/ui/ws/default_access_policy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698