| 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 "content/shell/renderer/test_runner/accessibility_controller.h" | 5 #include "content/shell/renderer/test_runner/accessibility_controller.h" |
| 6 | 6 |
| 7 #include "gin/handle.h" | 7 #include "gin/handle.h" |
| 8 #include "gin/object_template_builder.h" | 8 #include "gin/object_template_builder.h" |
| 9 #include "gin/wrappable.h" | 9 #include "gin/wrappable.h" |
| 10 #include "third_party/WebKit/public/web/WebElement.h" | 10 #include "third_party/WebKit/public/web/WebElement.h" |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 v8::String::kNormalString, | 195 v8::String::kNormalString, |
| 196 notification_name.size()), | 196 notification_name.size()), |
| 197 }; | 197 }; |
| 198 frame->callFunctionEvenIfScriptDisabled( | 198 frame->callFunctionEvenIfScriptDisabled( |
| 199 v8::Local<v8::Function>::New(isolate, notification_callback_), | 199 v8::Local<v8::Function>::New(isolate, notification_callback_), |
| 200 context->Global(), | 200 context->Global(), |
| 201 arraysize(argv), | 201 arraysize(argv), |
| 202 argv); | 202 argv); |
| 203 } | 203 } |
| 204 | 204 |
| 205 void AccessibilityController::SetDelegate( | 205 void AccessibilityController::SetDelegate(WebTestDelegate* delegate) { |
| 206 WebTestRunner::WebTestDelegate* delegate) { | |
| 207 delegate_ = delegate; | 206 delegate_ = delegate; |
| 208 } | 207 } |
| 209 | 208 |
| 210 void AccessibilityController::SetWebView(blink::WebView* web_view) { | 209 void AccessibilityController::SetWebView(blink::WebView* web_view) { |
| 211 web_view_ = web_view; | 210 web_view_ = web_view; |
| 212 } | 211 } |
| 213 | 212 |
| 214 void AccessibilityController::LogAccessibilityEvents() { | 213 void AccessibilityController::LogAccessibilityEvents() { |
| 215 log_accessibility_events_ = true; | 214 log_accessibility_events_ = true; |
| 216 } | 215 } |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 268 v8::Handle<v8::Object> result = | 267 v8::Handle<v8::Object> result = |
| 269 FindAccessibleElementByIdRecursive(obj.childAt(i), id); | 268 FindAccessibleElementByIdRecursive(obj.childAt(i), id); |
| 270 if (*result) | 269 if (*result) |
| 271 return result; | 270 return result; |
| 272 } | 271 } |
| 273 | 272 |
| 274 return v8::Handle<v8::Object>(); | 273 return v8::Handle<v8::Object>(); |
| 275 } | 274 } |
| 276 | 275 |
| 277 } // namespace content | 276 } // namespace content |
| OLD | NEW |