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

Unified Diff: content/shell/renderer/webkit_test_runner.cc

Issue 446603002: Refactor code listening to platform events in content/renderer/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@webkitplatform_impl_start_stop
Patch Set: rebase Created 6 years, 4 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 | « content/shell/renderer/webkit_test_runner.h ('k') | content/test/layouttest_support.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/renderer/webkit_test_runner.cc
diff --git a/content/shell/renderer/webkit_test_runner.cc b/content/shell/renderer/webkit_test_runner.cc
index 6a539cfde546b906052b6afb38ea280e643adfe3..5677d2ad08e1d576d941d0cfcc3ccd1b0fbd6595 100644
--- a/content/shell/renderer/webkit_test_runner.cc
+++ b/content/shell/renderer/webkit_test_runner.cc
@@ -25,6 +25,7 @@
#include "content/public/common/web_preferences.h"
#include "content/public/renderer/render_view.h"
#include "content/public/renderer/render_view_visitor.h"
+#include "content/public/renderer/renderer_gamepad_provider.h"
#include "content/public/test/layouttest_support.h"
#include "content/shell/common/shell_messages.h"
#include "content/shell/common/shell_switches.h"
@@ -73,7 +74,6 @@ using blink::WebDeviceMotionData;
using blink::WebDeviceOrientationData;
using blink::WebElement;
using blink::WebLocalFrame;
-using blink::WebGamepads;
using blink::WebHistoryItem;
using blink::WebLocalFrame;
using blink::WebPoint;
@@ -203,8 +203,8 @@ void WebKitTestRunner::setEditCommand(const std::string& name,
}
void WebKitTestRunner::setGamepadProvider(
- RendererGamepadProvider* provider) {
- SetMockGamepadProvider(provider);
+ scoped_ptr<RendererGamepadProvider> provider) {
+ SetMockGamepadProvider(provider.Pass());
}
void WebKitTestRunner::setDeviceLightData(const double data) {
« no previous file with comments | « content/shell/renderer/webkit_test_runner.h ('k') | content/test/layouttest_support.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698