| 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 // TODO(hajimehoshi): Remove this when UnsafePersistent is removed. | |
| 6 #define V8_ALLOW_ACCESS_TO_RAW_HANDLE_CONSTRUCTOR | |
| 7 | |
| 8 #include "content/shell/renderer/test_runner/web_ax_object_proxy.h" | 5 #include "content/shell/renderer/test_runner/web_ax_object_proxy.h" |
| 9 | 6 |
| 10 #include "base/strings/stringprintf.h" | 7 #include "base/strings/stringprintf.h" |
| 11 #include "gin/handle.h" | 8 #include "gin/handle.h" |
| 12 #include "third_party/WebKit/public/platform/WebPoint.h" | 9 #include "third_party/WebKit/public/platform/WebPoint.h" |
| 13 #include "third_party/WebKit/public/platform/WebRect.h" | 10 #include "third_party/WebKit/public/platform/WebRect.h" |
| 14 #include "third_party/WebKit/public/platform/WebString.h" | 11 #include "third_party/WebKit/public/platform/WebString.h" |
| 15 #include "third_party/WebKit/public/web/WebFrame.h" | 12 #include "third_party/WebKit/public/web/WebFrame.h" |
| 16 #include "third_party/WebKit/public/web/WebKit.h" | 13 #include "third_party/WebKit/public/web/WebKit.h" |
| 17 | 14 |
| (...skipping 1007 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1025 v8::Handle<v8::Value> value_handle = gin::CreateHandle( | 1022 v8::Handle<v8::Value> value_handle = gin::CreateHandle( |
| 1026 isolate, new RootWebAXObjectProxy(object, this)).ToV8(); | 1023 isolate, new RootWebAXObjectProxy(object, this)).ToV8(); |
| 1027 if (value_handle.IsEmpty()) | 1024 if (value_handle.IsEmpty()) |
| 1028 return v8::Handle<v8::Object>(); | 1025 return v8::Handle<v8::Object>(); |
| 1029 v8::Handle<v8::Object> handle = value_handle->ToObject(); | 1026 v8::Handle<v8::Object> handle = value_handle->ToObject(); |
| 1030 elements_.Append(handle); | 1027 elements_.Append(handle); |
| 1031 return handle; | 1028 return handle; |
| 1032 } | 1029 } |
| 1033 | 1030 |
| 1034 } // namespace content | 1031 } // namespace content |
| OLD | NEW |