OLD | NEW |
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 #include "mojo/services/html_viewer/ax_provider_impl.h" | 5 #include "components/html_viewer/ax_provider_impl.h" |
6 | 6 |
7 #include "mojo/services/html_viewer/blink_basic_type_converters.h" | 7 #include "components/html_viewer/blink_basic_type_converters.h" |
8 #include "third_party/WebKit/public/platform/WebURL.h" | 8 #include "third_party/WebKit/public/platform/WebURL.h" |
9 #include "third_party/WebKit/public/web/WebAXObject.h" | 9 #include "third_party/WebKit/public/web/WebAXObject.h" |
10 #include "third_party/WebKit/public/web/WebSettings.h" | 10 #include "third_party/WebKit/public/web/WebSettings.h" |
11 #include "third_party/WebKit/public/web/WebView.h" | 11 #include "third_party/WebKit/public/web/WebView.h" |
12 | 12 |
13 using blink::WebAXObject; | 13 using blink::WebAXObject; |
14 using blink::WebURL; | 14 using blink::WebURL; |
15 using blink::WebView; | 15 using blink::WebView; |
16 | 16 |
17 using mojo::Array; | 17 using mojo::Array; |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 } else if (ax_object.childCount() == 0 && | 77 } else if (ax_object.childCount() == 0 && |
78 !ax_object.stringValue().isEmpty()) { | 78 !ax_object.stringValue().isEmpty()) { |
79 result->text = mojo::AxText::New(); | 79 result->text = mojo::AxText::New(); |
80 result->text->content = String::From(ax_object.stringValue()); | 80 result->text->content = String::From(ax_object.stringValue()); |
81 } | 81 } |
82 | 82 |
83 return result.Pass(); | 83 return result.Pass(); |
84 } | 84 } |
85 | 85 |
86 } // namespace html_viewer | 86 } // namespace html_viewer |
OLD | NEW |