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

Unified Diff: ppapi/shared_impl/ppb_gamepad_shared.h

Issue 174213003: PPAPI: Use clang-format on ppapi/shared_impl (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: remove DEPS Created 6 years, 10 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
« no previous file with comments | « ppapi/shared_impl/ppb_device_ref_shared.cc ('k') | ppapi/shared_impl/ppb_gamepad_shared.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/shared_impl/ppb_gamepad_shared.h
diff --git a/ppapi/shared_impl/ppb_gamepad_shared.h b/ppapi/shared_impl/ppb_gamepad_shared.h
index 821980f3aa72ef676d92402cce581d5aa4507438..7bc1e6102e19c9f524899b140704f83fbee28d7c 100644
--- a/ppapi/shared_impl/ppb_gamepad_shared.h
+++ b/ppapi/shared_impl/ppb_gamepad_shared.h
@@ -20,43 +20,43 @@ namespace ppapi {
// This must match the definition of blink::Gamepad. The GamepadHost unit test
// has some compile asserts to validate this.
struct WebKitGamepad {
- static const size_t kIdLengthCap = 128;
- static const size_t kAxesLengthCap = 16;
- static const size_t kButtonsLengthCap = 32;
+ static const size_t kIdLengthCap = 128;
+ static const size_t kAxesLengthCap = 16;
+ static const size_t kButtonsLengthCap = 32;
- // Is there a gamepad connected at this index?
- bool connected;
+ // Is there a gamepad connected at this index?
+ bool connected;
- // Device identifier (based on manufacturer, model, etc.).
- base::char16 id[kIdLengthCap];
+ // Device identifier (based on manufacturer, model, etc.).
+ base::char16 id[kIdLengthCap];
- // Monotonically increasing value referring to when the data were last
- // updated.
- unsigned long long timestamp;
+ // Monotonically increasing value referring to when the data were last
+ // updated.
+ unsigned long long timestamp;
- // Number of valid entries in the axes array.
- unsigned axes_length;
+ // Number of valid entries in the axes array.
+ unsigned axes_length;
- // Normalized values representing axes, in the range [-1..1].
- float axes[kAxesLengthCap];
+ // Normalized values representing axes, in the range [-1..1].
+ float axes[kAxesLengthCap];
- // Number of valid entries in the buttons array.
- unsigned buttons_length;
+ // Number of valid entries in the buttons array.
+ unsigned buttons_length;
- // Normalized values representing buttons, in the range [0..1].
- float buttons[kButtonsLengthCap];
+ // Normalized values representing buttons, in the range [0..1].
+ float buttons[kButtonsLengthCap];
};
// This must match the definition of blink::Gamepads. The GamepadHost unit
// test has some compile asserts to validate this.
struct WebKitGamepads {
- static const size_t kItemsLengthCap = 4;
+ static const size_t kItemsLengthCap = 4;
- // Number of valid entries in the items array.
- unsigned length;
+ // Number of valid entries in the items array.
+ unsigned length;
- // Gamepad data for N separate gamepad devices.
- WebKitGamepad items[kItemsLengthCap];
+ // Gamepad data for N separate gamepad devices.
+ WebKitGamepad items[kItemsLengthCap];
};
// This is the structure store in shared memory. It must match
« no previous file with comments | « ppapi/shared_impl/ppb_device_ref_shared.cc ('k') | ppapi/shared_impl/ppb_gamepad_shared.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698