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 d88e762e09259e5aca6ec4f0b3263b23da7fd202..b251a709268f8268ae7d5d112db984335d4934ac 100644 |
--- a/ui/views/window/non_client_view.h |
+++ b/ui/views/window/non_client_view.h |
@@ -97,6 +97,18 @@ class VIEWS_EXPORT NonClientFrameView : public View, |
// View: |
void OnBoundsChanged(const gfx::Rect& previous_bounds) override; |
+ |
+ void set_active_state_override(bool* active_state_override) { |
+ active_state_override_ = active_state_override; |
+ } |
+ |
+ private: |
+ // Used to force ShouldPaintAsActive() to treat the active state a particular |
+ // way. This is normally null; when non-null, its value will override the |
+ // normal "active" value computed by the function. |
+ bool* active_state_override_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(NonClientFrameView); |
}; |
//////////////////////////////////////////////////////////////////////////////// |