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

Unified Diff: components/mus/ws/default_access_policy.cc

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
« no previous file with comments | « components/mus/public/interfaces/window_tree.mojom ('k') | components/mus/ws/event_dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/ws/default_access_policy.cc
diff --git a/components/mus/ws/default_access_policy.cc b/components/mus/ws/default_access_policy.cc
index 8948462965c7ca3983707e81b95b81d1c13a63f7..f8efadb216488fc8d087c541a0f98edd3a76c6c6 100644
--- a/components/mus/ws/default_access_policy.cc
+++ b/components/mus/ws/default_access_policy.cc
@@ -79,7 +79,7 @@ bool DefaultAccessPolicy::CanDescendIntoWindowForWindowTree(
bool DefaultAccessPolicy::CanEmbed(const ServerWindow* window,
uint32_t policy_bitmask) const {
- if (policy_bitmask != mojom::WindowTree::ACCESS_POLICY_DEFAULT)
+ if (policy_bitmask != mojom::WindowTree::kAccessPolicyDefault)
return false;
return WasCreatedByThisConnection(window) ||
(delegate_->IsWindowKnownForAccessPolicy(window) &&
@@ -96,7 +96,7 @@ bool DefaultAccessPolicy::CanChangeWindowVisibility(
bool DefaultAccessPolicy::CanSetWindowSurface(
const ServerWindow* window,
mojom::SurfaceType surface_type) const {
- if (surface_type == mojom::SURFACE_TYPE_UNDERLAY)
+ if (surface_type == mojom::SurfaceType::UNDERLAY)
return WasCreatedByThisConnection(window);
// Once a window embeds another app, the embedder app is no longer able to
« no previous file with comments | « components/mus/public/interfaces/window_tree.mojom ('k') | components/mus/ws/event_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698