Index: ash/sticky_keys/sticky_keys_overlay.h |
diff --git a/ash/sticky_keys/sticky_keys_overlay.h b/ash/sticky_keys/sticky_keys_overlay.h |
index 63917941a4c4bfe872d9b88ca35efa0bc5f69513..5062636b81853caa5754c703bcadd38e944a4923 100644 |
--- a/ash/sticky_keys/sticky_keys_overlay.h |
+++ b/ash/sticky_keys/sticky_keys_overlay.h |
@@ -51,6 +51,10 @@ class ASH_EXPORT StickyKeysOverlay : public ui::LayerAnimationObserver { |
// animating, the returned value is the target of the animation. |
bool is_visible() { return is_visible_; } |
+ // Returns the underlying views::Widget for testing purposes. The returned |
+ // widget is owned by StickyKeysOverlay. |
+ views::Widget* GetWidgetForTesting(); |
+ |
private: |
// Returns the current bounds of the overlay, which is based on visibility. |
gfx::Rect CalculateOverlayBounds(); |
@@ -62,8 +66,7 @@ class ASH_EXPORT StickyKeysOverlay : public ui::LayerAnimationObserver { |
bool is_visible_; |
scoped_ptr<views::Widget> overlay_widget_; |
- // Ownership of |overlay_view_| is passed to the view heirarchy. |
- StickyKeysOverlayView* overlay_view_; |
+ scoped_ptr<StickyKeysOverlayView> overlay_view_; |
gfx::Size widget_size_; |
}; |