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

Unified Diff: ui/views/accessibility/native_view_accessibility_base.h

Issue 2746813002: Hide AXPlatformNode on ChromeOS. (Closed)
Patch Set: fix stub Created 3 years, 9 months 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: ui/views/accessibility/native_view_accessibility_base.h
diff --git a/ui/views/accessibility/native_view_accessibility_base.h b/ui/views/accessibility/native_view_accessibility_base.h
new file mode 100644
index 0000000000000000000000000000000000000000..586df130e7876271d3d91938e9deca918d57bf5e
--- /dev/null
+++ b/ui/views/accessibility/native_view_accessibility_base.h
@@ -0,0 +1,39 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
dmazzoni 2017/03/20 15:44:06 2017
tapted 2017/03/21 02:27:49 Done (although this is now closer to a "fork" of n
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef UI_VIEWS_ACCESSIBILITY_NATIVE_VIEW_ACCESSIBILITY_BASE_H_
+#define UI_VIEWS_ACCESSIBILITY_NATIVE_VIEW_ACCESSIBILITY_BASE_H_
+
+#include <memory>
+
+#include "base/macros.h"
+#include "ui/accessibility/ax_enums.h"
+#include "ui/gfx/native_widget_types.h"
+#include "ui/views/views_export.h"
+
+namespace views {
+
+class View;
+
+// Abstract base for that allows native platform accessibility toolkits to
+// interface with a View.
+class VIEWS_EXPORT NativeViewAccessibilityBase {
dmazzoni 2017/03/20 15:44:06 This naming pattern, while not unintuitive, seems
tapted 2017/03/21 02:27:49 Done. I was tempted by NativeViewAccessibilityInt
+ public:
+ static std::unique_ptr<NativeViewAccessibilityBase> Create(View* view);
+
+ virtual ~NativeViewAccessibilityBase() {}
+
+ virtual gfx::NativeViewAccessible GetNativeObject() = 0;
+ virtual void NotifyAccessibilityEvent(ui::AXEvent event_type) = 0;
+
+ protected:
+ NativeViewAccessibilityBase() {}
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(NativeViewAccessibilityBase);
+};
+
+} // namespace views
+
+#endif // UI_VIEWS_ACCESSIBILITY_NATIVE_VIEW_ACCESSIBILITY_BASE_H_

Powered by Google App Engine
This is Rietveld 408576698