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

Unified Diff: ash/wm/window_mirror_view.h

Issue 2383263002: Generalize layer mirroring for phantom windows (Closed)
Patch Set: Rebase 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 | « ash/wm/drag_window_controller.cc ('k') | ash/wm/window_mirror_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/window_mirror_view.h
diff --git a/ash/wm/window_mirror_view.h b/ash/wm/window_mirror_view.h
index 85b990cab04d156df8aa7ff422a2379461e419a4..5fabd641ff0e00933d41df7b379b5705224f49f5 100644
--- a/ash/wm/window_mirror_view.h
+++ b/ash/wm/window_mirror_view.h
@@ -6,12 +6,14 @@
#define ASH_WM_WINDOW_MIRROR_VIEW_H_
#include <memory>
-#include <vector>
#include "ash/ash_export.h"
#include "base/macros.h"
#include "ui/views/view.h"
-#include "ui/wm/core/window_util.h"
+
+namespace ui {
+class LayerTreeOwner;
+}
namespace ash {
@@ -19,12 +21,8 @@ class WmWindowAura;
namespace wm {
-class ForwardingLayerDelegate;
-
-// A view that mirrors the client area of a single window. Layers are lifted
-// from the underlying window (which gets new ones in their place). New paint
-// calls, if any, are forwarded to the underlying window.
-class WindowMirrorView : public views::View, public ::wm::LayerDelegateFactory {
+// A view that mirrors the client area of a single window.
+class WindowMirrorView : public views::View {
public:
explicit WindowMirrorView(WmWindowAura* window);
~WindowMirrorView() override;
@@ -35,10 +33,6 @@ class WindowMirrorView : public views::View, public ::wm::LayerDelegateFactory {
bool GetNeedsNotificationWhenVisibleBoundsChange() const override;
void OnVisibleBoundsChanged() override;
- // ::wm::LayerDelegateFactory:
- ui::LayerDelegate* CreateDelegate(ui::Layer* new_layer,
- ui::Layer* layer) override;
-
private:
void InitLayerOwner();
@@ -57,8 +51,6 @@ class WindowMirrorView : public views::View, public ::wm::LayerDelegateFactory {
// the first time the view becomes visible.
std::unique_ptr<ui::LayerTreeOwner> layer_owner_;
- std::vector<std::unique_ptr<ForwardingLayerDelegate>> delegates_;
-
DISALLOW_COPY_AND_ASSIGN(WindowMirrorView);
};
« no previous file with comments | « ash/wm/drag_window_controller.cc ('k') | ash/wm/window_mirror_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698