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

Unified Diff: content/public/renderer/renderer_gamepad_provider.h

Issue 304403002: Gamepad: add test support for page visibility behavior (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: trivial rebase Created 6 years, 6 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/public/renderer/renderer_gamepad_provider.h
diff --git a/content/public/renderer/renderer_gamepad_provider.h b/content/public/renderer/renderer_gamepad_provider.h
new file mode 100644
index 0000000000000000000000000000000000000000..da6316dce5a84d5d960603f1fb5e6a7228b6eb4d
--- /dev/null
+++ b/content/public/renderer/renderer_gamepad_provider.h
@@ -0,0 +1,25 @@
+// Copyright (c) 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_GAMEPAD_RENDERER_PROVIDER_H_
+#define CONTENT_GAMEPAD_RENDERER_PROVIDER_H_
+
+namespace blink {
+class WebGamepadListener;
+class WebGamepads;
+}
+
+namespace content {
+
+class RendererGamepadProvider {
+ public:
+ virtual void SampleGamepads(blink::WebGamepads& gamepads) = 0;
+ virtual void SetGamepadListener(blink::WebGamepadListener*) = 0;
jam 2014/06/18 23:23:42 nit: name the parameter. also add comment for meth
+ protected:
+ virtual ~RendererGamepadProvider() {}
+};
+
+} // namespace content
+
+#endif
« no previous file with comments | « no previous file | content/public/test/layouttest_support.h » ('j') | content/renderer/gamepad_shared_memory_reader.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698