Chromium Code Reviews (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out

Unified Diff: content/child/

Issue 133943002: Gamepad API support for chrome on android (Closed) Base URL:
Patch Set: Created 6 years, 11 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/child/
diff --git a/content/child/ b/content/child/
index d77679acf6fcfad94435492e46fd9f503946e104..6a8a62904b40e930107ce120ad162d0597f0703a 100644
--- a/content/child/
+++ b/content/child/
@@ -1,4 +1,5 @@
// Copyright 2013 The Chromium Authors. All rights reserved.
+// Copyright (c) 2014, NVIDIA CORPORATION. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -32,8 +33,8 @@ static void SetRuntimeFeatureDefaultsForPlatform() {
media::MediaCodecBridge::IsAvailable() &&
(android_getCpuFamily() == ANDROID_CPU_FAMILY_ARM));
- // Android does not support the Gamepad API.
- WebRuntimeFeatures::enableGamepad(false);
+ // Enable Gamepad at runtime as Android supports the Gamepad API
+ WebRuntimeFeatures::enableGamepad(true);
// Android does not have support for PagePopup
// Android does not yet support the Web Notification API.

Powered by Google App Engine
This is Rietveld 408576698