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

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: Created 4 years, 12 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 644f9c4b910e6af7843442c25eb8fad254153716..d86bd4af0652fa4c3cd49389f0695a8cb113d441 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
@@ -187,7 +185,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

Powered by Google App Engine
This is Rietveld 408576698