Commit 020df651 authored by Martin Robinson's avatar Martin Robinson Committed by Commit Bot

Get Aura Linux accessibility code linting

There are a few small issues with the code right now that prevent it
from linting cleanly. This change, while not affecting the
functionality, will make it much easier to catch linting errors in the
future.

Change-Id: Ib5284b025e7bc385810a2c171d36bef478fe83f5
Reviewed-on: https://chromium-review.googlesource.com/1150162Reviewed-by: default avatarDominic Mazzoni <dmazzoni@chromium.org>
Commit-Queue: Dominic Mazzoni <dmazzoni@chromium.org>
Cr-Commit-Position: refs/heads/master@{#577922}
parent 04d52f9e
......@@ -6,6 +6,10 @@
#include <stdint.h>
#include <memory>
#include <string>
#include <utility>
#include "base/command_line.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/sys_string_conversions.h"
......@@ -1263,7 +1267,6 @@ AtkRole AXPlatformNodeAuraLinux::GetAtkRole() {
.empty() ||
IsFocusedInputWithSuggestions()) {
return ATK_ROLE_AUTOCOMPLETE;
;
}
return ATK_ROLE_ENTRY;
case ax::mojom::Role::kTextFieldWithComboBox:
......@@ -1357,8 +1360,8 @@ void AXPlatformNodeAuraLinux::GetAtkState(AtkStateSet* atk_state_set) {
atk_state_set_add_state(atk_state_set, ATK_STATE_FOCUSED);
}
void AXPlatformNodeAuraLinux::GetAtkRelations(AtkRelationSet* atk_relation_set)
{
void AXPlatformNodeAuraLinux::GetAtkRelations(
AtkRelationSet* atk_relation_set) {
}
AXPlatformNodeAuraLinux::AXPlatformNodeAuraLinux()
......
......@@ -2,11 +2,13 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_ACCESSIBILITY_AX_PLATFORM_NODE_AURALINUX_H_
#define UI_ACCESSIBILITY_AX_PLATFORM_NODE_AURALINUX_H_
#ifndef UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_AURALINUX_H_
#define UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_AURALINUX_H_
#include <atk/atk.h>
#include <string>
#include "base/macros.h"
#include "base/strings/utf_string_conversions.h"
#include "ui/accessibility/ax_export.h"
......@@ -129,4 +131,4 @@ class AXPlatformNodeAuraLinux : public AXPlatformNodeBase {
} // namespace ui
#endif // UI_ACCESSIBILITY_AX_PLATFORM_NODE_AURALINUX_H_
#endif // UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_AURALINUX_H_
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