Index: ui/views/controls/button/custom_button.h |
diff --git a/ui/views/controls/button/custom_button.h b/ui/views/controls/button/custom_button.h |
index 713cdeaa80a44297c604e2b94dc4264fade7cc59..869bcd77af5dac05115312e726c984cf58aac1cf 100644 |
--- a/ui/views/controls/button/custom_button.h |
+++ b/ui/views/controls/button/custom_button.h |
@@ -135,6 +135,11 @@ class VIEWS_EXPORT CustomButton : public Button, |
scoped_ptr<gfx::ThrobAnimation> hover_animation_; |
private: |
+ // Returns true if this is not a top level widget. Virtual for tests. |
+ virtual bool IsChildWidget() const; |
+ // Returns true if the focus is not in a top level widget. Virtual for tests. |
+ virtual bool FocusInChildWidget() const; |
+ |
// Should we animate when the state changes? Defaults to true. |
bool animate_on_state_change_; |