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

Side by Side Diff: components/test_runner/accessibility_controller.h

Issue 2171503005: Rename WebTestProxy to WebViewTestProxy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressing comments Created 4 years, 5 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
« no previous file with comments | « components/test_runner/BUILD.gn ('k') | components/test_runner/accessibility_controller.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 COMPONENTS_TEST_RUNNER_ACCESSIBILITY_CONTROLLER_H_ 5 #ifndef COMPONENTS_TEST_RUNNER_ACCESSIBILITY_CONTROLLER_H_
6 #define COMPONENTS_TEST_RUNNER_ACCESSIBILITY_CONTROLLER_H_ 6 #define COMPONENTS_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"
11 #include "base/memory/weak_ptr.h" 11 #include "base/memory/weak_ptr.h"
12 #include "components/test_runner/web_ax_object_proxy.h" 12 #include "components/test_runner/web_ax_object_proxy.h"
13 #include "third_party/WebKit/public/web/WebAXObject.h" 13 #include "third_party/WebKit/public/web/WebAXObject.h"
14 #include "v8/include/v8.h" 14 #include "v8/include/v8.h"
15 15
16 namespace blink { 16 namespace blink {
17 class WebLocalFrame; 17 class WebLocalFrame;
18 class WebString; 18 class WebString;
19 class WebView; 19 class WebView;
20 } 20 }
21 21
22 namespace test_runner { 22 namespace test_runner {
23 23
24 class WebTestProxyBase; 24 class WebViewTestProxyBase;
25 25
26 class AccessibilityController { 26 class AccessibilityController {
27 public: 27 public:
28 explicit AccessibilityController(WebTestProxyBase* web_test_proxy_base); 28 explicit AccessibilityController(
29 WebViewTestProxyBase* web_view_test_proxy_base);
29 ~AccessibilityController(); 30 ~AccessibilityController();
30 31
31 void Reset(); 32 void Reset();
32 void Install(blink::WebLocalFrame* frame); 33 void Install(blink::WebLocalFrame* frame);
33 bool ShouldLogAccessibilityEvents(); 34 bool ShouldLogAccessibilityEvents();
34 void NotificationReceived(const blink::WebAXObject& target, 35 void NotificationReceived(const blink::WebAXObject& target,
35 const std::string& notification_name); 36 const std::string& notification_name);
36 37
37 private: 38 private:
38 friend class AccessibilityControllerBindings; 39 friend class AccessibilityControllerBindings;
(...skipping 10 matching lines...) Expand all
49 const blink::WebAXObject&, const blink::WebString& id); 50 const blink::WebAXObject&, const blink::WebString& id);
50 51
51 // If true, will log all accessibility notifications. 52 // If true, will log all accessibility notifications.
52 bool log_accessibility_events_; 53 bool log_accessibility_events_;
53 54
54 WebAXObjectProxyList elements_; 55 WebAXObjectProxyList elements_;
55 56
56 v8::Persistent<v8::Function> notification_callback_; 57 v8::Persistent<v8::Function> notification_callback_;
57 58
58 blink::WebView* web_view(); 59 blink::WebView* web_view();
59 WebTestProxyBase* web_test_proxy_base_; 60 WebViewTestProxyBase* web_view_test_proxy_base_;
60 61
61 base::WeakPtrFactory<AccessibilityController> weak_factory_; 62 base::WeakPtrFactory<AccessibilityController> weak_factory_;
62 63
63 DISALLOW_COPY_AND_ASSIGN(AccessibilityController); 64 DISALLOW_COPY_AND_ASSIGN(AccessibilityController);
64 }; 65 };
65 66
66 } // namespace test_runner 67 } // namespace test_runner
67 68
68 #endif // COMPONENTS_TEST_RUNNER_ACCESSIBILITY_CONTROLLER_H_ 69 #endif // COMPONENTS_TEST_RUNNER_ACCESSIBILITY_CONTROLLER_H_
OLDNEW
« no previous file with comments | « components/test_runner/BUILD.gn ('k') | components/test_runner/accessibility_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698