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

Issue 1099553002: extensions: windows: list all windows from the current profile (Closed)

Created:
5 years, 8 months ago by llandwerlin-old
Modified:
5 years, 4 months ago
CC:
dcheng, asvitkine+watch_chromium.org, chromium-apps-reviews_chromium.org, chromium-reviews, Dmitry Titov, extensions-reviews_chromium.org, jennb, jianli, dmazzoni
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

extensions: windows: list all windows from the current profile This change allows extensions to get access to a broader set of chromium windows (namely windows created by other applications/extensions) as long as they belong to the same profile. BUG=394341 TEST=browser_tests --gtest_filter=ExtensionTabsTest.* Committed: https://crrev.com/56b2a727992f8caf2141f89bf0073793f5cbe3d8 Cr-Commit-Position: refs/heads/master@{#342016}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Limit application resizing to window's constraints #

Patch Set 3 : Add application windows resize constraint test #

Total comments: 8

Patch Set 4 : Update after dcheng's review #

Patch Set 5 : Improve DevTools resizing test #

Patch Set 6 : split out AppBaseWindow from app_window_controller.cc/h #

Patch Set 7 : Fix tests running on X11 #

Patch Set 8 : Use windowTypes as filter instead of allWindowTypes #

Patch Set 9 : Workaround older stl on MacOSX #

Patch Set 10 : Fix static variable usage on MacOSX #

Patch Set 11 : More details in ExtensionTabsTest.FilteredEvents for MacOSX #

Patch Set 12 : AppWindowController extracted #

Total comments: 13

Patch Set 13 : Update after stevenjb's review #

Patch Set 14 : Disable focus event tests on MacOSX #

Total comments: 24

Patch Set 15 : Update after kalman's review #

Patch Set 16 : Fix bitmask issue #

Total comments: 8

Patch Set 17 : Move filters into window_controller.cc/h #

Total comments: 9

Patch Set 18 : More filters completely into WindowController #

Total comments: 2

Patch Set 19 : nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+911 lines, -101 lines) Patch
M chrome/browser/extensions/api/DEPS View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/api/sessions/sessions_api.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/tabs/tabs_api.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 7 chunks +58 lines, -39 lines 0 comments Download
M chrome/browser/extensions/api/tabs/tabs_constants.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/api/tabs/tabs_constants.cc View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/api/tabs/tabs_test.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 17 13 chunks +520 lines, -27 lines 0 comments Download
M chrome/browser/extensions/api/tabs/windows_event_router.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +13 lines, -5 lines 0 comments Download
M chrome/browser/extensions/api/tabs/windows_util.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +14 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/tabs/windows_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 4 chunks +12 lines, -6 lines 0 comments Download
M chrome/browser/extensions/extension_tab_util.cc View 1 2 3 4 5 6 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/extensions/window_controller.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +19 lines, -0 lines 0 comments Download
M chrome/browser/extensions/window_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 3 chunks +34 lines, -0 lines 0 comments Download
M chrome/browser/extensions/window_controller_list.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +18 lines, -0 lines 0 comments Download
M chrome/browser/extensions/window_controller_list.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +31 lines, -7 lines 0 comments Download
M chrome/browser/ui/panels/panel.cc View 1 2 3 4 5 6 2 chunks +0 lines, -2 lines 0 comments Download
M chrome/common/extensions/api/windows.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 7 chunks +32 lines, -4 lines 0 comments Download
A + chrome/test/data/extensions/api_test/windows/events/background.html View 1 2 3 4 5 6 0 chunks +-1 lines, --1 lines 0 comments Download
A + chrome/test/data/extensions/api_test/windows/events/manifest.json View 1 2 3 4 5 6 1 chunk +2 lines, -3 lines 0 comments Download
A chrome/test/data/extensions/api_test/windows/events/test.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +82 lines, -0 lines 0 comments Download
M extensions/common/event_filtering_info.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +11 lines, -0 lines 0 comments Download
M extensions/common/event_filtering_info.cc View 1 2 3 4 5 6 7 2 chunks +12 lines, -3 lines 0 comments Download
M extensions/common/event_matcher.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M extensions/common/event_matcher.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +36 lines, -2 lines 0 comments Download
M extensions/renderer/event_bindings.cc View 1 2 3 4 5 6 7 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 84 (35 generated)
llandwerlin-old
pkasting@, kalman@: This is one of the prerequisite change to enable extensions, through a this ...
5 years, 8 months ago (2015-04-20 10:29:08 UTC) #2
not at google - send to devlin
The unit tests don't make me believe that this works for anything other than parsing ...
5 years, 8 months ago (2015-04-20 16:47:43 UTC) #3
Peter Kasting
If you list multiple reviewers, always say what you want each to review. I'm assuming ...
5 years, 8 months ago (2015-04-20 20:55:35 UTC) #4
llandwerlin-old
PTAL. Sorry for the long delay on updating this. I've added the code allowing extensions ...
5 years, 6 months ago (2015-06-26 11:26:15 UTC) #5
dcheng
Some drive-by thoughts. https://codereview.chromium.org/1099553002/diff/160001/chrome/browser/extensions/api/tabs/app_window_controller.cc File chrome/browser/extensions/api/tabs/app_window_controller.cc (right): https://codereview.chromium.org/1099553002/diff/160001/chrome/browser/extensions/api/tabs/app_window_controller.cc#newcode167 chrome/browser/extensions/api/tabs/app_window_controller.cc:167: base::DictionaryValue* AppWindowController::CreateTabValue( Please use scoped_ptr here ...
5 years, 5 months ago (2015-06-29 18:15:49 UTC) #6
llandwerlin-old
Thanks for the comments. https://codereview.chromium.org/1099553002/diff/160001/chrome/browser/extensions/api/tabs/app_window_controller.cc File chrome/browser/extensions/api/tabs/app_window_controller.cc (right): https://codereview.chromium.org/1099553002/diff/160001/chrome/browser/extensions/api/tabs/app_window_controller.cc#newcode167 chrome/browser/extensions/api/tabs/app_window_controller.cc:167: base::DictionaryValue* AppWindowController::CreateTabValue( On 2015/06/29 18:15:49, ...
5 years, 5 months ago (2015-06-30 10:20:47 UTC) #7
not at google - send to devlin
https://codereview.chromium.org/1099553002/diff/1/chrome/common/extensions/permissions/chrome_api_permissions.cc File chrome/common/extensions/permissions/chrome_api_permissions.cc (right): https://codereview.chromium.org/1099553002/diff/1/chrome/common/extensions/permissions/chrome_api_permissions.cc#newcode196 chrome/common/extensions/permissions/chrome_api_permissions.cc:196: IDS_EXTENSION_PROMPT_WARNING_HISTORY_READ, On 2015/06/26 11:26:14, llandwerlin wrote: > On 2015/04/20 ...
5 years, 5 months ago (2015-06-30 17:33:53 UTC) #8
llandwerlin-old
https://codereview.chromium.org/1099553002/diff/200001/chrome/browser/extensions/api/tabs/tabs_api.cc File chrome/browser/extensions/api/tabs/tabs_api.cc (right): https://codereview.chromium.org/1099553002/diff/200001/chrome/browser/extensions/api/tabs/tabs_api.cc#newcode353 chrome/browser/extensions/api/tabs/tabs_api.cc:353: On 2015/06/30 17:33:53, kalman wrote: > If the only ...
5 years, 5 months ago (2015-07-01 15:52:06 UTC) #9
not at google - send to devlin
Ok, I thought about it. I don't think we need any sort of permission, just ...
5 years, 5 months ago (2015-07-01 20:00:11 UTC) #10
llandwerlin-old
On 2015/07/01 20:00:11, kalman wrote: > Ok, I thought about it. I don't think we ...
5 years, 5 months ago (2015-07-07 10:38:39 UTC) #11
not at google - send to devlin
https://codereview.chromium.org/1099553002/diff/370001/chrome/browser/devtools/devtools_window.h File chrome/browser/devtools/devtools_window.h (right): https://codereview.chromium.org/1099553002/diff/370001/chrome/browser/devtools/devtools_window.h#newcode127 chrome/browser/devtools/devtools_window.h:127: Browser* browser() { return browser_; } It would be ...
5 years, 5 months ago (2015-07-07 21:42:23 UTC) #12
llandwerlin-old
Thanks for your time on reviewing this. Before I upload a new iteration with IsVisibleToExtension/IsHiddenFromExtensions, ...
5 years, 5 months ago (2015-07-08 13:07:59 UTC) #13
not at google - send to devlin
https://codereview.chromium.org/1099553002/diff/370001/chrome/browser/extensions/api/tabs/app_window_controller.h File chrome/browser/extensions/api/tabs/app_window_controller.h (right): https://codereview.chromium.org/1099553002/diff/370001/chrome/browser/extensions/api/tabs/app_window_controller.h#newcode29 chrome/browser/extensions/api/tabs/app_window_controller.h:29: virtual ~AppBaseWindow(); On 2015/07/08 13:07:58, llandwerlin wrote: > On ...
5 years, 5 months ago (2015-07-08 20:32:08 UTC) #14
llandwerlin-old
PTAL. I've left the access to devtools windows, it would be nice to have the ...
5 years, 5 months ago (2015-07-10 10:12:10 UTC) #15
not at google - send to devlin
On 2015/07/10 10:12:10, llandwerlin wrote: > PTAL. > I've left the access to devtools windows, ...
5 years, 5 months ago (2015-07-10 17:34:59 UTC) #16
not at google - send to devlin
lgtm but come to think of it I would feel a lot more comfortable if ...
5 years, 5 months ago (2015-07-10 18:10:07 UTC) #18
benwells
+stevenjb who is probably the best reviewer for this.
5 years, 5 months ago (2015-07-13 05:56:28 UTC) #20
llandwerlin-old
On 2015/07/10 17:34:59, kalman wrote: > On 2015/07/10 10:12:10, llandwerlin wrote: > > PTAL. > ...
5 years, 5 months ago (2015-07-13 10:17:58 UTC) #21
llandwerlin-old
On 2015/07/13 10:17:58, llandwerlin wrote: > On 2015/07/10 17:34:59, kalman wrote: > > On 2015/07/10 ...
5 years, 5 months ago (2015-07-13 10:44:37 UTC) #22
llandwerlin-old
On 2015/07/13 10:44:37, llandwerlin wrote: > On 2015/07/13 10:17:58, llandwerlin wrote: > > On 2015/07/10 ...
5 years, 5 months ago (2015-07-14 10:49:20 UTC) #23
stevenjb
I haven't been in this code in a very long time, but I also realize ...
5 years, 5 months ago (2015-07-20 18:21:09 UTC) #24
not at google - send to devlin
It would be nice to be able to control this with an argument to getAll. ...
5 years, 5 months ago (2015-07-20 21:56:58 UTC) #25
llandwerlin-old
On 2015/07/20 21:56:58, kalman wrote: > It would be nice to be able to control ...
5 years, 5 months ago (2015-07-23 12:54:08 UTC) #26
stevenjb
On 2015/07/23 12:54:08, llandwerlin wrote: > On 2015/07/20 21:56:58, kalman wrote: > > It would ...
5 years, 5 months ago (2015-07-23 17:20:29 UTC) #27
llandwerlin-old
On 2015/07/23 17:20:29, stevenjb wrote: > > The filters sound good to me. If there ...
5 years, 4 months ago (2015-07-29 15:38:31 UTC) #49
not at google - send to devlin
On 2015/07/29 15:38:31, llandwerlin wrote: > On 2015/07/23 17:20:29, stevenjb wrote: > > > > ...
5 years, 4 months ago (2015-07-29 18:33:38 UTC) #50
llandwerlin-old
On 2015/07/29 18:33:38, kalman wrote: > On 2015/07/29 15:38:31, llandwerlin wrote: > > On 2015/07/23 ...
5 years, 4 months ago (2015-07-29 18:43:23 UTC) #51
not at google - send to devlin
> > Whoa what is going on here. This all seems unintended. Do get() and ...
5 years, 4 months ago (2015-07-29 19:47:05 UTC) #52
llandwerlin-old
On 2015/07/29 19:47:05, kalman wrote: > > > Whoa what is going on here. This ...
5 years, 4 months ago (2015-07-29 20:56:36 UTC) #53
not at google - send to devlin
On 2015/07/29 20:56:36, llandwerlin wrote: > On 2015/07/29 19:47:05, kalman wrote: > > > > ...
5 years, 4 months ago (2015-07-29 20:58:15 UTC) #54
llandwerlin-old
On 2015/07/29 20:58:15, kalman wrote: > On 2015/07/29 20:56:36, llandwerlin wrote: > > On 2015/07/29 ...
5 years, 4 months ago (2015-07-29 21:22:35 UTC) #55
llandwerlin-old
PTAL, thanks.
5 years, 4 months ago (2015-07-30 16:58:26 UTC) #64
stevenjb
This is a pretty large CL; would it be reasonable to separate out the AppWindowController ...
5 years, 4 months ago (2015-07-30 17:06:48 UTC) #65
not at google - send to devlin
What diff are we up to now?
5 years, 4 months ago (2015-07-30 18:22:02 UTC) #66
llandwerlin-old
Here is a version without the AppWindowController change. Sorry it took so long. At this ...
5 years, 4 months ago (2015-07-30 18:36:22 UTC) #68
stevenjb
Thanks for separating the CLs, much easier to review now. https://codereview.chromium.org/1099553002/diff/770001/chrome/browser/extensions/api/tabs/tabs_api.cc File chrome/browser/extensions/api/tabs/tabs_api.cc (right): https://codereview.chromium.org/1099553002/diff/770001/chrome/browser/extensions/api/tabs/tabs_api.cc#newcode331 ...
5 years, 4 months ago (2015-07-30 19:00:37 UTC) #69
llandwerlin-old
https://codereview.chromium.org/1099553002/diff/770001/chrome/browser/extensions/api/tabs/tabs_api.cc File chrome/browser/extensions/api/tabs/tabs_api.cc (right): https://codereview.chromium.org/1099553002/diff/770001/chrome/browser/extensions/api/tabs/tabs_api.cc#newcode331 chrome/browser/extensions/api/tabs/tabs_api.cc:331: } On 2015/07/30 19:00:37, stevenjb wrote: > Given that ...
5 years, 4 months ago (2015-07-31 13:58:33 UTC) #70
stevenjb
lgtm! Ideally someone more familiar with the event filtering should take a closer look at ...
5 years, 4 months ago (2015-07-31 17:27:16 UTC) #71
not at google - send to devlin
https://codereview.chromium.org/1099553002/diff/810001/chrome/browser/extensions/api/tabs/windows_util.cc File chrome/browser/extensions/api/tabs/windows_util.cc (right): https://codereview.chromium.org/1099553002/diff/810001/chrome/browser/extensions/api/tabs/windows_util.cc#newcode46 chrome/browser/extensions/api/tabs/windows_util.cc:46: windows::WINDOW_TYPE_POPUP}; There are so few of these, you could ...
5 years, 4 months ago (2015-07-31 21:48:03 UTC) #72
llandwerlin-old
https://codereview.chromium.org/1099553002/diff/770001/chrome/browser/extensions/api/tabs/windows_util.h File chrome/browser/extensions/api/tabs/windows_util.h (right): https://codereview.chromium.org/1099553002/diff/770001/chrome/browser/extensions/api/tabs/windows_util.h#newcode27 chrome/browser/extensions/api/tabs/windows_util.h:27: const std::vector<windows::WindowType>& GetNoWindowTypeFilters(); On 2015/07/31 17:27:16, stevenjb wrote: > ...
5 years, 4 months ago (2015-08-03 10:11:55 UTC) #73
not at google - send to devlin
https://codereview.chromium.org/1099553002/diff/850001/chrome/browser/extensions/api/tabs/windows_util.h File chrome/browser/extensions/api/tabs/windows_util.h (right): https://codereview.chromium.org/1099553002/diff/850001/chrome/browser/extensions/api/tabs/windows_util.h#newcode26 chrome/browser/extensions/api/tabs/windows_util.h:26: extensions::WindowTypeFilter GetDefaultWindowTypeFilter(); It would be better for the enum ...
5 years, 4 months ago (2015-08-04 18:05:03 UTC) #74
llandwerlin-old
https://codereview.chromium.org/1099553002/diff/850001/chrome/browser/extensions/api/tabs/windows_util.h File chrome/browser/extensions/api/tabs/windows_util.h (right): https://codereview.chromium.org/1099553002/diff/850001/chrome/browser/extensions/api/tabs/windows_util.h#newcode26 chrome/browser/extensions/api/tabs/windows_util.h:26: extensions::WindowTypeFilter GetDefaultWindowTypeFilter(); On 2015/08/04 18:05:03, kalman wrote: > It ...
5 years, 4 months ago (2015-08-05 11:01:22 UTC) #75
not at google - send to devlin
https://codereview.chromium.org/1099553002/diff/870001/chrome/browser/extensions/api/tabs/tabs_test.cc File chrome/browser/extensions/api/tabs/tabs_test.cc (right): https://codereview.chromium.org/1099553002/diff/870001/chrome/browser/extensions/api/tabs/tabs_test.cc#newcode1272 chrome/browser/extensions/api/tabs/tabs_test.cc:1272: // platform. Disable focus event tests for now. Old ...
5 years, 4 months ago (2015-08-05 17:33:25 UTC) #76
llandwerlin-old
https://codereview.chromium.org/1099553002/diff/870001/chrome/browser/extensions/api/tabs/tabs_test.cc File chrome/browser/extensions/api/tabs/tabs_test.cc (right): https://codereview.chromium.org/1099553002/diff/870001/chrome/browser/extensions/api/tabs/tabs_test.cc#newcode1272 chrome/browser/extensions/api/tabs/tabs_test.cc:1272: // platform. Disable focus event tests for now. On ...
5 years, 4 months ago (2015-08-05 18:12:02 UTC) #77
not at google - send to devlin
lgtm https://codereview.chromium.org/1099553002/diff/870001/chrome/browser/extensions/window_controller.cc File chrome/browser/extensions/window_controller.cc (right): https://codereview.chromium.org/1099553002/diff/870001/chrome/browser/extensions/window_controller.cc#newcode37 chrome/browser/extensions/window_controller.cc:37: Update_WindowControllerList_to_match_WindowType); On 2015/08/05 18:12:02, llandwerlin wrote: > On ...
5 years, 4 months ago (2015-08-05 18:17:39 UTC) #78
llandwerlin-old
https://codereview.chromium.org/1099553002/diff/890001/chrome/browser/extensions/window_controller.cc File chrome/browser/extensions/window_controller.cc (right): https://codereview.chromium.org/1099553002/diff/890001/chrome/browser/extensions/window_controller.cc#newcode43 chrome/browser/extensions/window_controller.cc:43: for (unsigned int i = 0; i < types.size(); ...
5 years, 4 months ago (2015-08-05 18:27:18 UTC) #79
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1099553002/910001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1099553002/910001
5 years, 4 months ago (2015-08-05 20:42:18 UTC) #82
commit-bot: I haz the power
Committed patchset #19 (id:910001)
5 years, 4 months ago (2015-08-06 00:04:18 UTC) #83
commit-bot: I haz the power
5 years, 4 months ago (2015-08-06 00:04:47 UTC) #84
Message was sent while issue was closed.
Patchset 19 (id:??) landed as
https://crrev.com/56b2a727992f8caf2141f89bf0073793f5cbe3d8
Cr-Commit-Position: refs/heads/master@{#342016}

Powered by Google App Engine
This is Rietveld 408576698