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

Unified Diff: ui/views/window/non_client_view.h

Issue 38073004: Not moving a docked window when restoring a previously maximized window (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Not moving a docked window when restoring a previously maximized window (delegating IsDocked to non… Created 7 years, 2 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: ui/views/window/non_client_view.h
diff --git a/ui/views/window/non_client_view.h b/ui/views/window/non_client_view.h
index d4305783d84a5f3e5f9c20542a40e356168da1de..b24d4610f4c47bf427ecc3c258c3b096c0eda4df 100644
--- a/ui/views/window/non_client_view.h
+++ b/ui/views/window/non_client_view.h
@@ -68,6 +68,10 @@ class VIEWS_EXPORT NonClientFrameView : public View {
virtual void UpdateWindowIcon() = 0;
virtual void UpdateWindowTitle() = 0;
+ // Can be overridden on platforms that support docked windows to return true
+ // if a top-level window is docked.
+ virtual bool IsDocked() const { return false; }
+
// Overridden from View:
virtual bool HitTestRect(const gfx::Rect& rect) const OVERRIDE;
virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE;
@@ -207,6 +211,10 @@ class VIEWS_EXPORT NonClientView : public View {
// Set the accessible name of this view.
void SetAccessibleName(const string16& name);
+ // Returns true if the frame view is docked (on platforms that support docked
+ // windows).
+ bool IsFrameViewDocked() const;
+
// NonClientView, View overrides:
virtual gfx::Size GetPreferredSize() OVERRIDE;
virtual gfx::Size GetMinimumSize() OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698