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

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

Issue 1759523002: mus: Server-side implementation of modal windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: SetAsModal -> SetModal + Other review comments addressed Created 4 years, 9 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 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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include "components/mus/public/interfaces/mus_constants.mojom.h" 10 #include "components/mus/public/interfaces/mus_constants.mojom.h"
(...skipping 14 matching lines...) Expand all
25 // Unless otherwise mentioned all arguments have been validated. That is the 25 // Unless otherwise mentioned all arguments have been validated. That is the
26 // |window| arguments are non-null unless otherwise stated (eg CanSetWindow() 26 // |window| arguments are non-null unless otherwise stated (eg CanSetWindow()
27 // is allowed to take a NULL window). 27 // is allowed to take a NULL window).
28 virtual bool CanRemoveWindowFromParent(const ServerWindow* window) const = 0; 28 virtual bool CanRemoveWindowFromParent(const ServerWindow* window) const = 0;
29 virtual bool CanAddWindow(const ServerWindow* parent, 29 virtual bool CanAddWindow(const ServerWindow* parent,
30 const ServerWindow* child) const = 0; 30 const ServerWindow* child) const = 0;
31 virtual bool CanAddTransientWindow(const ServerWindow* parent, 31 virtual bool CanAddTransientWindow(const ServerWindow* parent,
32 const ServerWindow* child) const = 0; 32 const ServerWindow* child) const = 0;
33 virtual bool CanRemoveTransientWindowFromParent( 33 virtual bool CanRemoveTransientWindowFromParent(
34 const ServerWindow* window) const = 0; 34 const ServerWindow* window) const = 0;
35 virtual bool CanSetModal(const ServerWindow* window) const = 0;
35 virtual bool CanReorderWindow(const ServerWindow* window, 36 virtual bool CanReorderWindow(const ServerWindow* window,
36 const ServerWindow* relative_window, 37 const ServerWindow* relative_window,
37 mojom::OrderDirection direction) const = 0; 38 mojom::OrderDirection direction) const = 0;
38 virtual bool CanDeleteWindow(const ServerWindow* window) const = 0; 39 virtual bool CanDeleteWindow(const ServerWindow* window) const = 0;
39 virtual bool CanGetWindowTree(const ServerWindow* window) const = 0; 40 virtual bool CanGetWindowTree(const ServerWindow* window) const = 0;
40 // Used when building a window tree (GetWindowTree()) to decide if we should 41 // Used when building a window tree (GetWindowTree()) to decide if we should
41 // descend into |window|. 42 // descend into |window|.
42 virtual bool CanDescendIntoWindowForWindowTree( 43 virtual bool CanDescendIntoWindowForWindowTree(
43 const ServerWindow* window) const = 0; 44 const ServerWindow* window) const = 0;
44 virtual bool CanEmbed(const ServerWindow* window, 45 virtual bool CanEmbed(const ServerWindow* window,
(...skipping 22 matching lines...) Expand all
67 68
68 // Returns the window to supply to the client when focus changes to |focused|. 69 // Returns the window to supply to the client when focus changes to |focused|.
69 virtual const ServerWindow* GetWindowForFocusChange( 70 virtual const ServerWindow* GetWindowForFocusChange(
70 const ServerWindow* focused) = 0; 71 const ServerWindow* focused) = 0;
71 }; 72 };
72 73
73 } // namespace ws 74 } // namespace ws
74 } // namespace mus 75 } // namespace mus
75 76
76 #endif // COMPONENTS_MUS_WS_ACCESS_POLICY_H_ 77 #endif // COMPONENTS_MUS_WS_ACCESS_POLICY_H_
OLDNEW
« no previous file with comments | « components/mus/public/interfaces/window_tree.mojom ('k') | components/mus/ws/connection_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698