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

Unified Diff: chrome/browser/accessibility/animation_policy_prefs.cc

Issue 785723002: Add new extension APIs related to animation policy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 10 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: chrome/browser/accessibility/animation_policy_prefs.cc
diff --git a/chrome/browser/accessibility/animation_policy_prefs.cc b/chrome/browser/accessibility/animation_policy_prefs.cc
new file mode 100644
index 0000000000000000000000000000000000000000..45b795aae763b69a5f77a9b41d0f6298ee99afec
--- /dev/null
+++ b/chrome/browser/accessibility/animation_policy_prefs.cc
@@ -0,0 +1,19 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/accessibility/animation_policy_prefs.h"
+
+#include "chrome/common/pref_names.h"
+#include "components/pref_registry/pref_registry_syncable.h"
+
+const char kAnimationPolicyAllowed[] = "allowed";
+const char kAnimationPolicyOnce[] = "once";
+const char kAnimationPolicyNone[] = "none";
+
+void RegisterAnimationPolicyPrefs(user_prefs::PrefRegistrySyncable* registry) {
+ registry->RegisterStringPref(
+ prefs::kAnimationPolicy,
+ kAnimationPolicyAllowed,
+ user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
+}
« no previous file with comments | « chrome/browser/accessibility/animation_policy_prefs.h ('k') | chrome/browser/chrome_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698