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

Unified Diff: ash/wm/window_state.h

Issue 68033003: Undocks window first before side-snapping bounds (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Undocks window first before side-snapping bounds (comments) Created 7 years, 1 month 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/window_state.h
diff --git a/ash/wm/window_state.h b/ash/wm/window_state.h
index 2bbdd035b0d127d001746d55ddfc9ba0b96d426b..bf0c70213b1178b5f1953e44615ec0ea04e95495 100644
--- a/ash/wm/window_state.h
+++ b/ash/wm/window_state.h
@@ -69,6 +69,7 @@ class ASH_EXPORT WindowState : public aura::WindowObserver {
bool IsNormalShowState() const;
bool IsActive() const;
bool IsDocked() const;
+ bool IsSnapped() const;
// Checks if the window can change its state accordingly.
bool CanMaximize() const;
@@ -257,6 +258,9 @@ class ASH_EXPORT WindowState : public aura::WindowObserver {
void SnapWindow(WindowShowType left_or_right,
const gfx::Rect& bounds);
+ // Allows window to be repositioned away from the screen edge.
+ void SetWindowShowTypeUnsnapped();
+
// The owner of this window settings.
aura::Window* window_;
scoped_ptr<WindowStateDelegate> delegate_;

Powered by Google App Engine
This is Rietveld 408576698