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

Unified Diff: content/public/browser/browser_accessibility_state.h

Issue 785723002: Add new extension APIs related to animation policy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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: content/public/browser/browser_accessibility_state.h
diff --git a/content/public/browser/browser_accessibility_state.h b/content/public/browser/browser_accessibility_state.h
index 6c91e1b7b7699734675ebe734dba84c711e96fea..6a2ead27f1ec370991945ae22e253075e87aa116 100644
--- a/content/public/browser/browser_accessibility_state.h
+++ b/content/public/browser/browser_accessibility_state.h
@@ -39,6 +39,13 @@ class CONTENT_EXPORT BrowserAccessibilityState {
// Returns true if the browser should be customized for accessibility.
virtual bool IsAccessibleBrowser() = 0;
+ // Gets the policy for handling animated images.
+ // It has three options, "Allowed", "Once" and "None".
+ virtual const std::string& GetImageAnimationPolicy() const = 0;
+
+ // Sets the policy for handling animated images.
+ virtual void SetImageAnimationPolicy(const std::string& policy) = 0;
+
// Add a callback method that will be called once, a small while after the
// browser starts up, when accessibility state histograms are updated.
// Use this to register a method to update additional accessibility

Powered by Google App Engine
This is Rietveld 408576698