Index: ui/views/widget/widget.h |
diff --git a/ui/views/widget/widget.h b/ui/views/widget/widget.h |
index 22fda18c01ca04439d67e89eaba3bcea70d974ca..fee59fcab5b60dbdf5a52ac8856f11135dc12b7b 100644 |
--- a/ui/views/widget/widget.h |
+++ b/ui/views/widget/widget.h |
@@ -645,6 +645,10 @@ class VIEWS_EXPORT Widget : public internal::NativeWidgetDelegate, |
// with it. TYPE_CONTROL and TYPE_TOOLTIP is not considered top level. |
bool is_top_level() const { return is_top_level_; } |
+ // True when window movement via mouse interaction with the frame is disabled. |
+ bool movement_disabled() const { return movement_disabled_; } |
+ void set_movement_disabled(bool disabled) { movement_disabled_ = disabled; } |
+ |
// Returns the work area bounds of the screen the Widget belongs to. |
gfx::Rect GetWorkAreaBoundsInScreen() const; |
@@ -836,6 +840,10 @@ class VIEWS_EXPORT Widget : public internal::NativeWidgetDelegate, |
// Is |root_layers_| out of date? |
bool root_layers_dirty_; |
+ // True when window movement via mouse interaction with the frame should be |
+ // disabled. |
+ bool movement_disabled_; |
+ |
DISALLOW_COPY_AND_ASSIGN(Widget); |
}; |