Convert ax_enums.idl to mojom.

https://chromium-review.googlesource.com/c/chromium/src/+/877417
This commit is contained in:
deepak1556 2018-04-11 20:45:22 +05:30 committed by Samuel Attard
parent 7732da41ba
commit 2047929cb5
3 changed files with 8 additions and 7 deletions

View file

@ -19,7 +19,7 @@
namespace atom {
void AutofillPopupChildView::GetAccessibleNodeData(ui::AXNodeData* node_data) {
node_data->role = ui::AX_ROLE_MENU_ITEM;
node_data->role = ax::mojom::Role::kMenuItem;
node_data->SetName(suggestion_);
}
@ -98,7 +98,7 @@ void AutofillPopupView::Show() {
auto* host = popup_->frame_host_->GetRenderViewHost()->GetWidget();
host->AddKeyPressEventCallback(keypress_callback_);
NotifyAccessibilityEvent(ui::AX_EVENT_MENU_START, true);
NotifyAccessibilityEvent(ax::mojom::Event::kMenuStart, true);
}
void AutofillPopupView::Hide() {
@ -109,7 +109,7 @@ void AutofillPopupView::Hide() {
}
RemoveObserver();
NotifyAccessibilityEvent(ui::AX_EVENT_MENU_END, true);
NotifyAccessibilityEvent(ax::mojom::Event::kMenuEnd, true);
if (GetWidget()) {
GetWidget()->Close();
@ -152,7 +152,8 @@ void AutofillPopupView::OnSelectedRowChanged(
int selected = current_row_selection.value_or(-1);
if (selected == -1 || selected >= child_count())
return;
child_at(selected)->NotifyAccessibilityEvent(ui::AX_EVENT_SELECTION, true);
child_at(selected)->NotifyAccessibilityEvent(ax::mojom::Event::kSelection,
true);
}
}
@ -260,7 +261,7 @@ void AutofillPopupView::OnPaint(gfx::Canvas* canvas) {
}
void AutofillPopupView::GetAccessibleNodeData(ui::AXNodeData* node_data) {
node_data->role = ui::AX_ROLE_MENU;
node_data->role = ax::mojom::Role::kMenu;
node_data->SetName("Autofill Menu");
}