forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwindow_occlusion_change_builder.h
36 lines (26 loc) · 1.07 KB
/
window_occlusion_change_builder.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// 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.
#ifndef UI_AURA_WINDOW_OCCLUSION_CHANGE_BUILDER_H_
#define UI_AURA_WINDOW_OCCLUSION_CHANGE_BUILDER_H_
#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 {
public:
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
#endif // UI_AURA_WINDOW_OCCLUSION_CHANGE_BUILDER_H_