From 1b30f0ee2db26f752a230c9a65c41d42c186e70b Mon Sep 17 00:00:00 2001 From: "ch.dumez@samsung.com" Date: Sat, 24 May 2014 12:47:00 +0000 Subject: [PATCH] Turn on ENABLE_NEW_GAMEPAD_API flag so that the new gamepad code is used Turn on ENABLE_NEW_GAMEPAD_API flag so that the new gamepad code is used. Also remove the old code on Chromium side. The ENABLE_NEW_GAMEPAD_API is only needed until the Blink side #ifdefs are removed. BUG=344556 Review URL: https://codereview.chromium.org/289423004 git-svn-id: http://src.chromium.org/svn/trunk/src/build@272723 4ff67af0-8c30-449e-8e8b-ad334ec8d88c --- common.gypi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/common.gypi b/common.gypi index e081a2f1e..51d3e572e 100644 --- a/common.gypi +++ b/common.gypi @@ -2276,6 +2276,11 @@ # Targets are by default not nacl untrusted code. 'nacl_untrusted_build%': 0, + # Enable a new Gamepad interface. + # TODO(cdumez): This is temporary and should go away once the chromium + # and blink interfaces are in sync, http://crbug.com/344556. + 'enable_new_gamepad_api%': 1, + 'pnacl_compile_flags': [ # pnacl uses the clang compiler so we need to suppress all the # same warnings as we do for clang. @@ -2445,6 +2450,9 @@ ['enable_hidpi==1', { 'defines': ['ENABLE_HIDPI=1'], }], + ['enable_new_gamepad_api==1', { + 'defines': ['ENABLE_NEW_GAMEPAD_API=1'], + }], ['native_discardable_memory==1', { 'defines': ['DISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY'], }],