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

Unified Diff: components/test_runner/accessibility_controller.h

Issue 1903043002: Use correct WebView from AccessibilityController. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@event-sender-per-view
Patch Set: Rebasing... Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | components/test_runner/accessibility_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/test_runner/accessibility_controller.h
diff --git a/components/test_runner/accessibility_controller.h b/components/test_runner/accessibility_controller.h
index 376f7b08cd001fea9752dec17d70503d21834ea1..82618fc2241b56e3c0dbb47dfc74098201c68ef7 100644
--- a/components/test_runner/accessibility_controller.h
+++ b/components/test_runner/accessibility_controller.h
@@ -14,30 +14,26 @@
#include "v8/include/v8.h"
namespace blink {
-class WebFrame;
+class WebLocalFrame;
class WebString;
class WebView;
}
namespace test_runner {
-class WebTestDelegate;
+class WebTestProxyBase;
-class AccessibilityController :
- public base::SupportsWeakPtr<AccessibilityController> {
+class AccessibilityController {
public:
- AccessibilityController();
+ explicit AccessibilityController(WebTestProxyBase* web_test_proxy_base);
~AccessibilityController();
void Reset();
- void Install(blink::WebFrame* frame);
+ void Install(blink::WebLocalFrame* frame);
bool ShouldLogAccessibilityEvents();
void NotificationReceived(const blink::WebAXObject& target,
const std::string& notification_name);
- void SetDelegate(WebTestDelegate* delegate);
- void SetWebView(blink::WebView* web_view);
-
private:
friend class AccessibilityControllerBindings;
@@ -59,8 +55,8 @@ class AccessibilityController :
v8::Persistent<v8::Function> notification_callback_;
- WebTestDelegate* delegate_;
- blink::WebView* web_view_;
+ blink::WebView* web_view();
+ WebTestProxyBase* web_test_proxy_base_;
base::WeakPtrFactory<AccessibilityController> weak_factory_;
« no previous file with comments | « no previous file | components/test_runner/accessibility_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698