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

Unified Diff: ash/wm/overview/scoped_transform_overview_window.h

Issue 2918403006: CrOS Tablet Window management - Split Screen part I (Closed)
Patch Set: Add unittests. Will split the CL into two CLs. Created 3 years, 6 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
Index: ash/wm/overview/scoped_transform_overview_window.h
diff --git a/ash/wm/overview/scoped_transform_overview_window.h b/ash/wm/overview/scoped_transform_overview_window.h
index 56b12cf9414ca894b57c5daf68bd9f13bf980caa..83d1812b261a03a7d87fd3e6c99938a1968d3b6f 100644
--- a/ash/wm/overview/scoped_transform_overview_window.h
+++ b/ash/wm/overview/scoped_transform_overview_window.h
@@ -34,6 +34,7 @@ class Widget;
namespace ash {
class ScopedOverviewAnimationSettings;
+class WindowSelectorItem;
// Manages a window, and its transient children, in the overview mode. This
// class allows transforming the windows with a helper to determine the best
@@ -65,7 +66,8 @@ class ASH_EXPORT ScopedTransformOverviewWindow : public ui::EventHandler {
static gfx::Transform GetTransformForRect(const gfx::Rect& src_rect,
const gfx::Rect& dst_rect);
- explicit ScopedTransformOverviewWindow(aura::Window* window);
+ ScopedTransformOverviewWindow(WindowSelectorItem* selector_item,
+ aura::Window* window);
~ScopedTransformOverviewWindow() override;
// Starts an animation sequence which will use animation settings specified by
@@ -165,6 +167,9 @@ class ASH_EXPORT ScopedTransformOverviewWindow : public ui::EventHandler {
// Makes Close() execute synchronously when used in tests.
static void SetImmediateCloseForTests();
+ // A weak pointer to the window selector item that owns the transform window.
+ WindowSelectorItem* selector_item_;
+
// A weak pointer to the real window in the overview.
aura::Window* window_;
« no previous file with comments | « ash/wm/overview/scoped_overview_animation_settings.cc ('k') | ash/wm/overview/scoped_transform_overview_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698