chore: bump chromium to 122.0.6236.2 (main) (#40871)
* chore: bump chromium in DEPS to 122.0.6223.0 * 5129828: Removes special cases for selenium-atoms dependencies.5129828
* chore: fixup patch indices * 5139789: Deduplicate BrowserContext's ResourceContext5139789
* 5148579: Simplify SelectFileDialog::Listener5148579
* 5134038: Code Health: Use string_view in base::i18n::BreakIterator::SetText5134038
* 5137427: Code Health: Use string_view in SpellCheck::SpellCheckWord5137427
* [libcxx] adds ranges::fold_left_with_iter and ranges::fold_left Notable things in this commit: * refactors `__indirect_binary_left_foldable`, making it slightly different (but equivalent) to _`indirect-binary-left-foldable`_, which improves readability (a [patch to the Working Paper][patch] was made) * omits `__cpo` namespace, since it is not required for implementing niebloids (a cleanup should happen in 2024) * puts tests ensuring invocable robustness and dangling correctness inside the correctness testing to ensure that the algorithms' results are still correct [patch]: https://github.com/cplusplus/draft/pull/6734 * chore: bump chromium in DEPS to 122.0.6224.0 * 5154766: [Refresh 2023] [GTK] Fix gap above toolbar with fractional scaling5154766
* chore: fixup patch indices * 5094458: Remove extra CGColorSpace parameters from skia and ui helpers5094458
* chore: bump chromium in DEPS to 122.0.6226.0 * chore: update patches * chore: bump chromium in DEPS to 122.0.6227.0 * chore: update patches * chore: bump chromium in DEPS to 122.0.6228.0 * chore: update patches * chore: bump chromium in DEPS to 122.0.6230.0 * chore: bump chromium in DEPS to 122.0.6232.0 * chore: bump chromium in DEPS to 122.0.6234.0 * chore: bump chromium in DEPS to 122.0.6236.2 * chore: update patches * fix: remove --disable-color-correct-renderering Per https://electronhq.slack.com/archives/CB6CG54DB/p1698444047862459 it is not used any more and was never documented. * chore: add WEB_PRINTING to content permission converter Unused in non-cros so no need to document Ref:5136178
* chore: Views is now vec<raw_ptr> instead of raw<T*> Ref:5140028
* spec: add Iterator to global intrinsics --------- Co-authored-by: electron-roller[bot] <84116207+electron-roller[bot]@users.noreply.github.com> Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com> Co-authored-by: PatchUp <73610968+patchup[bot]@users.noreply.github.com> Co-authored-by: Samuel Attard <marshallofsound@electronjs.org>
This commit is contained in:
parent
f36ceae024
commit
2e4e6f10de
75 changed files with 274 additions and 522 deletions
|
@ -54,14 +54,14 @@ void MenuBar::SetMenu(ElectronMenuModel* model) {
|
|||
}
|
||||
|
||||
void MenuBar::SetAcceleratorVisibility(bool visible) {
|
||||
for (auto* child : GetChildrenInZOrder())
|
||||
for (views::View* child : GetChildrenInZOrder())
|
||||
static_cast<SubmenuButton*>(child)->SetAcceleratorVisibility(visible);
|
||||
}
|
||||
|
||||
MenuBar::View* MenuBar::FindAccelChild(char16_t key) {
|
||||
if (key == 0)
|
||||
return nullptr;
|
||||
for (auto* child : GetChildrenInZOrder()) {
|
||||
for (views::View* child : GetChildrenInZOrder()) {
|
||||
if (static_cast<SubmenuButton*>(child)->accelerator() == key)
|
||||
return child;
|
||||
}
|
||||
|
@ -188,7 +188,7 @@ void MenuBar::ButtonPressed(size_t id, const ui::Event& event) {
|
|||
}
|
||||
|
||||
SubmenuButton* source = nullptr;
|
||||
for (auto* child : children()) {
|
||||
for (views::View* child : children()) {
|
||||
auto* button = static_cast<SubmenuButton*>(child);
|
||||
int button_id = button->GetID();
|
||||
if (button_id >= 0 && static_cast<size_t>(button_id) == id) {
|
||||
|
@ -252,7 +252,7 @@ void MenuBar::UpdateViewColors() {
|
|||
#if BUILDFLAG(IS_LINUX)
|
||||
const auto& textColor =
|
||||
window_->IsFocused() ? enabled_color_ : disabled_color_;
|
||||
for (auto* child : GetChildrenInZOrder()) {
|
||||
for (views::View* child : GetChildrenInZOrder()) {
|
||||
auto* button = static_cast<SubmenuButton*>(child);
|
||||
button->SetTextColor(views::Button::STATE_NORMAL, textColor);
|
||||
button->SetTextColor(views::Button::STATE_DISABLED, disabled_color_);
|
||||
|
@ -261,7 +261,7 @@ void MenuBar::UpdateViewColors() {
|
|||
button->SetUnderlineColor(textColor);
|
||||
}
|
||||
#elif BUILDFLAG(IS_WIN)
|
||||
for (auto* child : GetChildrenInZOrder()) {
|
||||
for (views::View* child : GetChildrenInZOrder()) {
|
||||
auto* button = static_cast<SubmenuButton*>(child);
|
||||
button->SetUnderlineColor(color_utils::GetSysSkColor(COLOR_MENUTEXT));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue