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

Unified Diff: content/shell/renderer/test_runner/WebTestProxy.cpp

Issue 172263002: Move WebAXObjectProxy and AccessibleController from CppBoundClass to gin::Wrappable (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: (rebasing) Created 6 years, 10 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
Index: content/shell/renderer/test_runner/WebTestProxy.cpp
diff --git a/content/shell/renderer/test_runner/WebTestProxy.cpp b/content/shell/renderer/test_runner/WebTestProxy.cpp
index 49e913cbf9b7436be0a9f8c95ebf982fab921196..2948c77fa6c1cf0d9986116d27bc24a0fdf0da3d 100644
--- a/content/shell/renderer/test_runner/WebTestProxy.cpp
+++ b/content/shell/renderer/test_runner/WebTestProxy.cpp
@@ -6,7 +6,6 @@
#include <cctype>
-#include "content/shell/renderer/test_runner/AccessibilityController.h"
#include "content/shell/renderer/test_runner/EventSender.h"
#include "content/shell/renderer/test_runner/MockColorChooser.h"
#include "content/shell/renderer/test_runner/MockWebSpeechInputController.h"
@@ -20,6 +19,7 @@
#include "content/shell/renderer/test_runner/WebTestInterfaces.h"
#include "content/shell/renderer/test_runner/WebTestRunner.h"
#include "content/shell/renderer/test_runner/WebUserMediaClientMock.h"
+#include "content/shell/renderer/test_runner/accessibility_controller.h"
// FIXME: Including platform_canvas.h here is a layering violation.
#include "skia/ext/platform_canvas.h"
#include "third_party/WebKit/public/platform/WebCString.h"
@@ -759,7 +759,7 @@ void WebTestProxyBase::didAutoResize(const WebSize&)
void WebTestProxyBase::postAccessibilityEvent(const blink::WebAXObject& obj, blink::WebAXEvent event)
{
if (event == blink::WebAXEventFocus)
- m_testInterfaces->accessibilityController()->setFocusedElement(obj);
+ m_testInterfaces->accessibilityController()->SetFocusedElement(obj);
const char* eventName = 0;
switch (event) {
@@ -849,9 +849,9 @@ void WebTestProxyBase::postAccessibilityEvent(const blink::WebAXObject& obj, bli
break;
}
- m_testInterfaces->accessibilityController()->notificationReceived(obj, eventName);
+ m_testInterfaces->accessibilityController()->NotificationReceived(obj, eventName);
- if (m_testInterfaces->accessibilityController()->shouldLogAccessibilityEvents()) {
+ if (m_testInterfaces->accessibilityController()->ShouldLogAccessibilityEvents()) {
string message("AccessibilityNotification - ");
message += eventName;

Powered by Google App Engine
This is Rietveld 408576698