blob: 4b7d78862bd2bf3108ba1438d4f76be6caad29ad [file] [log] [blame]
// Copyright 2019 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 ASH_WM_WINDOW_MIRROR_VIEW_PIP_H_
#define ASH_WM_WINDOW_MIRROR_VIEW_PIP_H_
#include "ash/wm/window_mirror_view.h"
namespace ash {
// A view that mirrors the client area of a single (source) window.
// TODO(edcourtney): This currently displays nothing, but should display Android PIP windows with
// the controls not shown.
class ASH_EXPORT WindowMirrorViewPip : public WindowMirrorView {
public:
WindowMirrorViewPip(aura::Window* source, bool trilinear_filtering_on_init);
WindowMirrorViewPip(const WindowMirrorViewPip&) = delete;
WindowMirrorViewPip& operator=(const WindowMirrorViewPip&) = delete;
~WindowMirrorViewPip() override;
protected:
// WindowMirrorView:
void InitLayerOwner() override;
ui::Layer* GetMirrorLayer() override;
};
} // namespace ash
#endif // ASH_WM_WINDOW_MIRROR_VIEW_PIP_H_