1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef MOJO_SERVICES_HTML_VIEWER_AX_PROVIDER_IMPL_H_
6 #define MOJO_SERVICES_HTML_VIEWER_AX_PROVIDER_IMPL_H_
8 #include "mojo/public/cpp/bindings/interface_impl.h"
9 #include "mojo/services/public/interfaces/accessibility/accessibility.mojom.h"
18 // Caller must ensure that |web_view| outlives AxProviderImpl.
19 class AxProviderImpl
: public InterfaceImpl
<AxProvider
> {
21 explicit AxProviderImpl(blink::WebView
* web_view
);
22 void GetTree(const Callback
<void(Array
<AxNodePtr
> nodes
)>& callback
) override
;
25 int Populate(const blink::WebAXObject
& ax_object
,
28 Array
<AxNodePtr
>* result
);
29 AxNodePtr
ConvertAxNode(const blink::WebAXObject
& ax_object
,
33 blink::WebView
* web_view_
;
38 #endif // MOJO_SERVICES_HTML_VIEWER_AX_PROVIDER_IMPL_H_