| 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 12 matching lines...) Expand all Loading... |
| 23 static void Install(base::WeakPtr<AccessibilityController> controller, | 23 static void Install(base::WeakPtr<AccessibilityController> controller, |
| 24 blink::WebFrame* frame); | 24 blink::WebFrame* frame); |
| 25 | 25 |
| 26 private: | 26 private: |
| 27 explicit AccessibilityControllerBindings( | 27 explicit AccessibilityControllerBindings( |
| 28 base::WeakPtr<AccessibilityController> controller); | 28 base::WeakPtr<AccessibilityController> controller); |
| 29 virtual ~AccessibilityControllerBindings(); | 29 virtual ~AccessibilityControllerBindings(); |
| 30 | 30 |
| 31 // gin::Wrappable: | 31 // gin::Wrappable: |
| 32 virtual gin::ObjectTemplateBuilder GetObjectTemplateBuilder( | 32 virtual gin::ObjectTemplateBuilder GetObjectTemplateBuilder( |
| 33 v8::Isolate* isolate) OVERRIDE; | 33 v8::Isolate* isolate) override; |
| 34 | 34 |
| 35 void LogAccessibilityEvents(); | 35 void LogAccessibilityEvents(); |
| 36 void SetNotificationListener(v8::Handle<v8::Function> callback); | 36 void SetNotificationListener(v8::Handle<v8::Function> callback); |
| 37 void UnsetNotificationListener(); | 37 void UnsetNotificationListener(); |
| 38 v8::Handle<v8::Object> FocusedElement(); | 38 v8::Handle<v8::Object> FocusedElement(); |
| 39 v8::Handle<v8::Object> RootElement(); | 39 v8::Handle<v8::Object> RootElement(); |
| 40 v8::Handle<v8::Object> AccessibleElementById(const std::string& id); | 40 v8::Handle<v8::Object> AccessibleElementById(const std::string& id); |
| 41 | 41 |
| 42 base::WeakPtr<AccessibilityController> controller_; | 42 base::WeakPtr<AccessibilityController> controller_; |
| 43 | 43 |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 269 v8::Handle<v8::Object> result = | 269 v8::Handle<v8::Object> result = |
| 270 FindAccessibleElementByIdRecursive(obj.childAt(i), id); | 270 FindAccessibleElementByIdRecursive(obj.childAt(i), id); |
| 271 if (*result) | 271 if (*result) |
| 272 return result; | 272 return result; |
| 273 } | 273 } |
| 274 | 274 |
| 275 return v8::Handle<v8::Object>(); | 275 return v8::Handle<v8::Object>(); |
| 276 } | 276 } |
| 277 | 277 |
| 278 } // namespace content | 278 } // namespace content |
| OLD | NEW |