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

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

Issue 63253002: Rename WebKit namespace to blink (part 3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_GAMEPAD_GAMEPAD_STANDARD_MAPPINGS_H_ 5 #ifndef CONTENT_BROWSER_GAMEPAD_GAMEPAD_STANDARD_MAPPINGS_H_
6 #define CONTENT_BROWSER_GAMEPAD_GAMEPAD_STANDARD_MAPPINGS_H_ 6 #define CONTENT_BROWSER_GAMEPAD_GAMEPAD_STANDARD_MAPPINGS_H_
7 7
8 #include "base/strings/string_piece.h" 8 #include "base/strings/string_piece.h"
9 9
10 namespace WebKit { 10 namespace blink {
11 class WebGamepad; 11 class WebGamepad;
12 } 12 }
13 13
14 namespace content { 14 namespace content {
15 15
16 typedef void (*GamepadStandardMappingFunction)( 16 typedef void (*GamepadStandardMappingFunction)(
17 const WebKit::WebGamepad& original, 17 const blink::WebGamepad& original,
18 WebKit::WebGamepad* mapped); 18 blink::WebGamepad* mapped);
19 19
20 GamepadStandardMappingFunction GetGamepadStandardMappingFunction( 20 GamepadStandardMappingFunction GetGamepadStandardMappingFunction(
21 const base::StringPiece& vendor_id, 21 const base::StringPiece& vendor_id,
22 const base::StringPiece& product_id); 22 const base::StringPiece& product_id);
23 23
24 // This defines our canonical mapping order for gamepad-like devices. If these 24 // This defines our canonical mapping order for gamepad-like devices. If these
25 // items cannot all be satisfied, it is a case-by-case judgement as to whether 25 // items cannot all be satisfied, it is a case-by-case judgement as to whether
26 // it is better to leave the device unmapped, or to partially map it. In 26 // it is better to leave the device unmapped, or to partially map it. In
27 // general, err towards leaving it *unmapped* so that content can handle 27 // general, err towards leaving it *unmapped* so that content can handle
28 // appropriately. 28 // appropriately.
(...skipping 23 matching lines...) Expand all
52 kAxisLeftStickX, 52 kAxisLeftStickX,
53 kAxisLeftStickY, 53 kAxisLeftStickY,
54 kAxisRightStickX, 54 kAxisRightStickX,
55 kAxisRightStickY, 55 kAxisRightStickY,
56 kNumAxes 56 kNumAxes
57 }; 57 };
58 58
59 } // namespace content 59 } // namespace content
60 60
61 #endif // CONTENT_BROWSER_GAMEPAD_GAMEPAD_STANDARD_MAPPINGS_H_ 61 #endif // CONTENT_BROWSER_GAMEPAD_GAMEPAD_STANDARD_MAPPINGS_H_
OLDNEW
« no previous file with comments | « content/browser/gamepad/gamepad_provider_unittest.cc ('k') | content/browser/gamepad/gamepad_standard_mappings_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698