blob: 05cd323b4db79bec8342f50cd9b82bc36f8b13da [file] [log] [blame]
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <memory>
#include "ui/aura/aura_export.h"
#include "ui/aura/window.h"
class SkRegion;
namespace aura {
// Interface for WindowOcclusionTracker to update window occlusion info.
class AURA_EXPORT WindowOcclusionChangeBuilder {
virtual ~WindowOcclusionChangeBuilder() = default;
// Add an occlusion info change for |window|.
// Note that setting Window::OcclusionState::UNKNOWN to a window is not
// allowed.
virtual void Add(Window* window,
Window::OcclusionState occlusion_state,
SkRegion occluded_region) = 0;
// Factory to create the default implementation that updates occlusion info
// on aura::Window.
static std::unique_ptr<WindowOcclusionChangeBuilder> Create();
} // namespace aura