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

Unified Diff: ui/accessibility/ax_action_data.h

Issue 2768703002: Wire up an api to darken screen for accessibility (Closed)
Patch Set: Cvox changes. Created 3 years, 9 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
Index: ui/accessibility/ax_action_data.h
diff --git a/ui/accessibility/ax_action_data.h b/ui/accessibility/ax_action_data.h
index 4c0af535749aac9163dd87fc87832cba42cf9dc7..5dc806a15f66ba517fdbb47bdff7cc0131ad1bb6 100644
--- a/ui/accessibility/ax_action_data.h
+++ b/ui/accessibility/ax_action_data.h
@@ -19,6 +19,10 @@ struct AX_EXPORT AXActionData {
AXActionData(const AXActionData& other);
virtual ~AXActionData();
+ // Add a boolean attribute to this action.
+ void AddBoolAttribute(AXActionBoolAttribute attribute, bool value);
+ bool GetBoolAttribute(AXActionBoolAttribute attr) const;
+
// Return a string representation of this data, for debugging.
virtual std::string ToString() const;
@@ -53,6 +57,7 @@ struct AX_EXPORT AXActionData {
// The new value for a node, for the SET_VALUE action.
base::string16 value;
+ std::vector<std::pair<AXActionBoolAttribute, bool>> bool_attributes;
};
} // namespace ui

Powered by Google App Engine
This is Rietveld 408576698