123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- namespace Xilium.CefGlue
- {
- using System;
- using System.Collections.Generic;
- using System.Diagnostics;
- using System.Runtime.InteropServices;
- using Xilium.CefGlue.Interop;
-
- /// <summary>
- /// Implement this interface to receive accessibility notification when
- /// accessibility events have been registered. The methods of this class will
- /// be called on the UI thread.
- /// </summary>
- public abstract unsafe partial class CefAccessibilityHandler
- {
- private void on_accessibility_tree_change(cef_accessibility_handler_t* self, cef_value_t* value)
- {
- CheckSelf(self);
- using (var mValue = CefValue.FromNativeOrNull(value))
- {
- OnAccessibilityTreeChange(mValue);
- }
- }
-
- /// <summary>
- /// Called after renderer process sends accessibility tree changes to the
- /// browser process.
- /// </summary>
- protected abstract void OnAccessibilityTreeChange(CefValue value);
-
- private void on_accessibility_location_change(cef_accessibility_handler_t* self, cef_value_t* value)
- {
- CheckSelf(self);
- using (var mValue = CefValue.FromNativeOrNull(value))
- {
- OnAccessibilityLocationChange(mValue);
- }
- }
-
- /// <summary>
- /// Called after renderer process sends accessibility location changes to the
- /// browser process.
- /// </summary>
- protected abstract void OnAccessibilityLocationChange(CefValue value);
- }
- }
|