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

Issue 10777004: Support chrome.windows extension API events for browserless Panels. (Closed)

Created:
8 years, 5 months ago by jennb
Modified:
8 years, 5 months ago
CC:
chromium-reviews, mihaip-chromium-reviews_chromium.org, dcheng, Aaron Boodman, jianli, jam
Visibility:
Public.

Description

Support chrome.windows extension API events for browserless Panels. Modified window_open/panel test to check for chrome.windows.onCreated event. BUG=127323 TEST=Verified against WindowOpenApiTest.WindowOpen* using --browserless-panels flag Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=148167

Patch Set 1 : #

Total comments: 6

Patch Set 2 : Synced and feedback changes #

Patch Set 3 : fix mac unit_test failure #

Total comments: 12

Patch Set 4 : Synced #

Patch Set 5 : use new WindowEventRouter and WindowControllerListObserver instead #

Patch Set 6 : fix non-mac compiles #

Total comments: 1

Patch Set 7 : add linux include #

Patch Set 8 : Synced #

Unified diffs Side-by-side diffs Delta from patch set Stats (+395 lines, -153 lines) Patch
M chrome/browser/extensions/browser_event_router.h View 1 2 3 4 5 6 7 4 chunks +2 lines, -32 lines 0 comments Download
M chrome/browser/extensions/browser_event_router.cc View 1 2 3 4 5 6 7 6 chunks +9 lines, -108 lines 0 comments Download
M chrome/browser/extensions/browser_extension_window_controller.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/browser_extension_window_controller.cc View 1 2 3 4 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_service.h View 1 2 3 4 5 6 7 3 chunks +13 lines, -10 lines 0 comments Download
M chrome/browser/extensions/extension_service.cc View 1 2 3 4 5 6 7 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/extensions/window_controller.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/extensions/window_controller.cc View 1 2 3 4 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/extensions/window_controller_list.h View 1 2 3 4 4 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/extensions/window_controller_list.cc View 1 2 3 4 2 chunks +16 lines, -1 line 0 comments Download
A chrome/browser/extensions/window_controller_list_observer.h View 1 2 3 4 1 chunk +28 lines, -0 lines 0 comments Download
A chrome/browser/extensions/window_event_router.h View 1 2 3 4 1 chunk +90 lines, -0 lines 0 comments Download
A chrome/browser/extensions/window_event_router.cc View 1 2 3 4 5 6 7 1 chunk +174 lines, -0 lines 0 comments Download
M chrome/browser/ui/panels/panel.cc View 1 2 3 4 4 chunks +21 lines, -0 lines 0 comments Download
M chrome/browser/ui/panels/panel_cocoa.mm View 1 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/ash/panel_view_aura.cc View 1 2 3 4 3 chunks +7 lines, -0 lines 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/test/data/extensions/api_test/window_open/panel/test.js View 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
jennb
jam - could you do an OWNERS review for chrome_notification_types.h ? mihai - could you ...
8 years, 5 months ago (2012-07-13 00:56:57 UTC) #1
jam
On 2012/07/13 00:56:57, jennb wrote: > jam - could you do an OWNERS review for ...
8 years, 5 months ago (2012-07-13 15:36:10 UTC) #2
jianli
http://codereview.chromium.org/10777004/diff/4002/chrome/browser/extensions/extension_panel_event_router.cc File chrome/browser/extensions/extension_panel_event_router.cc (right): http://codereview.chromium.org/10777004/diff/4002/chrome/browser/extensions/extension_panel_event_router.cc#newcode81 chrome/browser/extensions/extension_panel_event_router.cc:81: extension_event_names::kOnWindowCreated, json_args, profile_, GURL()); Can you share the above ...
8 years, 5 months ago (2012-07-13 17:46:40 UTC) #3
Dmitry Titov
http://codereview.chromium.org/10777004/diff/4002/chrome/browser/ui/panels/panel_cocoa.mm File chrome/browser/ui/panels/panel_cocoa.mm (right): http://codereview.chromium.org/10777004/diff/4002/chrome/browser/ui/panels/panel_cocoa.mm#newcode59 chrome/browser/ui/panels/panel_cocoa.mm:59: panel_->OnActiveStateChanged(true); oy. Can it be that the consumers of ...
8 years, 5 months ago (2012-07-13 18:24:17 UTC) #4
jennb
http://codereview.chromium.org/10777004/diff/4002/chrome/browser/ui/panels/panel_cocoa.mm File chrome/browser/ui/panels/panel_cocoa.mm (right): http://codereview.chromium.org/10777004/diff/4002/chrome/browser/ui/panels/panel_cocoa.mm#newcode59 chrome/browser/ui/panels/panel_cocoa.mm:59: panel_->OnActiveStateChanged(true); On 2012/07/13 18:24:17, Dmitry Titov wrote: > oy. ...
8 years, 5 months ago (2012-07-13 18:47:48 UTC) #5
jennb
Sorry, forgot to separate changes from syncing and my changes. Per dimich's suggestion, changed to ...
8 years, 5 months ago (2012-07-13 22:12:14 UTC) #6
Dmitry Titov
lgtm
8 years, 5 months ago (2012-07-14 03:33:48 UTC) #7
jennb
Mihai - ping? Could I get an OWNERS review for chrome/browser/extensions? (Or redirect me to ...
8 years, 5 months ago (2012-07-17 16:55:45 UTC) #8
jianli
lgtm http://codereview.chromium.org/10777004/diff/17011/chrome/browser/extensions/extension_service.cc File chrome/browser/extensions/extension_service.cc (right): http://codereview.chromium.org/10777004/diff/17011/chrome/browser/extensions/extension_service.cc#newcode1167 chrome/browser/extensions/extension_service.cc:1167: switches::kBrowserlessPanels) && !panel_event_router_.get()) { nit: It would be ...
8 years, 5 months ago (2012-07-17 18:44:15 UTC) #9
Mihai Parparita -not on Chrome
http://codereview.chromium.org/10777004/diff/17011/chrome/browser/extensions/extension_panel_event_router.h File chrome/browser/extensions/extension_panel_event_router.h (right): http://codereview.chromium.org/10777004/diff/17011/chrome/browser/extensions/extension_panel_event_router.h#newcode17 chrome/browser/extensions/extension_panel_event_router.h:17: // The ExtensinoPanelEventRouter sends Panel window events Typo ("Extensino") ...
8 years, 5 months ago (2012-07-19 20:14:57 UTC) #10
jennb
Thanks for the feedback. I'll move the new class into the extension namespace but leave ...
8 years, 5 months ago (2012-07-20 02:44:18 UTC) #11
stevenjb
http://codereview.chromium.org/10777004/diff/17011/chrome/browser/extensions/extension_panel_event_router.cc File chrome/browser/extensions/extension_panel_event_router.cc (right): http://codereview.chromium.org/10777004/diff/17011/chrome/browser/extensions/extension_panel_event_router.cc#newcode17 chrome/browser/extensions/extension_panel_event_router.cc:17: namespace events = extension_event_names; Ideally, extension_event_names should be extension::event_names, ...
8 years, 5 months ago (2012-07-20 16:54:33 UTC) #12
jennb
Thanks for the WindowControllerList observer suggestion, Steven. See design proposal using it below. http://codereview.chromium.org/10777004/diff/17011/chrome/browser/extensions/extension_panel_event_router.cc File ...
8 years, 5 months ago (2012-07-20 18:09:36 UTC) #13
stevenjb
http://codereview.chromium.org/10777004/diff/17011/chrome/browser/extensions/extension_panel_event_router.h File chrome/browser/extensions/extension_panel_event_router.h (right): http://codereview.chromium.org/10777004/diff/17011/chrome/browser/extensions/extension_panel_event_router.h#newcode19 chrome/browser/extensions/extension_panel_event_router.h:19: class ExtensionPanelEventRouter { On 2012/07/20 18:09:37, jennb wrote: > ...
8 years, 5 months ago (2012-07-20 18:26:14 UTC) #14
jennb
New revision ready. Window events are now all dispatched by WindowEventRouter regardless of Browser or ...
8 years, 5 months ago (2012-07-21 00:57:43 UTC) #15
stevenjb
lgtm http://codereview.chromium.org/10777004/diff/43001/chrome/browser/extensions/window_controller.h File chrome/browser/extensions/window_controller.h (right): http://codereview.chromium.org/10777004/diff/43001/chrome/browser/extensions/window_controller.h#newcode33 chrome/browser/extensions/window_controller.h:33: // upon construction/destruction. Hm, I'm going back and ...
8 years, 5 months ago (2012-07-23 18:02:41 UTC) #16
jennb
+sky for ash OWNERS review.
8 years, 5 months ago (2012-07-23 18:45:22 UTC) #17
sky
LGTM
8 years, 5 months ago (2012-07-23 22:02:39 UTC) #18
Mihai Parparita -not on Chrome
LGTM
8 years, 5 months ago (2012-07-23 23:12:15 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jennb@chromium.org/10777004/41003
8 years, 5 months ago (2012-07-23 23:14:11 UTC) #20
commit-bot: I haz the power
Failed to apply patch for chrome/browser/extensions/extension_browser_event_router.cc: While running patch -p1 --forward --force; patching file chrome/browser/extensions/extension_browser_event_router.cc ...
8 years, 5 months ago (2012-07-24 01:19:01 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jennb@chromium.org/10777004/38005
8 years, 5 months ago (2012-07-24 18:04:32 UTC) #22
commit-bot: I haz the power
8 years, 5 months ago (2012-07-24 19:31:13 UTC) #23
Change committed as 148167

Powered by Google App Engine
This is Rietveld 408576698