| Index: content/common/gamepad_user_gesture.h
|
| diff --git a/content/common/gamepad_user_gesture.h b/content/common/gamepad_user_gesture.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..d17c69cf5b62af7452cc47ed76dcde1d655d5cc4
|
| --- /dev/null
|
| +++ b/content/common/gamepad_user_gesture.h
|
| @@ -0,0 +1,20 @@
|
| +// Copyright (c) 2012 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_COMMON_GAMEPAD_USER_GESTURE_H_
|
| +#define CONTENT_COMMON_GAMEPAD_USER_GESTURE_H_
|
| +
|
| +namespace WebKit {
|
| +class WebGamepads;
|
| +}
|
| +
|
| +namespace content {
|
| +
|
| +// Returns true if any of the gamepads have a button pressed that would be
|
| +// considerd a user gesture for interaction.
|
| +bool GamepadsHaveUserGesture(const WebKit::WebGamepads& gamepads);
|
| +
|
| +} // namespace content
|
| +
|
| +#endif // CONTENT_COMMON_GAMEPAD_USER_GESTURE_H_
|
|
|