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

Unified Diff: ash/display/display_util.h

Issue 2282903003: Remove MouseWarpController construction from ash::DisplayManager (Closed)
Patch Set: rebased Created 4 years, 4 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/display/display_manager.cc ('k') | ash/display/display_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/display_util.h
diff --git a/ash/display/display_util.h b/ash/display/display_util.h
index 343ebcadf67d44dd8bd9097051196fe2664945e2..56180f95d776873bed333796477bd4826a8a23e2 100644
--- a/ash/display/display_util.h
+++ b/ash/display/display_util.h
@@ -5,16 +5,14 @@
#ifndef ASH_DISPLAY_DISPLAY_UTIL_H_
#define ASH_DISPLAY_DISPLAY_UTIL_H_
-#include <stdint.h>
-
-#include <set>
-#include <utility>
-#include <vector>
+#include <memory>
#include "ash/ash_export.h"
-#include "base/memory/ref_counted.h"
-#include "ui/display/manager/display_layout.h"
-#include "ui/display/manager/managed_display_info.h"
+#include "base/strings/string16.h"
+
+namespace aura {
+class Window;
+}
namespace display {
class ManagedDisplayInfo;
@@ -23,13 +21,19 @@ class ManagedDisplayInfo;
namespace gfx {
class Point;
class Rect;
-class Size;
}
-namespace ui {}
-
namespace ash {
class AshWindowTreeHost;
+class DisplayManager;
+class MouseWarpController;
+
+// Creates a MouseWarpController for the current display
+// configuration. |drag_source| is the window where dragging
+// started, or nullptr otherwise.
+std::unique_ptr<MouseWarpController> CreateMouseWarpController(
+ DisplayManager* manager,
+ aura::Window* drag_source);
// TODO(rjkroege): Move this into display_manager.h
// Sets the UI scale for the |display_id|. Returns false if the
« no previous file with comments | « ash/display/display_manager.cc ('k') | ash/display/display_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698