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

Unified Diff: ash/wm/dock/docked_window_layout_manager.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 should get triggered by pressing against the screen edge (comments) 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
Index: ash/wm/dock/docked_window_layout_manager.h
diff --git a/ash/wm/dock/docked_window_layout_manager.h b/ash/wm/dock/docked_window_layout_manager.h
index a3019aa7175c40381e52332781690242a04fc22f..d7aa68528813a82aa75018fae898c7e7fed711bb 100644
--- a/ash/wm/dock/docked_window_layout_manager.h
+++ b/ash/wm/dock/docked_window_layout_manager.h
@@ -61,6 +61,9 @@ class ASH_EXPORT DockedWindowLayoutManager
public keyboard::KeyboardControllerObserver,
public ash::ShelfLayoutManagerObserver {
public:
+ // Maximum width of the docked windows area.
+ static const int kMaxDockWidth;
+
explicit DockedWindowLayoutManager(aura::Window* dock_container);
virtual ~DockedWindowLayoutManager();
@@ -102,6 +105,9 @@ class ASH_EXPORT DockedWindowLayoutManager
// Returns last known coordinates of |dragged_window_| after Relayout.
const gfx::Rect dragged_bounds() const { return dragged_bounds_;}
+ // Returns true if currently dragged window is docked at the screen edge.
+ bool is_dragged_window_docked() const { return is_dragged_window_docked_; }
+
// aura::LayoutManager:
virtual void OnWindowResized() OVERRIDE;
virtual void OnWindowAddedToLayout(aura::Window* child) OVERRIDE;
@@ -144,9 +150,6 @@ class ASH_EXPORT DockedWindowLayoutManager
// Minimum width of the docked windows area.
static const int kMinDockWidth;
- // Maximum width of the docked windows area.
- static const int kMaxDockWidth;
-
// Width of the gap between the docked windows and a workspace.
static const int kMinDockGap;
« no previous file with comments | « no previous file | ash/wm/dock/docked_window_layout_manager.cc » ('j') | ash/wm/dock/docked_window_resizer_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698