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

Side by Side Diff: content/shell/renderer/layout_test/blink_test_runner.cc

Issue 2808093006: [Device Service] Move Gamepad Blink headers to be part of the Gamepad client library (Closed)
Patch Set: rebase and address comments Created 3 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 unified diff | Download patch
« no previous file with comments | « content/renderer/renderer_blink_platform_impl.cc ('k') | content/shell/test_runner/BUILD.gn » ('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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "content/shell/renderer/layout_test/blink_test_runner.h" 5 #include "content/shell/renderer/layout_test/blink_test_runner.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <clocale> 10 #include <clocale>
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 154
155 class MockGamepadProvider : public RendererGamepadProvider { 155 class MockGamepadProvider : public RendererGamepadProvider {
156 public: 156 public:
157 explicit MockGamepadProvider(test_runner::GamepadController* controller) 157 explicit MockGamepadProvider(test_runner::GamepadController* controller)
158 : RendererGamepadProvider(nullptr), controller_(controller) {} 158 : RendererGamepadProvider(nullptr), controller_(controller) {}
159 ~MockGamepadProvider() override { 159 ~MockGamepadProvider() override {
160 StopIfObserving(); 160 StopIfObserving();
161 } 161 }
162 162
163 // RendererGamepadProvider implementation. 163 // RendererGamepadProvider implementation.
164 void SampleGamepads(blink::WebGamepads& gamepads) override { 164 void SampleGamepads(device::Gamepads& gamepads) override {
165 controller_->SampleGamepads(gamepads); 165 controller_->SampleGamepads(gamepads);
166 } 166 }
167 void Start(blink::WebPlatformEventListener* listener) override { 167 void Start(blink::WebPlatformEventListener* listener) override {
168 controller_->SetListener(static_cast<blink::WebGamepadListener*>(listener)); 168 controller_->SetListener(static_cast<blink::WebGamepadListener*>(listener));
169 RendererGamepadProvider::Start(listener); 169 RendererGamepadProvider::Start(listener);
170 } 170 }
171 void SendStartMessage() override {} 171 void SendStartMessage() override {}
172 void SendStopMessage() override {} 172 void SendStopMessage() override {}
173 173
174 private: 174 private:
(...skipping 883 matching lines...) Expand 10 before | Expand all | Expand 10 after
1058 void BlinkTestRunner::ReportLeakDetectionResult( 1058 void BlinkTestRunner::ReportLeakDetectionResult(
1059 const LeakDetectionResult& report) { 1059 const LeakDetectionResult& report) {
1060 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); 1060 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report));
1061 } 1061 }
1062 1062
1063 void BlinkTestRunner::OnDestruct() { 1063 void BlinkTestRunner::OnDestruct() {
1064 delete this; 1064 delete this;
1065 } 1065 }
1066 1066
1067 } // namespace content 1067 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/renderer_blink_platform_impl.cc ('k') | content/shell/test_runner/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698