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

Unified Diff: ash/wm/common/wm_globals.h

Issue 1929023002: Refactors WindowResizers to use ash/wm/common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/common/shelf/wm_shelf_util.cc ('k') | ash/wm/common/wm_shell_window_ids.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/common/wm_globals.h
diff --git a/ash/wm/common/wm_globals.h b/ash/wm/common/wm_globals.h
index 34ad0f2c84e3105327781f1601370ed98d28297d..a98b0692eb52b17ad51151952039d279ffb35337 100644
--- a/ash/wm/common/wm_globals.h
+++ b/ash/wm/common/wm_globals.h
@@ -7,6 +7,7 @@
#include <stdint.h>
+#include <memory>
#include <vector>
#include "ash/ash_export.h"
@@ -17,12 +18,14 @@ class Rect;
namespace ash {
-class UserMetricsRecorder;
+class WindowResizer;
namespace wm {
+class WindowState;
class WmActivationObserver;
class WmDisplayObserver;
+enum class WmUserMetricsAction;
James Cook 2016/04/28 20:09:28 nit: either top of the list ("enum") or under WmOv
class WmOverviewModeObserver;
class WmWindow;
@@ -62,7 +65,19 @@ class ASH_EXPORT WmGlobals {
virtual std::vector<WmWindow*> GetAllRootWindows() = 0;
- virtual UserMetricsRecorder* GetUserMetricsRecorder() = 0;
+ virtual void RecordUserMetricsAction(WmUserMetricsAction action) = 0;
+
+ // Returns a WindowResizer to handle dragging. |next_window_resizer| is
+ // the next WindowResizer in the WindowResizer chain. This may return
+ // |next_window_resizer|.
+ virtual std::unique_ptr<WindowResizer> CreateDragWindowResizer(
+ std::unique_ptr<WindowResizer> next_window_resizer,
+ wm::WindowState* window_state) = 0;
+
+ // TODO(sky): if WindowSelectorController can't be moved over, move these
+ // onto their own local class.
+ virtual bool IsOverviewModeSelecting() = 0;
+ virtual bool IsOverviewModeRestoringMinimizedWindows() = 0;
virtual void AddActivationObserver(WmActivationObserver* observer) = 0;
virtual void RemoveActivationObserver(WmActivationObserver* observer) = 0;
« no previous file with comments | « ash/wm/common/shelf/wm_shelf_util.cc ('k') | ash/wm/common/wm_shell_window_ids.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698