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

Unified Diff: components/mus/public/interfaces/window_tree.mojom

Issue 1527183003: Change mojo enums to be scoped enums in the generated C++ bindings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojo-binding-equals
Patch Set: rebase Created 4 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 side-by-side diff with in-line comments
Download patch
Index: components/mus/public/interfaces/window_tree.mojom
diff --git a/components/mus/public/interfaces/window_tree.mojom b/components/mus/public/interfaces/window_tree.mojom
index a1e8152c6986e628d6156a051f13157c0647e596..f6126e4b60025041d78226c22f74b6b9a4cd4e0a 100644
--- a/components/mus/public/interfaces/window_tree.mojom
+++ b/components/mus/public/interfaces/window_tree.mojom
@@ -68,18 +68,16 @@ enum SurfaceType {
// change id in anyway, it is up to the client to assign a value and use it.
// Generally the change id is an ever increasing integer.
interface WindowTree {
- enum AccessPolicy {
- DEFAULT = 0,
-
- // An embed root has the following abilities:
- // . The app sees all the descendants of the window the app is ebmedded at,
- // even those from separate connections.
- // . The app is able to Embed() in all the descendants of the window the app
- // is embedded at, even those from separate connections.
- // Only connections originating from the WindowTreeHostFactory can grant
- // this policy.
- EMBED_ROOT = 1,
- };
+ const int32 kAccessPolicyDefault = 0;
+
+ // An embed root has the following abilities:
+ // . The app sees all the descendants of the window the app is ebmedded at,
+ // even those from separate connections.
+ // . The app is able to Embed() in all the descendants of the window the app
+ // is embedded at, even those from separate connections.
+ // Only connections originating from the WindowTreeHostFactory can grant
+ // this policy.
+ const int32 kAccessPolicyEmbedRoot = 1;
// Creates a new window with the specified id. It is up to the client to
// ensure the id is unique to the connection (the id need not be globally
@@ -195,7 +193,7 @@ interface WindowTree {
// longer has privileges to access or see any of the children of the window.
// If the window had existing children the children are removed. The one
// exception is the root connection and any connections with the policy
- // ACCESS_POLICY_EMBED_ROOT.
+ // kAccessPolicyEmbedRoot.
//
// A window may only have one embedding in it at a time. Subsequent calls to
// Embed() for the same window result in the currently embedded
« no previous file with comments | « components/mus/public/interfaces/window_manager_constants.mojom ('k') | components/mus/ws/default_access_policy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698