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

Issue 9316102: Update extension events, routing, and delivery to use user gesture. (Closed)

Created:
8 years, 10 months ago by Greg Billock
Modified:
8 years, 9 months ago
CC:
chromium-reviews, darin-cc_chromium.org, mihaip+watch_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Update extension events, routing, and delivery to use user gesture. R=aa@chromium.org BUG=109425 TEST=*Extension* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=124596

Patch Set 1 #

Total comments: 11

Patch Set 2 : Add enum constants, adapt to new proposed WebKit API. #

Patch Set 3 : Merge to head #

Patch Set 4 : Update to match current WebKit API. #

Patch Set 5 : Move enum to router class. Boolean in message. #

Patch Set 6 : Merge to head #

Total comments: 6

Patch Set 7 : Change to UserGestureState #

Patch Set 8 : Change to all-caps enum consts #

Patch Set 9 : Fix ExtentionMenuManagerTest mock #

Patch Set 10 : lint fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+96 lines, -31 lines) Patch
M chrome/browser/extensions/api/webrequest/webrequest_api.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/extension_event_router.h View 1 2 3 4 5 6 7 2 chunks +20 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_event_router.cc View 1 2 3 4 5 6 7 6 chunks +30 lines, -9 lines 0 comments Download
M chrome/browser/extensions/extension_menu_manager.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_menu_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 3 chunks +14 lines, -11 lines 0 comments Download
M chrome/browser/extensions/extension_message_service.cc View 1 2 3 4 5 6 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/common/extensions/extension_messages.h View 1 2 3 4 5 6 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/renderer/extensions/extension_dispatcher.h View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M chrome/renderer/extensions/extension_dispatcher.cc View 1 2 3 4 5 6 3 chunks +9 lines, -1 line 0 comments Download
M chrome/renderer/extensions/extension_helper.h View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M chrome/renderer/extensions/extension_helper.cc View 1 2 3 4 5 6 3 chunks +9 lines, -1 line 0 comments Download

Messages

Total messages: 24 (0 generated)
Greg Billock
8 years, 10 months ago (2012-02-03 20:09:47 UTC) #1
Aaron Boodman
LGTM, but Matt should also take a quick look. https://chromiumcodereview.appspot.com/9316102/diff/1/chrome/browser/extensions/extension_event_router.h File chrome/browser/extensions/extension_event_router.h (right): https://chromiumcodereview.appspot.com/9316102/diff/1/chrome/browser/extensions/extension_event_router.h#newcode38 chrome/browser/extensions/extension_event_router.h:38: ...
8 years, 10 months ago (2012-02-03 20:18:47 UTC) #2
Matt Perry
https://chromiumcodereview.appspot.com/9316102/diff/1/chrome/browser/extensions/extension_event_router.h File chrome/browser/extensions/extension_event_router.h (right): https://chromiumcodereview.appspot.com/9316102/diff/1/chrome/browser/extensions/extension_event_router.h#newcode38 chrome/browser/extensions/extension_event_router.h:38: bool user_caused = false); Default arguments are forbidden by ...
8 years, 10 months ago (2012-02-03 20:34:40 UTC) #3
Greg Billock
https://chromiumcodereview.appspot.com/9316102/diff/1/chrome/browser/extensions/extension_event_router.h File chrome/browser/extensions/extension_event_router.h (right): https://chromiumcodereview.appspot.com/9316102/diff/1/chrome/browser/extensions/extension_event_router.h#newcode38 chrome/browser/extensions/extension_event_router.h:38: bool user_caused = false); On 2012/02/03 20:18:47, Aaron Boodman ...
8 years, 10 months ago (2012-02-03 22:57:56 UTC) #4
Aaron Boodman
On 2012/02/03 22:57:56, Greg Billock wrote: > https://chromiumcodereview.appspot.com/9316102/diff/1/chrome/browser/extensions/extension_event_router.h > File chrome/browser/extensions/extension_event_router.h (right): > > https://chromiumcodereview.appspot.com/9316102/diff/1/chrome/browser/extensions/extension_event_router.h#newcode38 ...
8 years, 10 months ago (2012-02-05 03:00:01 UTC) #5
Greg Billock
On 2012/02/05 03:00:01, Aaron Boodman wrote: > On 2012/02/03 22:57:56, Greg Billock wrote: > > ...
8 years, 10 months ago (2012-02-06 17:32:24 UTC) #6
Aaron Boodman
On 2012/02/06 17:32:24, Greg Billock wrote: > On 2012/02/05 03:00:01, Aaron Boodman wrote: > > ...
8 years, 10 months ago (2012-02-06 18:38:41 UTC) #7
Greg Billock
On 2012/02/06 18:38:41, Aaron Boodman wrote: > On 2012/02/06 17:32:24, Greg Billock wrote: > > ...
8 years, 10 months ago (2012-02-06 20:19:57 UTC) #8
Greg Billock
http://codereview.chromium.org/9316102/diff/1/chrome/browser/extensions/extension_event_router.h File chrome/browser/extensions/extension_event_router.h (right): http://codereview.chromium.org/9316102/diff/1/chrome/browser/extensions/extension_event_router.h#newcode38 chrome/browser/extensions/extension_event_router.h:38: bool user_caused = false); On 2012/02/03 20:18:47, Aaron Boodman ...
8 years, 10 months ago (2012-02-06 22:58:00 UTC) #9
Greg Billock
(Note that this change is dependent on how the WebKit API ends up looking: https://bugs.webkit.org/show_bug.cgi?id=77690) ...
8 years, 10 months ago (2012-02-06 23:00:36 UTC) #10
Greg Billock
On the webkit API side, I've taken out the user gesture constructor for non-user-caused gestures ...
8 years, 10 months ago (2012-02-13 21:36:10 UTC) #11
Aaron Boodman
I'm sorry, I don't follow. Are there still two cases? If so, I still prefer ...
8 years, 10 months ago (2012-02-13 21:38:46 UTC) #12
Greg Billock
Right now the WebKit API only supports creating a user gesture object which indicates user ...
8 years, 10 months ago (2012-02-13 22:36:47 UTC) #13
Greg Billock
OK, this is in on the webkit side now. Take another look?
8 years, 10 months ago (2012-02-24 18:15:01 UTC) #14
Greg Billock
On 2012/02/24 18:15:01, Greg Billock wrote: > OK, this is in on the webkit side ...
8 years, 9 months ago (2012-02-29 00:59:06 UTC) #15
Aaron Boodman
http://codereview.chromium.org/9316102/diff/24001/chrome/browser/extensions/extension_event_router.h File chrome/browser/extensions/extension_event_router.h (right): http://codereview.chromium.org/9316102/diff/24001/chrome/browser/extensions/extension_event_router.h#newcode33 chrome/browser/extensions/extension_event_router.h:33: enum UserGesture { Naming suggestion: UserGestureState? http://codereview.chromium.org/9316102/diff/24001/chrome/browser/extensions/extension_event_router.h#newcode34 chrome/browser/extensions/extension_event_router.h:34: kUnknownUserGesture ...
8 years, 9 months ago (2012-02-29 01:20:37 UTC) #16
Greg Billock
http://codereview.chromium.org/9316102/diff/24001/chrome/browser/extensions/extension_event_router.h File chrome/browser/extensions/extension_event_router.h (right): http://codereview.chromium.org/9316102/diff/24001/chrome/browser/extensions/extension_event_router.h#newcode33 chrome/browser/extensions/extension_event_router.h:33: enum UserGesture { On 2012/02/29 01:20:37, Aaron Boodman wrote: ...
8 years, 9 months ago (2012-02-29 17:58:08 UTC) #17
Aaron Boodman
On 2012/02/29 17:58:08, Greg Billock wrote: > http://codereview.chromium.org/9316102/diff/24001/chrome/browser/extensions/extension_event_router.h > File chrome/browser/extensions/extension_event_router.h (right): > > http://codereview.chromium.org/9316102/diff/24001/chrome/browser/extensions/extension_event_router.h#newcode33 ...
8 years, 9 months ago (2012-02-29 20:32:36 UTC) #18
Greg Billock
On 2012/02/29 20:32:36, Aaron Boodman wrote: > On 2012/02/29 17:58:08, Greg Billock wrote: > > ...
8 years, 9 months ago (2012-03-01 00:50:07 UTC) #19
Aaron Boodman
lgtm
8 years, 9 months ago (2012-03-01 07:55:29 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gbillock@chromium.org/9316102/39001
8 years, 9 months ago (2012-03-01 21:31:42 UTC) #21
commit-bot: I haz the power
Presubmit check for 9316102-39001 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 9 months ago (2012-03-01 21:31:48 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gbillock@chromium.org/9316102/41003
8 years, 9 months ago (2012-03-01 23:05:58 UTC) #23
commit-bot: I haz the power
8 years, 9 months ago (2012-03-02 04:37:28 UTC) #24
Change committed as 124596

Powered by Google App Engine
This is Rietveld 408576698