Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7845)

Unified Diff: chrome/browser/ui/views/website_settings/non_accessible_image_view.cc

Issue 2491773002: Page Info (Views): remove images from accessibility order (Closed)
Patch Set: Move NonAccessibleImageView into a new class. Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/website_settings/non_accessible_image_view.cc
diff --git a/chrome/browser/ui/views/website_settings/non_accessible_image_view.cc b/chrome/browser/ui/views/website_settings/non_accessible_image_view.cc
new file mode 100644
index 0000000000000000000000000000000000000000..dab4d47e5a4db88fdde3599b9ac5d571b3a8b1a4
--- /dev/null
+++ b/chrome/browser/ui/views/website_settings/non_accessible_image_view.cc
@@ -0,0 +1,9 @@
+// Copyright (c) 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/ui/views/website_settings/non_accessible_image_view.h"
+
+void NonAccessibleImageView::GetAccessibleNodeData(ui::AXNodeData* node_data) {
+ node_data->role = ui::AX_ROLE_IGNORED;
msw 2016/11/11 15:55:01 Please address Dominic's feedback: node_data->AddS
lgarron 2016/11/11 22:28:50 Done. node_data->AddStateFlag(ui::AX_STATE_INVISI
+}

Powered by Google App Engine
This is Rietveld 408576698