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

Side by Side Diff: content/browser/gamepad/canonical_button_index_list.h

Issue 617103007: Revert of Revert of Use the new java_cpp_enum rule in content. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // This file intentionally does not have header guards, it's included
6 // inside a macro to generate enum values.
7 // This defines the canonical button mapping order for gamepad-like devices.
8
9 // TODO(SaurabhK): Consolidate with CanonicalButtonIndex enum in
10 // gamepad_standard_mappings.h, crbug.com/351558.
11 CANONICAL_BUTTON_INDEX(BUTTON_PRIMARY, 0)
12 CANONICAL_BUTTON_INDEX(BUTTON_SECONDARY, 1)
13 CANONICAL_BUTTON_INDEX(BUTTON_TERTIARY, 2)
14 CANONICAL_BUTTON_INDEX(BUTTON_QUATERNARY, 3)
15 CANONICAL_BUTTON_INDEX(BUTTON_LEFT_SHOULDER, 4)
16 CANONICAL_BUTTON_INDEX(BUTTON_RIGHT_SHOULDER, 5)
17 CANONICAL_BUTTON_INDEX(BUTTON_LEFT_TRIGGER, 6)
18 CANONICAL_BUTTON_INDEX(BUTTON_RIGHT_TRIGGER, 7)
19 CANONICAL_BUTTON_INDEX(BUTTON_BACK_SELECT, 8)
20 CANONICAL_BUTTON_INDEX(BUTTON_START, 9)
21 CANONICAL_BUTTON_INDEX(BUTTON_LEFT_THUMBSTICK, 10)
22 CANONICAL_BUTTON_INDEX(BUTTON_RIGHT_THUMBSTICK, 11)
23 CANONICAL_BUTTON_INDEX(BUTTON_DPAD_UP, 12)
24 CANONICAL_BUTTON_INDEX(BUTTON_DPAD_DOWN, 13)
25 CANONICAL_BUTTON_INDEX(BUTTON_DPAD_LEFT, 14)
26 CANONICAL_BUTTON_INDEX(BUTTON_DPAD_RIGHT, 15)
27 CANONICAL_BUTTON_INDEX(BUTTON_META, 16)
28 CANONICAL_BUTTON_INDEX(NUM_CANONICAL_BUTTONS, 17)
OLDNEW
« no previous file with comments | « content/browser/gamepad/canonical_axis_index_list.h ('k') | content/browser/gamepad/gamepad_standard_mappings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698