Zoraiz, please take a look at //chrome/browser/extensions
Mike, please take a look at //chrome/browser/ui. There are a few Android C++ files in there, but they are all just stub methods. Hope that's OK.
Thanks!
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
lgtm with an edge case question
return tab_group->ListTabs();Should the non-contiguous intermediate state concerns from this function's comment be expressed in a GetTabGroupTabIndices function comment? Or is there some better behavior we could consider?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Auto-Submit | +1 |
| Commit-Queue | +1 |
Zoraiz, over to you.
Mike, thanks for the review!
Should the non-contiguous intermediate state concerns from this function's comment be expressed in a GetTabGroupTabIndices function comment? Or is there some better behavior we could consider?
I updated the comment. I think changing the behavior would be difficult, as observers could fire pretty much any time and I suspect it would be hard to enforce that the return value is always contiguous.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
lgtm & nit
std::optional<tab_groups::TabGroupId> target_group = target_tab->GetGroup();optional nit: move after line 87?
gfx::Range GetTabGroupTabIndices(tab_groups::TabGroupId group_id) override;Wasn't aware of `gfx::Range`. Good to know data structure!
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Auto-Submit | +0 |
| Commit-Queue | +2 |
Thanks for the reviews!
std::optional<tab_groups::TabGroupId> target_group = target_tab->GetGroup();optional nit: move after line 87?
I think it makes more sense to compute the target_group before the adjacent_group. Since you said optional, I'm going to leave as-is.
gfx::Range GetTabGroupTabIndices(tab_groups::TabGroupId group_id) override;Wasn't aware of `gfx::Range`. Good to know data structure!
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
extensions: Port chrome.tabGroups.move() to desktop Android, part 1
This converts most of the tab groups API implementation to use cross
platform BrowserWindowInterface/TabListInterface concepts.
It adds a method to TabListInterface to get a list of the tabs in a
group, which is needed for this API. It's left not-implemented on
Android. I'll do the JNI/Java in a followup CL.
This CL only affects Win/Mac/Linux/ChromeOS and is well covered by
existing browser tests. I started porting one test to Android, but it
depends on the JNI I haven't added yet, so I'll add it when I add
the JNI.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |