| OLD | NEW | 
|   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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  43   virtual bool CanDescendIntoWindowForWindowTree( |  43   virtual bool CanDescendIntoWindowForWindowTree( | 
|  44       const ServerWindow* window) const = 0; |  44       const ServerWindow* window) const = 0; | 
|  45   virtual bool CanEmbed(const ServerWindow* window, |  45   virtual bool CanEmbed(const ServerWindow* window, | 
|  46                         uint32_t policy_bitmask) const = 0; |  46                         uint32_t policy_bitmask) const = 0; | 
|  47   virtual bool CanChangeWindowVisibility(const ServerWindow* window) const = 0; |  47   virtual bool CanChangeWindowVisibility(const ServerWindow* window) const = 0; | 
|  48   virtual bool CanSetWindowSurface(const ServerWindow* window, |  48   virtual bool CanSetWindowSurface(const ServerWindow* window, | 
|  49                                    mojom::SurfaceType surface_type) const = 0; |  49                                    mojom::SurfaceType surface_type) const = 0; | 
|  50   virtual bool CanSetWindowBounds(const ServerWindow* window) const = 0; |  50   virtual bool CanSetWindowBounds(const ServerWindow* window) const = 0; | 
|  51   virtual bool CanSetWindowProperties(const ServerWindow* window) const = 0; |  51   virtual bool CanSetWindowProperties(const ServerWindow* window) const = 0; | 
|  52   virtual bool CanSetWindowTextInputState(const ServerWindow* window) const = 0; |  52   virtual bool CanSetWindowTextInputState(const ServerWindow* window) const = 0; | 
 |  53   virtual bool CanSetCapture(const ServerWindow* window) const = 0; | 
|  53   virtual bool CanSetFocus(const ServerWindow* window) const = 0; |  54   virtual bool CanSetFocus(const ServerWindow* window) const = 0; | 
|  54   virtual bool CanSetClientArea(const ServerWindow* window) const = 0; |  55   virtual bool CanSetClientArea(const ServerWindow* window) const = 0; | 
|  55   // Used for all cursor properties; which cursor should be displayed, |  56   // Used for all cursor properties; which cursor should be displayed, | 
|  56   // visibility, locking, etc. |  57   // visibility, locking, etc. | 
|  57   virtual bool CanSetCursorProperties(const ServerWindow* window) const = 0; |  58   virtual bool CanSetCursorProperties(const ServerWindow* window) const = 0; | 
|  58  |  59  | 
|  59   // Returns whether the connection should notify on a hierarchy change. |  60   // Returns whether the connection should notify on a hierarchy change. | 
|  60   // |new_parent| and |old_parent| are initially set to the new and old parents |  61   // |new_parent| and |old_parent| are initially set to the new and old parents | 
|  61   // but may be altered so that the client only sees a certain set of windows. |  62   // but may be altered so that the client only sees a certain set of windows. | 
|  62   virtual bool ShouldNotifyOnHierarchyChange( |  63   virtual bool ShouldNotifyOnHierarchyChange( | 
|  63       const ServerWindow* window, |  64       const ServerWindow* window, | 
|  64       const ServerWindow** new_parent, |  65       const ServerWindow** new_parent, | 
|  65       const ServerWindow** old_parent) const = 0; |  66       const ServerWindow** old_parent) const = 0; | 
|  66   virtual bool CanSetWindowManager() const = 0; |  67   virtual bool CanSetWindowManager() const = 0; | 
|  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  |  75  | 
|  75 }  // namespace mus |  76 }  // namespace mus | 
|  76  |  77  | 
|  77 #endif  // COMPONENTS_MUS_WS_ACCESS_POLICY_H_ |  78 #endif  // COMPONENTS_MUS_WS_ACCESS_POLICY_H_ | 
| OLD | NEW |