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 ecfe984bcac6ce3264e1358fed454915983920bf..943e707265e686d3018fdd5fe085518785f26fcd 100644 |
--- a/ui/views/window/non_client_view.h |
+++ b/ui/views/window/non_client_view.h |
@@ -37,12 +37,18 @@ class VIEWS_EXPORT NonClientFrameView : public View { |
kClientEdgeThickness = 1, |
}; |
+ virtual ~NonClientFrameView(); |
+ |
// Sets whether the window should be rendered as active regardless of the |
// actual active state. Used when bubbles become active to make their parent |
// appear active. A value of true makes the window render as active always, |
// false gives normal behavior. |
void SetInactiveRenderingDisabled(bool disable); |
+ // Used to determine if the frame should be painted as active. Keyed off the |
+ // window's actual active state and |inactive_rendering_disabled_|. |
+ bool ShouldPaintAsActive() const; |
+ |
// Helper for non-client view implementations to determine which area of the |
// window border the specified |point| falls within. The other parameters are |
// the size of the sizing edges, and whether or not the window can be |
@@ -80,22 +86,12 @@ class VIEWS_EXPORT NonClientFrameView : public View { |
protected: |
virtual void OnBoundsChanged(const gfx::Rect& previous_bounds) OVERRIDE; |
- NonClientFrameView() : paint_as_active_(false) {} |
- |
- // Used to determine if the frame should be painted as active. Keyed off the |
- // window's actual active state and the override, see |
- // SetInactiveRenderingDisabled() above. |
- bool ShouldPaintAsActive() const; |
- |
- // Invoked from SetInactiveRenderingDisabled(). This implementation invokes |
- // SchedulesPaint as necessary. |
- virtual void ShouldPaintAsActiveChanged(); |
+ NonClientFrameView(); |
private: |
- // True when the non-client view should always be rendered as if the window |
- // were active, regardless of whether or not the top level window actually |
- // is active. |
- bool paint_as_active_; |
+ // Prevents the non-client frame view from being rendered as inactive when |
+ // true. |
+ bool inactive_rendering_disabled_; |
}; |
//////////////////////////////////////////////////////////////////////////////// |
@@ -166,8 +162,6 @@ class VIEWS_EXPORT NonClientView : public View { |
// Prevents the window from being rendered as deactivated when |disable| is |
// true, until called with |disable| false. Used when a sub-window is to be |
// shown that shouldn't visually de-activate the window. |
- // Subclasses can override this to perform additional actions when this value |
- // changes. |
void SetInactiveRenderingDisabled(bool disable); |
// Returns the bounds of the window required to display the content area at |