window_mirror_view_pip.h 999 B

1234567891011121314151617181920212223242526272829303132
  1. // Copyright 2019 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef ASH_WM_WINDOW_MIRROR_VIEW_PIP_H_
  5. #define ASH_WM_WINDOW_MIRROR_VIEW_PIP_H_
  6. #include "ash/wm/window_mirror_view.h"
  7. namespace ash {
  8. // A view that mirrors the client area of a single (source) window.
  9. // TODO(edcourtney): This currently displays nothing, but should display Android PIP windows with
  10. // the controls not shown.
  11. class ASH_EXPORT WindowMirrorViewPip : public WindowMirrorView {
  12. public:
  13. WindowMirrorViewPip(aura::Window* source, bool trilinear_filtering_on_init);
  14. WindowMirrorViewPip(const WindowMirrorViewPip&) = delete;
  15. WindowMirrorViewPip& operator=(const WindowMirrorViewPip&) = delete;
  16. ~WindowMirrorViewPip() override;
  17. protected:
  18. // WindowMirrorView:
  19. void InitLayerOwner() override;
  20. ui::Layer* GetMirrorLayer() override;
  21. };
  22. } // namespace ash
  23. #endif // ASH_WM_WINDOW_MIRROR_VIEW_PIP_H_