Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(189)

Unified Diff: content/browser/accessibility/browser_accessibility_state_impl.h

Issue 896653002: Don't set the STATE_SYSTEM_HOTTRACKED state in tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/browser/accessibility/browser_accessibility_state_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
};
« no previous file with comments | « no previous file | content/browser/accessibility/browser_accessibility_state_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698