Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // 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
| |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef UI_VIEWS_ACCESSIBILITY_NATIVE_VIEW_ACCESSIBILITY_BASE_H_ | |
| 6 #define UI_VIEWS_ACCESSIBILITY_NATIVE_VIEW_ACCESSIBILITY_BASE_H_ | |
| 7 | |
| 8 #include <memory> | |
| 9 | |
| 10 #include "base/macros.h" | |
| 11 #include "ui/accessibility/ax_enums.h" | |
| 12 #include "ui/gfx/native_widget_types.h" | |
| 13 #include "ui/views/views_export.h" | |
| 14 | |
| 15 namespace views { | |
| 16 | |
| 17 class View; | |
| 18 | |
| 19 // Abstract base for that allows native platform accessibility toolkits to | |
| 20 // interface with a View. | |
| 21 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
| |
| 22 public: | |
| 23 static std::unique_ptr<NativeViewAccessibilityBase> Create(View* view); | |
| 24 | |
| 25 virtual ~NativeViewAccessibilityBase() {} | |
| 26 | |
| 27 virtual gfx::NativeViewAccessible GetNativeObject() = 0; | |
| 28 virtual void NotifyAccessibilityEvent(ui::AXEvent event_type) = 0; | |
| 29 | |
| 30 protected: | |
| 31 NativeViewAccessibilityBase() {} | |
| 32 | |
| 33 private: | |
| 34 DISALLOW_COPY_AND_ASSIGN(NativeViewAccessibilityBase); | |
| 35 }; | |
| 36 | |
| 37 } // namespace views | |
| 38 | |
| 39 #endif // UI_VIEWS_ACCESSIBILITY_NATIVE_VIEW_ACCESSIBILITY_BASE_H_ | |
| OLD | NEW |