Commit 8c683070 authored by Elly Fong-Jones's avatar Elly Fong-Jones Committed by Commit Bot

views: remove "splitter" role from Separator

At least on Mac, a "splitter" is an interactable thing that allows
the user to adjust the boundary between two groups of things. The
Views splitter is not like this - it is basically just an <hr> type
line. The Views control is more or less purely presentational and
should not have an AX role.

Bug: 961324
Change-Id: I8cfcd657c2ee9cae462a208e616dd8364cdb6428
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1827944Reviewed-by: default avatarDominic Mazzoni <dmazzoni@chromium.org>
Reviewed-by: default avatarRobert Liao <robliao@chromium.org>
Commit-Queue: Elly Fong-Jones <ellyjones@chromium.org>
Cr-Commit-Position: refs/heads/master@{#700833}
parent 366d2b83
...@@ -54,10 +54,6 @@ gfx::Size Separator::CalculatePreferredSize() const { ...@@ -54,10 +54,6 @@ gfx::Size Separator::CalculatePreferredSize() const {
return size; return size;
} }
void Separator::GetAccessibleNodeData(ui::AXNodeData* node_data) {
node_data->role = ax::mojom::Role::kSplitter;
}
void Separator::OnPaint(gfx::Canvas* canvas) { void Separator::OnPaint(gfx::Canvas* canvas) {
SkColor color = overridden_color_ SkColor color = overridden_color_
? *overridden_color_ ? *overridden_color_
......
...@@ -33,7 +33,6 @@ class VIEWS_EXPORT Separator : public View { ...@@ -33,7 +33,6 @@ class VIEWS_EXPORT Separator : public View {
// Overridden from View: // Overridden from View:
gfx::Size CalculatePreferredSize() const override; gfx::Size CalculatePreferredSize() const override;
void GetAccessibleNodeData(ui::AXNodeData* node_data) override;
void OnPaint(gfx::Canvas* canvas) override; void OnPaint(gfx::Canvas* canvas) override;
private: private:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment