| Auto-Submit | +1 |
| Commit-Queue | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
for (web::WebStateID webStateID : _preselection.tabIDs) {
if (!webStateID.valid()) {
continue;
}
WebStateSearchCriteria searchCriteria{
.identifier = webStateID,
.pinned_state = WebStateSearchCriteria::PinnedState::kAny,
};
if (GetWebStateIndex(_webStateList, searchCriteria) !=
WebStateList::kInvalidIndex) {
webStateIDs.insert(webStateID);
}
}Can't this filtering happen at the preselection level? Like having the `tabIDs` already return the curated webState ids?
- (std::set<web::WebStateID>)allAttachedWebStateIDsForPresenter:
(ComposeboxPickerPresenter*)presenter;
// Returns the associated IDs for currently attached tabs from the current web
// state context.
- (std::set<web::WebStateID>)attachedWebStateIDsInCurrentContextForPresenter:
(ComposeboxPickerPresenter*)presenter;
// Returns the max number of tab attachments.
- (NSUInteger)maxTabAttachmentCountForPresenter:
(ComposeboxPickerPresenter*)presenter;
The delegate should inform of various events, not be used as a pulling mechanism.
This should be split in a new protocol.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Auto-Submit | +1 |
| Commit-Queue | +1 |
for (web::WebStateID webStateID : _preselection.tabIDs) {
if (!webStateID.valid()) {
continue;
}
WebStateSearchCriteria searchCriteria{
.identifier = webStateID,
.pinned_state = WebStateSearchCriteria::PinnedState::kAny,
};
if (GetWebStateIndex(_webStateList, searchCriteria) !=
WebStateList::kInvalidIndex) {
webStateIDs.insert(webStateID);
}
}Can't this filtering happen at the preselection level? Like having the `tabIDs` already return the curated webState ids?
I think the filtering should stay here (live). The webstateList could be updated while the menu is presented, filtering this in the preselection wouldn't capture this.
- (std::set<web::WebStateID>)allAttachedWebStateIDsForPresenter:
(ComposeboxPickerPresenter*)presenter;
// Returns the associated IDs for currently attached tabs from the current web
// state context.
- (std::set<web::WebStateID>)attachedWebStateIDsInCurrentContextForPresenter:
(ComposeboxPickerPresenter*)presenter;
// Returns the max number of tab attachments.
- (NSUInteger)maxTabAttachmentCountForPresenter:
(ComposeboxPickerPresenter*)presenter;
The delegate should inform of various events, not be used as a pulling mechanism.
This should be split in a new protocol.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
_mediator = [[ComposeboxMenuMediator alloc]
initWithEntrypoint:_entrypoint
inputState:_inputState
webStateList:self.browser->GetWebStateList()
preselectedAttachments:_preselection];
} else {
CHECK(_inputState);
_mediator = [[ComposeboxMenuMediator alloc]
initWithEntrypoint:_entrypoint
inputState:_inputState
webStateList:self.browser->GetWebStateList()
preselectedAttachments:_preselection];
}```suggestion
}
CHECK(_inputState);
_mediator = [[ComposeboxMenuMediator alloc]
initWithEntrypoint:_entrypoint
inputState:_inputState
webStateList:self.browser->GetWebStateList()
preselectedAttachments:_preselection];
```
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Auto-Submit | +1 |
| Commit-Queue | +2 |
_mediator = [[ComposeboxMenuMediator alloc]
initWithEntrypoint:_entrypoint
inputState:_inputState
webStateList:self.browser->GetWebStateList()
preselectedAttachments:_preselection];
} else {
CHECK(_inputState);
_mediator = [[ComposeboxMenuMediator alloc]
initWithEntrypoint:_entrypoint
inputState:_inputState
webStateList:self.browser->GetWebStateList()
preselectedAttachments:_preselection];
}```suggestion
}
CHECK(_inputState);
_mediator = [[ComposeboxMenuMediator alloc]
initWithEntrypoint:_entrypoint
inputState:_inputState
webStateList:self.browser->GetWebStateList()
preselectedAttachments:_preselection];
```
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
5 is the latest approved patch-set.
The change was submitted with unreviewed changes in the following files:
```
The name of the file: ios/chrome/browser/composebox/menu/coordinator/composebox_menu_coordinator.mm
Insertions: 7, Deletions: 13.
@@ -134,20 +134,14 @@
std::set<web::WebStateID> emptySet;
_inputState = [_stateManager computeUIInputStateWithFavicon:nil
attachedWebStateIDs:emptySet];
-
- _mediator = [[ComposeboxMenuMediator alloc]
- initWithEntrypoint:_entrypoint
- inputState:_inputState
- webStateList:self.browser->GetWebStateList()
- preselectedAttachments:_preselection];
- } else {
- CHECK(_inputState);
- _mediator = [[ComposeboxMenuMediator alloc]
- initWithEntrypoint:_entrypoint
- inputState:_inputState
- webStateList:self.browser->GetWebStateList()
- preselectedAttachments:_preselection];
}
+
+ CHECK(_inputState);
+ _mediator = [[ComposeboxMenuMediator alloc]
+ initWithEntrypoint:_entrypoint
+ inputState:_inputState
+ webStateList:self.browser->GetWebStateList()
+ preselectedAttachments:_preselection];
_mediator.delegate = self;
_viewController.sheetPresentationController.prefersGrabberVisible = YES;
```
[IOS][AIM] Handle and maintain attached tabs in embedded state
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |