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

Side by Side Diff: content/browser/gamepad/gamepad_platform_data_fetcher_mac.mm

Issue 16755004: Use a direct include of strings headers in content/browser/, part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 | 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 #include "content/browser/gamepad/gamepad_platform_data_fetcher_mac.h" 5 #include "content/browser/gamepad/gamepad_platform_data_fetcher_mac.h"
6 6
7 #include "base/mac/foundation_util.h" 7 #include "base/mac/foundation_util.h"
8 #include "base/memory/scoped_nsobject.h" 8 #include "base/memory/scoped_nsobject.h"
9 #include "base/string16.h" 9 #include "base/strings/string16.h"
10 #include "base/string_util.h" 10 #include "base/strings/string_util.h"
11 #include "base/strings/utf_string_conversions.h" 11 #include "base/strings/utf_string_conversions.h"
12 #include "base/time.h" 12 #include "base/time.h"
13 13
14 #include <IOKit/hid/IOHIDKeys.h> 14 #include <IOKit/hid/IOHIDKeys.h>
15 #import <Foundation/Foundation.h> 15 #import <Foundation/Foundation.h>
16 16
17 using WebKit::WebGamepad; 17 using WebKit::WebGamepad;
18 using WebKit::WebGamepads; 18 using WebKit::WebGamepads;
19 19
20 namespace content { 20 namespace content {
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after
432 pads->length = WebGamepads::itemsLengthCap; 432 pads->length = WebGamepads::itemsLengthCap;
433 for (size_t i = 0; i < WebGamepads::itemsLengthCap; ++i) { 433 for (size_t i = 0; i < WebGamepads::itemsLengthCap; ++i) {
434 if (!associated_[i].is_xbox && associated_[i].hid.mapper) 434 if (!associated_[i].is_xbox && associated_[i].hid.mapper)
435 associated_[i].hid.mapper(data_.items[i], &pads->items[i]); 435 associated_[i].hid.mapper(data_.items[i], &pads->items[i]);
436 else 436 else
437 pads->items[i] = data_.items[i]; 437 pads->items[i] = data_.items[i];
438 } 438 }
439 } 439 }
440 440
441 } // namespace content 441 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698