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

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

Issue 2118383002: mus: Disregard windows that explicitly set can_accept_events to be false when sending events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix comments Created 4 years, 5 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/ws/access_policy.h ('k') | services/ui/ws/default_access_policy.cc » ('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_DEFAULT_ACCESS_POLICY_H_ 5 #ifndef SERVICES_UI_WS_DEFAULT_ACCESS_POLICY_H_
6 #define SERVICES_UI_WS_DEFAULT_ACCESS_POLICY_H_ 6 #define SERVICES_UI_WS_DEFAULT_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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 bool CanChangeWindowOpacity(const ServerWindow* window) const override; 44 bool CanChangeWindowOpacity(const ServerWindow* window) const override;
45 bool CanSetWindowSurface(const ServerWindow* window, 45 bool CanSetWindowSurface(const ServerWindow* window,
46 ui::mojom::SurfaceType surface_type) const override; 46 ui::mojom::SurfaceType surface_type) const override;
47 bool CanSetWindowBounds(const ServerWindow* window) const override; 47 bool CanSetWindowBounds(const ServerWindow* window) const override;
48 bool CanSetWindowProperties(const ServerWindow* window) const override; 48 bool CanSetWindowProperties(const ServerWindow* window) const override;
49 bool CanSetWindowTextInputState(const ServerWindow* window) const override; 49 bool CanSetWindowTextInputState(const ServerWindow* window) const override;
50 bool CanSetCapture(const ServerWindow* window) const override; 50 bool CanSetCapture(const ServerWindow* window) const override;
51 bool CanSetFocus(const ServerWindow* window) const override; 51 bool CanSetFocus(const ServerWindow* window) const override;
52 bool CanSetClientArea(const ServerWindow* window) const override; 52 bool CanSetClientArea(const ServerWindow* window) const override;
53 bool CanSetHitTestMask(const ServerWindow* window) const override; 53 bool CanSetHitTestMask(const ServerWindow* window) const override;
54 bool CanSetAcceptEvents(const ServerWindow* window) const override;
54 bool CanSetCursorProperties(const ServerWindow* window) const override; 55 bool CanSetCursorProperties(const ServerWindow* window) const override;
55 bool CanInitiateMoveLoop(const ServerWindow* window) const override; 56 bool CanInitiateMoveLoop(const ServerWindow* window) const override;
56 bool ShouldNotifyOnHierarchyChange( 57 bool ShouldNotifyOnHierarchyChange(
57 const ServerWindow* window, 58 const ServerWindow* window,
58 const ServerWindow** new_parent, 59 const ServerWindow** new_parent,
59 const ServerWindow** old_parent) const override; 60 const ServerWindow** old_parent) const override;
60 const ServerWindow* GetWindowForFocusChange( 61 const ServerWindow* GetWindowForFocusChange(
61 const ServerWindow* focused) override; 62 const ServerWindow* focused) override;
62 bool CanSetWindowManager() const override; 63 bool CanSetWindowManager() const override;
63 bool IsValidIdForNewWindow(const ClientWindowId& id) const override; 64 bool IsValidIdForNewWindow(const ClientWindowId& id) const override;
64 65
65 private: 66 private:
66 bool WasCreatedByThisClient(const ServerWindow* window) const; 67 bool WasCreatedByThisClient(const ServerWindow* window) const;
67 68
68 ClientSpecificId client_id_ = 0u; 69 ClientSpecificId client_id_ = 0u;
69 AccessPolicyDelegate* delegate_ = nullptr; 70 AccessPolicyDelegate* delegate_ = nullptr;
70 71
71 DISALLOW_COPY_AND_ASSIGN(DefaultAccessPolicy); 72 DISALLOW_COPY_AND_ASSIGN(DefaultAccessPolicy);
72 }; 73 };
73 74
74 } // namespace ws 75 } // namespace ws
75 } // namespace ui 76 } // namespace ui
76 77
77 #endif // SERVICES_UI_WS_DEFAULT_ACCESS_POLICY_H_ 78 #endif // SERVICES_UI_WS_DEFAULT_ACCESS_POLICY_H_
OLDNEW
« no previous file with comments | « services/ui/ws/access_policy.h ('k') | services/ui/ws/default_access_policy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698