chore: bump chromium to 135.0.7015.0 (main) (#45500)
*6230977
* chore: bump chromium to 135.0.7012.0 * chore: update accelerator.patch Support parsing Ctrl+Alt shortcuts |6238137
* 6234236: Reapply bindings: Pass CppHeap on Isolate creation |6234236
* 6234614: [ios blink] Move to use external begin frame source |6234614
* chore: update chromium/feat_add_streaming-protocol_registry_to_multibuffer_data_source.patch no manual changes; patch applied with fuzz * chore: update chromium/build_libc_as_static_library.patch no manual changes; patch applied with fuzz * chore: remove chromium/cherry-pick-dd8e2822e507.patch landed upstream * 6188884: Grit: Remove output_all_resource_defines from list of valid attributes. |6188884
* 6226981: [views-ax] Remove View::GetAccessibleNodeData() method |6226981
* 6214895: [views-ax] Deprecate View::NotifyAccessibilityEvent |6214895
* 6196494: Remove ImageView::SetImage() with ImageSkia param |6196494
* 6236267: [cleanup] Remove unused PrinterBasicInfo fields |6236267
* refactor: remove status, isDefault properties from PrinterInfo Xref:6236267
* chore: lint * fixup: added mas bypass to new file added in6208630
see slack for more context * chore: node script/gen-libc++-filenames.js * chore: e patches all * fix: duplicate crdtp symbols * chore: update patches * fixup! [Media Features] Remove launched features --------- Co-authored-by: alice <alice@makenotion.com> Co-authored-by: Charles Kerr <charles@charleskerr.com> Co-authored-by: deepak1556 <hop2deep@gmail.com>
This commit is contained in:
parent
6be1151ffc
commit
47572286f3
82 changed files with 414 additions and 601 deletions
|
@ -1142,7 +1142,7 @@ void BaseWindow::SetTitleBarOverlay(const gin_helper::Dictionary& options,
|
|||
if (!updated)
|
||||
return;
|
||||
|
||||
// If anything was updated, ensure the overlay is repainted.
|
||||
// If anything was updated, ensure the overlay is repainted.
|
||||
#if BUILDFLAG(IS_WIN)
|
||||
auto* frame_view = static_cast<WinFrameView*>(
|
||||
window->widget()->non_client_view()->frame_view());
|
||||
|
|
|
@ -28,8 +28,6 @@ struct Converter<printing::PrinterBasicInfo> {
|
|||
dict.Set("name", val.printer_name);
|
||||
dict.Set("displayName", val.display_name);
|
||||
dict.Set("description", val.printer_description);
|
||||
dict.Set("status", val.printer_status);
|
||||
dict.Set("isDefault", val.is_default ? true : false);
|
||||
dict.Set("options", val.options);
|
||||
return dict.GetHandle();
|
||||
}
|
||||
|
|
|
@ -20,7 +20,7 @@ ImageView::ImageView() : View(new views::ImageView()) {
|
|||
ImageView::~ImageView() = default;
|
||||
|
||||
void ImageView::SetImage(const gfx::Image& image) {
|
||||
image_view()->SetImage(image.AsImageSkia());
|
||||
image_view()->SetImage(ui::ImageModel::FromImage(image));
|
||||
}
|
||||
|
||||
// static
|
||||
|
|
|
@ -210,9 +210,9 @@ class Browser : private WindowListObserver {
|
|||
void ApplyForcedRTL();
|
||||
|
||||
// Bounce the dock icon.
|
||||
enum class BounceType{
|
||||
kCritical = 0, // NSCriticalRequest
|
||||
kInformational = 10, // NSInformationalRequest
|
||||
enum class BounceType {
|
||||
kCritical = 0, // NSCriticalRequest
|
||||
kInformational = 10, // NSInformationalRequest
|
||||
};
|
||||
int DockBounce(BounceType type);
|
||||
void DockCancelBounce(int request_id);
|
||||
|
|
|
@ -179,7 +179,7 @@ bool AuthorizedInstall(NSString* srcPath, NSString* dstPath, bool* canceled) {
|
|||
// longer accessible. If Apple removes the function entirely this will fail
|
||||
// gracefully. If they keep the function and throw some sort of exception,
|
||||
// this won't fail gracefully, but that's a risk we'll have to take for now.
|
||||
security_AuthorizationExecuteWithPrivileges = (OSStatus(*)(
|
||||
security_AuthorizationExecuteWithPrivileges = (OSStatus (*)(
|
||||
AuthorizationRef, const char*, AuthorizationFlags, char* const*,
|
||||
FILE**))dlsym(RTLD_DEFAULT, "AuthorizationExecuteWithPrivileges");
|
||||
}
|
||||
|
|
|
@ -27,11 +27,6 @@
|
|||
|
||||
namespace electron {
|
||||
|
||||
void AutofillPopupChildView::GetAccessibleNodeData(ui::AXNodeData* node_data) {
|
||||
node_data->role = ax::mojom::Role::kMenuItem;
|
||||
node_data->SetName(suggestion_);
|
||||
}
|
||||
|
||||
BEGIN_METADATA(AutofillPopupChildView)
|
||||
END_METADATA
|
||||
|
||||
|
@ -41,6 +36,8 @@ AutofillPopupView::AutofillPopupView(AutofillPopup* popup,
|
|||
CreateChildViews();
|
||||
SetFocusBehavior(FocusBehavior::ALWAYS);
|
||||
set_drag_controller(this);
|
||||
SetAccessibleRole(ax::mojom::Role::kMenu);
|
||||
SetAccessibleName(u"Autofill Menu");
|
||||
}
|
||||
|
||||
AutofillPopupView::~AutofillPopupView() {
|
||||
|
@ -103,7 +100,7 @@ void AutofillPopupView::Show() {
|
|||
auto* host = popup_->frame_host_->GetRenderViewHost()->GetWidget();
|
||||
host->AddKeyPressEventCallback(keypress_callback_);
|
||||
|
||||
NotifyAccessibilityEvent(ax::mojom::Event::kMenuStart, true);
|
||||
NotifyAccessibilityEventDeprecated(ax::mojom::Event::kMenuStart, true);
|
||||
}
|
||||
|
||||
void AutofillPopupView::Hide() {
|
||||
|
@ -114,7 +111,7 @@ void AutofillPopupView::Hide() {
|
|||
}
|
||||
|
||||
RemoveObserver();
|
||||
NotifyAccessibilityEvent(ax::mojom::Event::kMenuEnd, true);
|
||||
NotifyAccessibilityEventDeprecated(ax::mojom::Event::kMenuEnd, true);
|
||||
|
||||
if (GetWidget()) {
|
||||
GetWidget()->Close();
|
||||
|
@ -157,7 +154,7 @@ void AutofillPopupView::OnSelectedRowChanged(
|
|||
int selected = current_row_selection.value_or(-1);
|
||||
if (selected == -1 || static_cast<size_t>(selected) >= children().size())
|
||||
return;
|
||||
children().at(selected)->NotifyAccessibilityEvent(
|
||||
children().at(selected)->NotifyAccessibilityEventDeprecated(
|
||||
ax::mojom::Event::kSelection, true);
|
||||
}
|
||||
}
|
||||
|
@ -265,11 +262,6 @@ void AutofillPopupView::OnPaint(gfx::Canvas* canvas) {
|
|||
}
|
||||
}
|
||||
|
||||
void AutofillPopupView::GetAccessibleNodeData(ui::AXNodeData* node_data) {
|
||||
node_data->role = ax::mojom::Role::kMenu;
|
||||
node_data->SetName("Autofill Menu");
|
||||
}
|
||||
|
||||
void AutofillPopupView::OnMouseCaptureLost() {
|
||||
ClearSelection();
|
||||
}
|
||||
|
|
|
@ -43,6 +43,8 @@ class AutofillPopupChildView : public views::View {
|
|||
explicit AutofillPopupChildView(const std::u16string& suggestion)
|
||||
: suggestion_(suggestion) {
|
||||
SetFocusBehavior(FocusBehavior::ALWAYS);
|
||||
SetAccessibleRole(ax::mojom::Role::kMenuItem);
|
||||
SetAccessibleName(suggestion);
|
||||
}
|
||||
|
||||
// disable copy
|
||||
|
@ -52,9 +54,6 @@ class AutofillPopupChildView : public views::View {
|
|||
private:
|
||||
~AutofillPopupChildView() override = default;
|
||||
|
||||
// views::Views implementation
|
||||
void GetAccessibleNodeData(ui::AXNodeData* node_data) override;
|
||||
|
||||
std::u16string suggestion_;
|
||||
};
|
||||
|
||||
|
@ -103,7 +102,6 @@ class AutofillPopupView : public views::WidgetDelegateView,
|
|||
|
||||
// views::Views implementation.
|
||||
void OnPaint(gfx::Canvas* canvas) override;
|
||||
void GetAccessibleNodeData(ui::AXNodeData* node_data) override;
|
||||
void OnMouseCaptureLost() override;
|
||||
bool OnMouseDragged(const ui::MouseEvent& event) override;
|
||||
void OnMouseExited(const ui::MouseEvent& event) override;
|
||||
|
|
|
@ -29,23 +29,23 @@ using dbusmenu_menuitem_new_func = DbusmenuMenuitem* (*)();
|
|||
using dbusmenu_menuitem_new_with_id_func = DbusmenuMenuitem* (*)(int id);
|
||||
|
||||
using dbusmenu_menuitem_get_id_func = int (*)(DbusmenuMenuitem* item);
|
||||
using dbusmenu_menuitem_get_children_func = GList* (*)(DbusmenuMenuitem* item);
|
||||
using dbusmenu_menuitem_get_children_func = GList* (*)(DbusmenuMenuitem * item);
|
||||
using dbusmenu_menuitem_child_append_func =
|
||||
DbusmenuMenuitem* (*)(DbusmenuMenuitem* parent, DbusmenuMenuitem* child);
|
||||
DbusmenuMenuitem* (*)(DbusmenuMenuitem * parent, DbusmenuMenuitem* child);
|
||||
using dbusmenu_menuitem_property_set_func =
|
||||
DbusmenuMenuitem* (*)(DbusmenuMenuitem* item,
|
||||
DbusmenuMenuitem* (*)(DbusmenuMenuitem * item,
|
||||
const char* property,
|
||||
const char* value);
|
||||
using dbusmenu_menuitem_property_set_variant_func =
|
||||
DbusmenuMenuitem* (*)(DbusmenuMenuitem* item,
|
||||
DbusmenuMenuitem* (*)(DbusmenuMenuitem * item,
|
||||
const char* property,
|
||||
GVariant* value);
|
||||
using dbusmenu_menuitem_property_set_bool_func =
|
||||
DbusmenuMenuitem* (*)(DbusmenuMenuitem* item,
|
||||
DbusmenuMenuitem* (*)(DbusmenuMenuitem * item,
|
||||
const char* property,
|
||||
bool value);
|
||||
using dbusmenu_menuitem_property_set_int_func =
|
||||
DbusmenuMenuitem* (*)(DbusmenuMenuitem* item,
|
||||
DbusmenuMenuitem* (*)(DbusmenuMenuitem * item,
|
||||
const char* property,
|
||||
int value);
|
||||
|
||||
|
|
|
@ -43,6 +43,9 @@ MenuBar::MenuBar(NativeWindow* window, RootView* root_view)
|
|||
SetLayoutManager(std::make_unique<views::BoxLayout>(
|
||||
views::BoxLayout::Orientation::kHorizontal));
|
||||
window_->AddObserver(this);
|
||||
SetAccessibleName(std::u16string(),
|
||||
ax::mojom::NameFrom::kAttributeExplicitlyEmpty);
|
||||
SetAccessibleRole(ax::mojom::Role::kMenuBar);
|
||||
}
|
||||
|
||||
MenuBar::~MenuBar() {
|
||||
|
@ -123,11 +126,6 @@ void MenuBar::OnWindowFocus() {
|
|||
SetAcceleratorVisibility(pane_has_focus());
|
||||
}
|
||||
|
||||
void MenuBar::GetAccessibleNodeData(ui::AXNodeData* node_data) {
|
||||
node_data->SetNameExplicitlyEmpty();
|
||||
node_data->role = ax::mojom::Role::kMenuBar;
|
||||
}
|
||||
|
||||
bool MenuBar::AcceleratorPressed(const ui::Accelerator& accelerator) {
|
||||
// Treat pressing Alt the same as pressing Esc.
|
||||
const ui::Accelerator& translated =
|
||||
|
|
|
@ -73,9 +73,6 @@ class MenuBar : public views::AccessiblePaneView,
|
|||
// views::FocusChangeListener:
|
||||
void OnDidChangeFocus(View* focused_before, View* focused_now) override;
|
||||
|
||||
// views::View:
|
||||
void GetAccessibleNodeData(ui::AXNodeData* node_data) override;
|
||||
|
||||
void ButtonPressed(size_t id, const ui::Event& event);
|
||||
|
||||
void RebuildChildren();
|
||||
|
|
|
@ -26,7 +26,7 @@ SubmenuButton::SubmenuButton(PressedCallback callback,
|
|||
// Dont' use native style border.
|
||||
SetBorder(CreateDefaultBorder());
|
||||
#endif
|
||||
|
||||
SetAccessibleRole(ax::mojom::Role::kPopUpButton);
|
||||
if (GetUnderlinePosition(title, &accelerator_, &underline_start_,
|
||||
&underline_end_))
|
||||
gfx::Canvas::SizeStringInt(GetText(), gfx::FontList(), &text_width_,
|
||||
|
@ -53,11 +53,6 @@ void SubmenuButton::SetUnderlineColor(SkColor color) {
|
|||
underline_color_ = color;
|
||||
}
|
||||
|
||||
void SubmenuButton::GetAccessibleNodeData(ui::AXNodeData* node_data) {
|
||||
node_data->role = ax::mojom::Role::kPopUpButton;
|
||||
node_data->SetName(GetAccessibleName());
|
||||
}
|
||||
|
||||
void SubmenuButton::PaintButtonContents(gfx::Canvas* canvas) {
|
||||
views::MenuButton::PaintButtonContents(canvas);
|
||||
|
||||
|
|
|
@ -36,9 +36,6 @@ class SubmenuButton : public views::MenuButton {
|
|||
|
||||
char16_t accelerator() const { return accelerator_; }
|
||||
|
||||
// views::MenuButton:
|
||||
void GetAccessibleNodeData(ui::AXNodeData* node_data) override;
|
||||
|
||||
void PaintButtonContents(gfx::Canvas* canvas) override;
|
||||
|
||||
private:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue