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

Side by Side Diff: mojo/services/html_viewer/ax_provider_impl.h

Issue 799113004: Update mojo sdk to rev 59145288bae55b0fce4276b017df6a1117bcf00f (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add mojo's ply to checklicenses whitelist Created 6 years 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
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MOJO_SERVICES_HTML_VIEWER_AX_PROVIDER_IMPL_H_ 5 #ifndef MOJO_SERVICES_HTML_VIEWER_AX_PROVIDER_IMPL_H_
6 #define MOJO_SERVICES_HTML_VIEWER_AX_PROVIDER_IMPL_H_ 6 #define MOJO_SERVICES_HTML_VIEWER_AX_PROVIDER_IMPL_H_
7 7
8 #include "mojo/public/cpp/bindings/interface_impl.h" 8 #include "mojo/public/cpp/bindings/interface_impl.h"
9 #include "mojo/services/public/interfaces/accessibility/accessibility.mojom.h" 9 #include "mojo/services/accessibility/public/interfaces/accessibility.mojom.h"
10 10
11 namespace blink { 11 namespace blink {
12 class WebAXObject; 12 class WebAXObject;
13 class WebView; 13 class WebView;
14 } // namespace blink 14 } // namespace blink
15 15
16 namespace mojo { 16 namespace mojo {
17 17
18 // Caller must ensure that |web_view| outlives AxProviderImpl. 18 // Caller must ensure that |web_view| outlives AxProviderImpl.
19 class AxProviderImpl : public InterfaceImpl<AxProvider> { 19 class AxProviderImpl : public InterfaceImpl<AxProvider> {
20 public: 20 public:
21 explicit AxProviderImpl(blink::WebView* web_view); 21 explicit AxProviderImpl(blink::WebView* web_view);
22 void GetTree(const Callback<void(Array<AxNodePtr> nodes)>& callback) override; 22 void GetTree(const Callback<void(Array<AxNodePtr> nodes)>& callback) override;
23 23
24 private: 24 private:
25 int Populate(const blink::WebAXObject& ax_object, 25 int Populate(const blink::WebAXObject& ax_object,
26 int parent_id, 26 int parent_id,
27 int next_sibling_id, 27 int next_sibling_id,
28 Array<AxNodePtr>* result); 28 Array<AxNodePtr>* result);
29 AxNodePtr ConvertAxNode(const blink::WebAXObject& ax_object, 29 AxNodePtr ConvertAxNode(const blink::WebAXObject& ax_object,
30 int parent_id, 30 int parent_id,
31 int next_sibling_id); 31 int next_sibling_id);
32 32
33 blink::WebView* web_view_; 33 blink::WebView* web_view_;
34 }; 34 };
35 35
36 } // namespace mojo 36 } // namespace mojo
37 37
38 #endif // MOJO_SERVICES_HTML_VIEWER_AX_PROVIDER_IMPL_H_ 38 #endif // MOJO_SERVICES_HTML_VIEWER_AX_PROVIDER_IMPL_H_
OLDNEW
« no previous file with comments | « mojo/services/html_viewer/BUILD.gn ('k') | mojo/services/html_viewer/blink_basic_type_converters.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698