Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(652)

Side by Side Diff: content/shell/test_runner/accessibility_controller.h

Issue 2928033002: Move GetDocument method from WebFrame to WebLocalFrame. (Closed)
Patch Set: Split a DCHECK in two as suggested by boliu@. Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 #ifndef CONTENT_SHELL_TEST_RUNNER_ACCESSIBILITY_CONTROLLER_H_ 5 #ifndef CONTENT_SHELL_TEST_RUNNER_ACCESSIBILITY_CONTROLLER_H_
6 #define CONTENT_SHELL_TEST_RUNNER_ACCESSIBILITY_CONTROLLER_H_ 6 #define CONTENT_SHELL_TEST_RUNNER_ACCESSIBILITY_CONTROLLER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 void SetNotificationListener(v8::Local<v8::Function> callback); 43 void SetNotificationListener(v8::Local<v8::Function> callback);
44 void UnsetNotificationListener(); 44 void UnsetNotificationListener();
45 v8::Local<v8::Object> FocusedElement(); 45 v8::Local<v8::Object> FocusedElement();
46 v8::Local<v8::Object> RootElement(); 46 v8::Local<v8::Object> RootElement();
47 v8::Local<v8::Object> AccessibleElementById(const std::string& id); 47 v8::Local<v8::Object> AccessibleElementById(const std::string& id);
48 48
49 v8::Local<v8::Object> FindAccessibleElementByIdRecursive( 49 v8::Local<v8::Object> FindAccessibleElementByIdRecursive(
50 const blink::WebAXObject&, 50 const blink::WebAXObject&,
51 const blink::WebString& id); 51 const blink::WebString& id);
52 52
53 blink::WebAXObject GetAccessibilityObjectForMainFrame();
54
53 // If true, will log all accessibility notifications. 55 // If true, will log all accessibility notifications.
54 bool log_accessibility_events_; 56 bool log_accessibility_events_;
55 57
56 WebAXObjectProxyList elements_; 58 WebAXObjectProxyList elements_;
57 59
58 v8::Persistent<v8::Function> notification_callback_; 60 v8::Persistent<v8::Function> notification_callback_;
59 61
60 blink::WebView* web_view(); 62 blink::WebView* web_view();
61 WebViewTestProxyBase* web_view_test_proxy_base_; 63 WebViewTestProxyBase* web_view_test_proxy_base_;
62 64
63 base::WeakPtrFactory<AccessibilityController> weak_factory_; 65 base::WeakPtrFactory<AccessibilityController> weak_factory_;
64 66
65 DISALLOW_COPY_AND_ASSIGN(AccessibilityController); 67 DISALLOW_COPY_AND_ASSIGN(AccessibilityController);
66 }; 68 };
67 69
68 } // namespace test_runner 70 } // namespace test_runner
69 71
70 #endif // CONTENT_SHELL_TEST_RUNNER_ACCESSIBILITY_CONTROLLER_H_ 72 #endif // CONTENT_SHELL_TEST_RUNNER_ACCESSIBILITY_CONTROLLER_H_
OLDNEW
« no previous file with comments | « content/shell/renderer/layout_test/blink_test_runner.cc ('k') | content/shell/test_runner/accessibility_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698