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

Issue 785723002: Add new extension APIs related to animation policy. (Closed)

Created:
6 years ago by je_julie(Not used)
Modified:
5 years, 10 months ago
CC:
aboxhall+watch_chromium.org, asvitkine+watch_chromium.org, chromium-apps-reviews_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, dmazzoni+watch_chromium.org, dtseng+watch_chromium.org, extensions-reviews_chromium.org, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org, plundblad+watch_chromium.org, yuzo+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add new extension property related to animation policy. The new property is accessibilityFeatures.animationPolicy. The new field for animation policy is added to Web Preference and the new profile is added. accessibility_features.json is not specific to chromeos any more. When the animation policy is updated through the extension, Web preference is updated and WebSettings from Blink is updated. BUG=3690 Committed: https://crrev.com/7fbb5a1a69a97d9dbd3dd959e964477935fc6f2d Cr-Commit-Position: refs/heads/master@{#315330}

Patch Set 1 #

Total comments: 4

Patch Set 2 : animationPolicy added to accessibilityFeatures #

Total comments: 9

Patch Set 3 : Remove unnecessary code #

Total comments: 5

Patch Set 4 : Update array order #

Patch Set 5 : add animation_policy_prefs files #

Patch Set 6 : add animation_policy_prefs #

Patch Set 7 : AccessibilityNotifier #

Total comments: 14

Patch Set 8 : Update code #

Total comments: 14

Patch Set 9 : Use prefs_tab_helper. #

Total comments: 4

Patch Set 10 : Add animation_policy_prefs. #

Total comments: 4

Patch Set 11 : Update Code #

Total comments: 4

Patch Set 12 : Move RegisterAnimationPolicyPrefs to Browser_prefs #

Patch Set 13 : Rebase #

Patch Set 14 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+128 lines, -25 lines) Patch
A chrome/browser/accessibility/animation_policy_prefs.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +18 lines, -0 lines 0 comments Download
A chrome/browser/accessibility/animation_policy_prefs.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +19 lines, -0 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +13 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/preference/preference_api.cc View 1 2 3 4 5 6 7 8 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/extensions/permission_message_combinations_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +0 lines, -12 lines 0 comments Download
M chrome/browser/prefs/browser_prefs.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/prefs/prefs_tab_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/_permission_features.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/common/extensions/api/accessibility_features.json View 1 2 3 4 5 6 7 1 chunk +26 lines, -8 lines 0 comments Download
M chrome/common/extensions/api/schemas.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +1 line, -1 line 0 comments Download
M chrome/common/pref_names.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +5 lines, -0 lines 0 comments Download
M content/public/common/common_param_traits_macros.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +4 lines, -0 lines 0 comments Download
M content/public/common/web_preferences.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +12 lines, -0 lines 0 comments Download
M content/public/common/web_preferences.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +8 lines, -0 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 74 (22 generated)
je_julie(Not used)
Hi Kalman, Dominic and Mike, This patch adds new extension API to control animation under ...
6 years ago (2014-12-07 02:18:55 UTC) #2
dmazzoni
Looks reasonable to me, just a few minor issues. @kalman, others - I already suggested ...
6 years ago (2014-12-08 07:46:02 UTC) #3
Mike West
I'm only in the extension OWNERS for documentation changes. You'll need kalman@ (or someone sufficiently ...
6 years ago (2014-12-08 10:19:11 UTC) #5
not at google - send to devlin
Does it make sense to put this in accessibilityFeatures? https://code.google.com/p/chromium/codesearch#chromium/src/chrome/common/extensions/api/accessibility_features.json&q=accessibility_features&sq=package:chromium&l=7
6 years ago (2014-12-08 16:52:25 UTC) #6
dmazzoni
Right now everything in accessibilityFeatures is chromeos-only, but aside from that I don't see any ...
6 years ago (2014-12-08 16:56:23 UTC) #7
not at google - send to devlin
On 2014/12/08 16:56:23, dmazzoni wrote: > Right now everything in accessibilityFeatures is chromeos-only, but aside ...
6 years ago (2014-12-08 17:03:19 UTC) #8
je_julie(Not used)
Thanks for review and suggestions. Now I'm trying to move animation policy to accessibility_features. @kalman, ...
6 years ago (2014-12-09 15:16:11 UTC) #9
not at google - send to devlin
On 2014/12/09 15:16:11, je_julie wrote: > Thanks for review and suggestions. > Now I'm trying ...
6 years ago (2014-12-09 15:51:07 UTC) #10
not at google - send to devlin
+tbarzic
6 years ago (2014-12-09 15:51:59 UTC) #12
je_julie(Not used)
Hi reviewers, I tried to expose accessibilityFeatures without any platform dependency and added animationPolcy to ...
6 years ago (2014-12-11 16:14:13 UTC) #13
not at google - send to devlin
Nice! https://codereview.chromium.org/785723002/diff/20001/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/785723002/diff/20001/chrome/browser/chrome_content_browser_client.cc#newcode2334 chrome/browser/chrome_content_browser_client.cc:2334: std::string image_animation_policy = prefs->GetString(prefs::kAnimationPolicy); Please run git cl ...
6 years ago (2014-12-11 17:48:15 UTC) #14
dmazzoni
On Thu, Dec 11, 2014 at 9:48 AM, <kalman@chromium.org> wrote: > "value": [ > "animationPolicy", ...
6 years ago (2014-12-11 19:08:36 UTC) #15
not at google - send to devlin
On 2014/12/11 19:08:36, dmazzoni wrote: > On Thu, Dec 11, 2014 at 9:48 AM, <mailto:kalman@chromium.org> ...
6 years ago (2014-12-11 20:18:40 UTC) #16
je_julie(Not used)
@kalman, I see what is your point about naming but I think we'd better follow ...
6 years ago (2014-12-12 13:15:46 UTC) #17
not at google - send to devlin
https://codereview.chromium.org/785723002/diff/40001/chrome/browser/extensions/api/preference/preference_api.cc File chrome/browser/extensions/api/preference/preference_api.cc (right): https://codereview.chromium.org/785723002/diff/40001/chrome/browser/extensions/api/preference/preference_api.cc#newcode155 chrome/browser/extensions/api/preference/preference_api.cc:155: {"animationPolicy", Could you keep this in some sort of ...
6 years ago (2014-12-12 17:27:59 UTC) #18
je_julie(Not used)
kalman, Please check my comment. I'd like to get your opinion. Thanks, https://codereview.chromium.org/785723002/diff/40001/chrome/browser/extensions/api/preference/preference_api.cc File chrome/browser/extensions/api/preference/preference_api.cc ...
6 years ago (2014-12-14 05:46:26 UTC) #19
not at google - send to devlin
https://codereview.chromium.org/785723002/diff/40001/chrome/browser/extensions/api/preference/preference_api.cc File chrome/browser/extensions/api/preference/preference_api.cc (right): https://codereview.chromium.org/785723002/diff/40001/chrome/browser/extensions/api/preference/preference_api.cc#newcode499 chrome/browser/extensions/api/preference/preference_api.cc:499: content::BrowserAccessibilityState::GetInstance()->UpdateAnimationPolicy(); On 2014/12/14 05:46:26, je_julie wrote: > On 2014/12/12 ...
6 years ago (2014-12-15 03:44:07 UTC) #20
je_julie(Not used)
On 2014/12/15 03:44:07, kalman wrote: > Mm, ok, so the way I read this is ...
6 years ago (2014-12-15 06:18:46 UTC) #21
dmazzoni
On 2014/12/15 06:18:46, je_julie wrote: > On 2014/12/15 03:44:07, kalman wrote: > > Mm, ok, ...
6 years ago (2014-12-17 17:17:29 UTC) #23
je_julie(Not used)
On 2014/12/17 17:17:29, dmazzoni wrote: > > @Dominic, > > Can I ask your advice ...
5 years, 12 months ago (2014-12-28 05:37:11 UTC) #27
dmazzoni
On 2014/12/28 05:37:11, je_julie wrote: > The most concerned part is where I can add ...
5 years, 11 months ago (2015-01-12 07:39:44 UTC) #28
je_julie(Not used)
On 2015/01/12 07:39:44, dmazzoni wrote: > On 2014/12/28 05:37:11, je_julie wrote: > > The most ...
5 years, 11 months ago (2015-01-16 13:40:10 UTC) #32
dmazzoni
lgtm Thanks for your patience. AccessibilityNotifier looks great, I'm happy with that solution and I ...
5 years, 11 months ago (2015-01-27 06:52:41 UTC) #33
not at google - send to devlin
https://codereview.chromium.org/785723002/diff/240001/chrome/browser/extensions/api/preference/preference_api.cc File chrome/browser/extensions/api/preference/preference_api.cc (right): https://codereview.chromium.org/785723002/diff/240001/chrome/browser/extensions/api/preference/preference_api.cc#newcode72 chrome/browser/extensions/api/preference/preference_api.cc:72: {"alternateErrorPagesEnabled", On 2015/01/27 06:52:41, dmazzoni wrote: > Thanks for ...
5 years, 11 months ago (2015-01-27 16:49:03 UTC) #34
je_julie(Not used)
Dominic and kalman, Thanks for a review. I updated code according to reviewers comment. BTW, ...
5 years, 10 months ago (2015-01-28 04:42:00 UTC) #37
not at google - send to devlin
lgtm
5 years, 10 months ago (2015-01-28 18:10:59 UTC) #38
dmazzoni
lgtm
5 years, 10 months ago (2015-01-28 18:34:47 UTC) #39
dmazzoni
Ready for some OWNERS reviews: +jam for content/ +thestig for chrome/
5 years, 10 months ago (2015-01-28 18:37:28 UTC) #41
Lei Zhang
https://codereview.chromium.org/785723002/diff/300001/chrome/browser/accessibility/accessibility_notifier.h File chrome/browser/accessibility/accessibility_notifier.h (right): https://codereview.chromium.org/785723002/diff/300001/chrome/browser/accessibility/accessibility_notifier.h#newcode28 chrome/browser/accessibility/accessibility_notifier.h:28: enum AnimationPolicy { Can't you just reuse content::ImageAnimationPolicy? https://codereview.chromium.org/785723002/diff/300001/chrome/browser/accessibility/accessibility_notifier.h#newcode35 ...
5 years, 10 months ago (2015-01-28 19:38:43 UTC) #42
jam
i don't see why there's a new profile keyed service for these prefs, instead of ...
5 years, 10 months ago (2015-01-28 20:29:58 UTC) #43
je_julie(Not used)
Thanks for OWNERS's review. @jam, Can I use PrefsTabHelper for setting animation policy? I thought ...
5 years, 10 months ago (2015-01-29 02:17:27 UTC) #44
jam
On 2015/01/29 02:17:27, je_julie wrote: > Thanks for OWNERS's review. > > @jam, > Can ...
5 years, 10 months ago (2015-01-29 17:45:09 UTC) #45
je_julie(Not used)
@Lei Zhang, @jam, I updated new patchset. 1)I added #if defined(ENABLE_EXTENSIONS) at new code added. ...
5 years, 10 months ago (2015-01-30 15:58:06 UTC) #46
Lei Zhang
https://codereview.chromium.org/785723002/diff/320001/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/785723002/diff/320001/chrome/browser/chrome_content_browser_client.cc#newcode628 chrome/browser/chrome_content_browser_client.cc:628: const char kAnimationPolicyAllowed[] = "allowed"; These probably should go ...
5 years, 10 months ago (2015-01-30 20:18:08 UTC) #47
je_julie(Not used)
@Lei Zhang, Thanks for the comment. I updated the patch to follow up your comment. ...
5 years, 10 months ago (2015-01-31 07:25:35 UTC) #48
Lei Zhang
lgtm with some nits: https://codereview.chromium.org/785723002/diff/360001/chrome/browser/accessibility/animation_policy_prefs.h File chrome/browser/accessibility/animation_policy_prefs.h (right): https://codereview.chromium.org/785723002/diff/360001/chrome/browser/accessibility/animation_policy_prefs.h#newcode12 chrome/browser/accessibility/animation_policy_prefs.h:12: namespace chrome { We decided ...
5 years, 10 months ago (2015-02-03 06:47:35 UTC) #50
je_julie(Not used)
@Lei Zhang, Thanks for your comment. I updated the patchset. https://codereview.chromium.org/785723002/diff/360001/chrome/browser/accessibility/animation_policy_prefs.h File chrome/browser/accessibility/animation_policy_prefs.h (right): https://codereview.chromium.org/785723002/diff/360001/chrome/browser/accessibility/animation_policy_prefs.h#newcode12 ...
5 years, 10 months ago (2015-02-03 10:32:36 UTC) #51
je_julie(Not used)
As to trybot fail from android_dbg_tests_recipe, it seems it's flaky now. http://build.chromium.org/p/tryserver.chromium.linux/builders/android_dbg_tests_recipe
5 years, 10 months ago (2015-02-03 15:37:44 UTC) #53
jam
https://codereview.chromium.org/785723002/diff/400001/chrome/browser/accessibility/animation_policy_prefs.cc File chrome/browser/accessibility/animation_policy_prefs.cc (right): https://codereview.chromium.org/785723002/diff/400001/chrome/browser/accessibility/animation_policy_prefs.cc#newcode14 chrome/browser/accessibility/animation_policy_prefs.cc:14: void RegisterAnimationPolicyPrefs(user_prefs::PrefRegistrySyncable* registry) { you should call this directly ...
5 years, 10 months ago (2015-02-03 16:27:01 UTC) #54
je_julie(Not used)
@jam, Thanks for your comment. I updated the patchset. This patchset removed '#if defined(ENABLE_EXTENSIONS)' from ...
5 years, 10 months ago (2015-02-04 02:20:30 UTC) #56
jam
lgtm
5 years, 10 months ago (2015-02-05 22:53:12 UTC) #57
je_julie(Not used)
On 2015/02/05 22:53:12, jam wrote: > lgtm Thanks, jam. @Dominic, I simply rebased the patchset ...
5 years, 10 months ago (2015-02-06 11:32:54 UTC) #59
dmazzoni
The rebase is fine. It looks like you need one more reviewer, for content/public/common/common_param_traits_macros.h
5 years, 10 months ago (2015-02-06 16:55:24 UTC) #60
dmazzoni
+nasko for content/public/common/*param_traits*
5 years, 10 months ago (2015-02-06 16:56:09 UTC) #62
nasko
LGTM
5 years, 10 months ago (2015-02-06 23:31:42 UTC) #63
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/785723002/460001
5 years, 10 months ago (2015-02-07 04:26:26 UTC) #65
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator/builds/56521) mac_chromium_compile_dbg_ng on tryserver.chromium.mac (JOB_FAILED, ...
5 years, 10 months ago (2015-02-07 04:29:23 UTC) #67
je_julie(Not used)
@Dominic, I simply rebased the patchset again because of conflict with the latest code. Can ...
5 years, 10 months ago (2015-02-09 14:00:48 UTC) #69
dmazzoni
Yes - it's okay to land after rebasing! On Feb 9, 2015 6:00 AM, <je_julie.kim@samsung.com> ...
5 years, 10 months ago (2015-02-09 15:51:12 UTC) #70
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/785723002/480001
5 years, 10 months ago (2015-02-09 16:11:13 UTC) #72
commit-bot: I haz the power
Committed patchset #14 (id:480001)
5 years, 10 months ago (2015-02-09 17:26:36 UTC) #73
commit-bot: I haz the power
5 years, 10 months ago (2015-02-09 17:27:21 UTC) #74
Message was sent while issue was closed.
Patchset 14 (id:??) landed as
https://crrev.com/7fbb5a1a69a97d9dbd3dd959e964477935fc6f2d
Cr-Commit-Position: refs/heads/master@{#315330}

Powered by Google App Engine
This is Rietveld 408576698