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

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

Issue 1991973003: mash: Preliminary support for widget hit test masks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 7 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_WINDOW_MANAGER_ACCESS_POLICY_H_ 5 #ifndef COMPONENTS_MUS_WS_WINDOW_MANAGER_ACCESS_POLICY_H_
6 #define COMPONENTS_MUS_WS_WINDOW_MANAGER_ACCESS_POLICY_H_ 6 #define COMPONENTS_MUS_WS_WINDOW_MANAGER_ACCESS_POLICY_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 bool CanChangeWindowVisibility(const ServerWindow* window) const override; 42 bool CanChangeWindowVisibility(const ServerWindow* window) const override;
43 bool CanChangeWindowOpacity(const ServerWindow* window) const override; 43 bool CanChangeWindowOpacity(const ServerWindow* window) const override;
44 bool CanSetWindowSurface(const ServerWindow* window, 44 bool CanSetWindowSurface(const ServerWindow* window,
45 mus::mojom::SurfaceType surface_type) const override; 45 mus::mojom::SurfaceType surface_type) const override;
46 bool CanSetWindowBounds(const ServerWindow* window) const override; 46 bool CanSetWindowBounds(const ServerWindow* window) const override;
47 bool CanSetWindowProperties(const ServerWindow* window) const override; 47 bool CanSetWindowProperties(const ServerWindow* window) const override;
48 bool CanSetWindowTextInputState(const ServerWindow* window) const override; 48 bool CanSetWindowTextInputState(const ServerWindow* window) const override;
49 bool CanSetCapture(const ServerWindow* window) const override; 49 bool CanSetCapture(const ServerWindow* window) const override;
50 bool CanSetFocus(const ServerWindow* window) const override; 50 bool CanSetFocus(const ServerWindow* window) const override;
51 bool CanSetClientArea(const ServerWindow* window) const override; 51 bool CanSetClientArea(const ServerWindow* window) const override;
52 bool CanSetHitTestMask(const ServerWindow* window) const override;
52 bool CanSetCursorProperties(const ServerWindow* window) const override; 53 bool CanSetCursorProperties(const ServerWindow* window) const override;
53 bool ShouldNotifyOnHierarchyChange( 54 bool ShouldNotifyOnHierarchyChange(
54 const ServerWindow* window, 55 const ServerWindow* window,
55 const ServerWindow** new_parent, 56 const ServerWindow** new_parent,
56 const ServerWindow** old_parent) const override; 57 const ServerWindow** old_parent) const override;
57 const ServerWindow* GetWindowForFocusChange( 58 const ServerWindow* GetWindowForFocusChange(
58 const ServerWindow* focused) override; 59 const ServerWindow* focused) override;
59 bool CanSetWindowManager() const override; 60 bool CanSetWindowManager() const override;
60 bool IsValidIdForNewWindow(const ClientWindowId& id) const override; 61 bool IsValidIdForNewWindow(const ClientWindowId& id) const override;
61 62
62 private: 63 private:
63 bool IsWindowKnown(const ServerWindow* window) const; 64 bool IsWindowKnown(const ServerWindow* window) const;
65 bool WasCreatedByThisConnection(const ServerWindow* window) const;
64 66
65 ConnectionSpecificId connection_id_ = 0u; 67 ConnectionSpecificId connection_id_ = 0u;
66 AccessPolicyDelegate* delegate_ = nullptr; 68 AccessPolicyDelegate* delegate_ = nullptr;
67 69
68 DISALLOW_COPY_AND_ASSIGN(WindowManagerAccessPolicy); 70 DISALLOW_COPY_AND_ASSIGN(WindowManagerAccessPolicy);
69 }; 71 };
70 72
71 } // namespace ws 73 } // namespace ws
72 } // namespace mus 74 } // namespace mus
73 75
74 #endif // COMPONENTS_MUS_WS_WINDOW_MANAGER_ACCESS_POLICY_H_ 76 #endif // COMPONENTS_MUS_WS_WINDOW_MANAGER_ACCESS_POLICY_H_
OLDNEW
« no previous file with comments | « components/mus/ws/window_finder_unittest.cc ('k') | components/mus/ws/window_manager_access_policy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698