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

Unified Diff: services/ui/ws/window_manager_access_policy.cc

Issue 2429173005: Mus+Ash: Replace (Server)WindowSurface with (Server)WindowCompositorFrameSink (Closed)
Patch Set: Rebased Created 4 years, 2 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 | « services/ui/ws/window_manager_access_policy.h ('k') | services/ui/ws/window_manager_state_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/window_manager_access_policy.cc
diff --git a/services/ui/ws/window_manager_access_policy.cc b/services/ui/ws/window_manager_access_policy.cc
index 21e73795314868244bd78f63b769b119aa2f6c4a..37b3e1df74d653c600bbe40fd386b1d7574103fc 100644
--- a/services/ui/ws/window_manager_access_policy.cc
+++ b/services/ui/ws/window_manager_access_policy.cc
@@ -86,13 +86,13 @@ bool WindowManagerAccessPolicy::CanChangeWindowOpacity(
return WasCreatedByThisClient(window);
}
-bool WindowManagerAccessPolicy::CanSetWindowSurface(
+bool WindowManagerAccessPolicy::CanSetWindowCompositorFrameSink(
const ServerWindow* window,
- ui::mojom::SurfaceType surface_type) const {
+ ui::mojom::CompositorFrameSinkType compositor_frame_sink_type) const {
// Allow the window manager to always provide the underlay. This is important
// when the window manager is asked to paint the title area to windows it did
// not create.
- if (surface_type == mojom::SurfaceType::UNDERLAY)
+ if (compositor_frame_sink_type == mojom::CompositorFrameSinkType::UNDERLAY)
return true;
if (delegate_->IsWindowRootOfAnotherTreeForAccessPolicy(window))
« no previous file with comments | « services/ui/ws/window_manager_access_policy.h ('k') | services/ui/ws/window_manager_state_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698