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 "components/test_runner/web_ax_object_proxy.h" | 5 #include "components/test_runner/web_ax_object_proxy.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 9 #include "base/macros.h" |
7 #include "base/strings/stringprintf.h" | 10 #include "base/strings/stringprintf.h" |
8 #include "gin/handle.h" | 11 #include "gin/handle.h" |
9 #include "third_party/WebKit/public/platform/WebPoint.h" | 12 #include "third_party/WebKit/public/platform/WebPoint.h" |
10 #include "third_party/WebKit/public/platform/WebRect.h" | 13 #include "third_party/WebKit/public/platform/WebRect.h" |
11 #include "third_party/WebKit/public/platform/WebString.h" | 14 #include "third_party/WebKit/public/platform/WebString.h" |
12 #include "third_party/WebKit/public/web/WebFrame.h" | 15 #include "third_party/WebKit/public/web/WebFrame.h" |
13 #include "third_party/WebKit/public/web/WebKit.h" | 16 #include "third_party/WebKit/public/web/WebKit.h" |
14 | 17 |
15 namespace test_runner { | 18 namespace test_runner { |
16 | 19 |
(...skipping 1456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1473 v8::Local<v8::Value> value_handle = gin::CreateHandle( | 1476 v8::Local<v8::Value> value_handle = gin::CreateHandle( |
1474 isolate, new WebAXObjectProxy(object, this)).ToV8(); | 1477 isolate, new WebAXObjectProxy(object, this)).ToV8(); |
1475 if (value_handle.IsEmpty()) | 1478 if (value_handle.IsEmpty()) |
1476 return v8::Local<v8::Object>(); | 1479 return v8::Local<v8::Object>(); |
1477 v8::Local<v8::Object> handle = value_handle->ToObject(isolate); | 1480 v8::Local<v8::Object> handle = value_handle->ToObject(isolate); |
1478 elements_.Append(handle); | 1481 elements_.Append(handle); |
1479 return handle; | 1482 return handle; |
1480 } | 1483 } |
1481 | 1484 |
1482 } // namespace test_runner | 1485 } // namespace test_runner |
OLD | NEW |