Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(104)

Issue 73065: Initial plumbing for sending events from the browser to extension renderers. ... (Closed)

Created:
11 years, 8 months ago by rafaelw
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Initial plumbing for sending events from the browser to extension renderers. Implement onTabMoved. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=13824

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 62

Patch Set 5 : '' #

Patch Set 6 : '' #

Total comments: 2

Patch Set 7 : '' #

Patch Set 8 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+283 lines, -20 lines) Patch
M chrome/browser/browser.vcproj View 1 2 3 4 5 6 1 chunk +8 lines, -0 lines 0 comments Download
A chrome/browser/extensions/extension_browser_event_router.h View 1 2 3 4 1 chunk +55 lines, -0 lines 0 comments Download
A chrome/browser/extensions/extension_browser_event_router.cc View 1 2 3 4 1 chunk +93 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_message_service.h View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_message_service.cc View 1 2 3 4 5 6 2 chunks +11 lines, -4 lines 0 comments Download
M chrome/browser/extensions/extension_process_manager.h View 1 2 3 4 5 6 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_process_manager.cc View 1 2 3 4 5 6 3 chunks +20 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_tabs_module.h View 1 2 3 4 5 6 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_tabs_module.cc View 1 2 3 4 5 6 2 chunks +10 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extensions_service.cc View 5 6 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/chrome.gyp View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/render_messages_internal.h View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/renderer/extensions/extension_process_bindings.cc View 5 6 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/renderer/extensions/renderer_extension_bindings.h View 1 2 3 4 5 6 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/renderer/extensions/renderer_extension_bindings.cc View 1 2 3 4 5 6 1 chunk +11 lines, -0 lines 0 comments Download
M chrome/renderer/render_thread.h View 1 2 3 4 5 6 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/renderer/render_thread.cc View 1 2 3 4 5 6 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/renderer/resources/event_bindings.js View 1 2 3 4 5 6 2 chunks +15 lines, -12 lines 0 comments Download
M chrome/renderer/resources/extension_process_bindings.js View 5 6 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/renderer/resources/renderer_extension_bindings.js View 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/data/extensions/test/TabsAPI/1/tabs_api.html View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
rafaelw
First cut at extension events. Please review.
11 years, 8 months ago (2009-04-15 02:07:05 UTC) #1
Aaron Boodman
Nice. http://codereview.chromium.org/73065/diff/21/31 File chrome/browser/browser_main.cc (right): http://codereview.chromium.org/73065/diff/21/31#newcode589 Line 589: ExtensionBrowserEventRouter::GetInstance()->Init(); You should move this into ExtensionsService's ...
11 years, 8 months ago (2009-04-15 05:02:12 UTC) #2
jam
http://codereview.chromium.org/73065/diff/21/34 File chrome/renderer/render_thread.cc (right): http://codereview.chromium.org/73065/diff/21/34#newcode199 Line 199: OnDispatchExtensionEvent) seeing as there are now a number ...
11 years, 8 months ago (2009-04-15 07:06:24 UTC) #3
Aaron Boodman
A few more. http://codereview.chromium.org/73065/diff/21/38 File chrome/renderer/resources/event_bindings.js (right): http://codereview.chromium.org/73065/diff/21/38#newcode124 Line 124: chromium.onTabMoved = new chromium.Event('tabMoved'); Also, ...
11 years, 8 months ago (2009-04-15 07:13:40 UTC) #4
brettw
Drive by http://codereview.chromium.org/73065/diff/21/26 File chrome/browser/extensions/extension_browser_event_router.h (right): http://codereview.chromium.org/73065/diff/21/26#newcode20 Line 20: ExtensionBrowserEventRouter(); This should be first. Why ...
11 years, 8 months ago (2009-04-15 15:08:38 UTC) #5
Matt Perry
http://codereview.chromium.org/73065/diff/21/30 File chrome/browser/extensions/extension_browser_event_router.cc (right): http://codereview.chromium.org/73065/diff/21/30#newcode33 Line 33: if (type == NotificationType::BROWSER_OPENED) { this might be ...
11 years, 8 months ago (2009-04-15 18:45:25 UTC) #6
rafaelw
http://codereview.chromium.org/73065/diff/21/31 File chrome/browser/browser_main.cc (right): http://codereview.chromium.org/73065/diff/21/31#newcode589 Line 589: ExtensionBrowserEventRouter::GetInstance()->Init(); On 2009/04/15 05:02:13, Aaron Boodman wrote: > ...
11 years, 8 months ago (2009-04-15 23:23:42 UTC) #7
Matt Perry
Beautiful http://codereview.chromium.org/73065/diff/4010/3038 File chrome/browser/extensions/extension_message_service.h (right): http://codereview.chromium.org/73065/diff/4010/3038#newcode64 Line 64: std::set<int> GetUniqueProcessIds(); Actually now that I think ...
11 years, 8 months ago (2009-04-15 23:35:17 UTC) #8
Aaron Boodman
http://codereview.chromium.org/73065/diff/4010/3049 File chrome/renderer/extensions/renderer_extension_bindings.h (right): http://codereview.chromium.org/73065/diff/4010/3049#newcode29 Line 29: const std::string& event_data); Little nit: call the second ...
11 years, 8 months ago (2009-04-15 23:51:47 UTC) #9
Aaron Boodman
11 years, 8 months ago (2009-04-15 23:52:07 UTC) #10
lgtm

sweet :)

Powered by Google App Engine
This is Rietveld 408576698