Index: content/browser/accessibility/browser_accessibility_state_impl.h |
diff --git a/content/browser/accessibility/browser_accessibility_state_impl.h b/content/browser/accessibility/browser_accessibility_state_impl.h |
index 4c8884373d6c1ef25ed04c62d47369d1ccb310da..77249163f402dee8dd1286e1f8180ae91777c052 100644 |
--- a/content/browser/accessibility/browser_accessibility_state_impl.h |
+++ b/content/browser/accessibility/browser_accessibility_state_impl.h |
@@ -60,6 +60,18 @@ class CONTENT_EXPORT BrowserAccessibilityStateImpl |
// removed. |
void RemoveAccessibilityMode(AccessibilityMode mode); |
+ // Accessibility objects can have the "hot tracked" state set when |
David Tseng
2015/02/03 02:19:42
I wonder if an easier fix to this is to just move
dmazzoni
2015/02/03 06:54:11
I think that'd be annoying for anyone who runs con
|
+ // the mouse is hovering over them, but this makes tests flaky because |
+ // the test behaves differently when the mouse happens to be over an |
+ // element. This is a global switch to not use the "hot tracked" state |
+ // in a test. |
+ void set_disable_hot_tracking_for_testing(bool disable_hot_tracking) { |
+ disable_hot_tracking_ = disable_hot_tracking; |
+ } |
+ bool disable_hot_tracking_for_testing() const { |
+ return disable_hot_tracking_; |
+ } |
+ |
private: |
friend class base::RefCountedThreadSafe<BrowserAccessibilityStateImpl>; |
friend struct DefaultSingletonTraits<BrowserAccessibilityStateImpl>; |
@@ -84,6 +96,8 @@ class CONTENT_EXPORT BrowserAccessibilityStateImpl |
std::vector<base::Closure> histogram_callbacks_; |
+ bool disable_hot_tracking_; |
+ |
DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityStateImpl); |
}; |