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

Unified Diff: ash/wm/dock/docked_window_resizer.h

Issue 23431009: Windows docking should get triggered by pressing against the screen edge (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Windows docking by pressing against the screen edge (rebase) Created 7 years, 3 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/dock/docked_window_layout_manager_unittest.cc ('k') | ash/wm/dock/docked_window_resizer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/dock/docked_window_resizer.h
diff --git a/ash/wm/dock/docked_window_resizer.h b/ash/wm/dock/docked_window_resizer.h
index 3f4bd47fb2623580b8080e88474712c2db580dd4..567b438a59024e1f86745c8c2c5225d18868bb45 100644
--- a/ash/wm/dock/docked_window_resizer.h
+++ b/ash/wm/dock/docked_window_resizer.h
@@ -24,7 +24,6 @@ namespace ash {
namespace internal {
class DockedWindowLayoutManager;
-class PhantomWindowController;
// DockWindowResizer is used by ToplevelWindowEventFilter to handle dragging,
// moving or resizing of a window while it is docked to the side of a screen.
@@ -55,12 +54,6 @@ class ASH_EXPORT DockedWindowResizer : public WindowResizer {
DockedWindowResizer(WindowResizer* next_window_resizer,
const Details& details);
- // Returns the side of the screen that the window should dock to or
- // DOCKED_ALIGNMENT_NONE when the window is not on a side or when some other
- // windows are already docked on the other side or when launcher (shelf) is
- // aligned on the same side.
- DockedAlignment GetDraggedWindowAlignment();
-
// Checks if the provided window bounds should snap to the side of a screen.
// If so the offset returned gives the necessary adjustment to snap.
bool MaybeSnapToEdge(const gfx::Rect& bounds, gfx::Point* offset);
@@ -73,9 +66,6 @@ class ASH_EXPORT DockedWindowResizer : public WindowResizer {
// of the drag start.
void FinishedDragging();
- // Updates the bounds of the phantom window that is used as a docking hint.
- void UpdateSnapPhantomWindow();
-
const Details details_;
gfx::Point last_location_;
@@ -90,9 +80,6 @@ class ASH_EXPORT DockedWindowResizer : public WindowResizer {
// Set to true once Drag() is invoked and the bounds of the window change.
bool did_move_or_resize_;
- // Gives a preview of where the the window will end up.
- scoped_ptr<PhantomWindowController> snap_phantom_window_controller_;
-
// Set to true if the window that is being dragged was docked before drag.
bool was_docked_;
« no previous file with comments | « ash/wm/dock/docked_window_layout_manager_unittest.cc ('k') | ash/wm/dock/docked_window_resizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698