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

Side by Side Diff: components/html_viewer/ax_provider_impl.h

Issue 1677293002: Bye bye Mandoline (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: moar Created 4 years, 10 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 unified diff | Download patch
OLDNEW
(Empty)
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.
4
5 #ifndef COMPONENTS_HTML_VIEWER_AX_PROVIDER_IMPL_H_
6 #define COMPONENTS_HTML_VIEWER_AX_PROVIDER_IMPL_H_
7
8 #include "base/macros.h"
9 #include "mojo/public/cpp/bindings/binding.h"
10 #include "mojo/services/accessibility/public/interfaces/accessibility.mojom.h"
11
12 namespace blink {
13 class WebAXObject;
14 class WebView;
15 } // namespace blink
16
17 namespace html_viewer {
18
19 // Caller must ensure that |web_view| outlives AxProviderImpl.
20 class AxProviderImpl : public mojo::AxProvider {
21 public:
22 AxProviderImpl(blink::WebView* web_view,
23 mojo::InterfaceRequest<mojo::AxProvider> request);
24 ~AxProviderImpl() override;
25 void GetTree(const mojo::Callback<void(mojo::Array<mojo::AxNodePtr> nodes)>&
26 callback) override;
27
28 private:
29 int Populate(const blink::WebAXObject& ax_object,
30 int parent_id,
31 int next_sibling_id,
32 mojo::Array<mojo::AxNodePtr>* result);
33 mojo::AxNodePtr ConvertAxNode(const blink::WebAXObject& ax_object,
34 int parent_id,
35 int next_sibling_id);
36
37 blink::WebView* web_view_;
38 mojo::Binding<mojo::AxProvider> binding_;
39
40 DISALLOW_COPY_AND_ASSIGN(AxProviderImpl);
41 };
42
43 } // namespace html_viewer
44
45 #endif // COMPONENTS_HTML_VIEWER_AX_PROVIDER_IMPL_H_
OLDNEW
« no previous file with comments | « components/html_viewer/ax_provider_apptest.cc ('k') | components/html_viewer/ax_provider_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698