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

Side by Side Diff: chrome/test/chromedriver/key_converter.cc

Issue 1548153002: Switch to standard integer types in chrome/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 "chrome/test/chromedriver/key_converter.h" 5 #include "chrome/test/chromedriver/key_converter.h"
6 6
7 #include <stddef.h>
8
7 #include "base/format_macros.h" 9 #include "base/format_macros.h"
10 #include "base/macros.h"
8 #include "base/strings/stringprintf.h" 11 #include "base/strings/stringprintf.h"
9 #include "base/strings/utf_string_conversions.h" 12 #include "base/strings/utf_string_conversions.h"
10 #include "chrome/test/chromedriver/chrome/status.h" 13 #include "chrome/test/chromedriver/chrome/status.h"
11 #include "chrome/test/chromedriver/chrome/ui_events.h" 14 #include "chrome/test/chromedriver/chrome/ui_events.h"
12 #include "chrome/test/chromedriver/keycode_text_conversion.h" 15 #include "chrome/test/chromedriver/keycode_text_conversion.h"
13 16
14 namespace { 17 namespace {
15 18
16 struct ModifierMaskAndKeyCode { 19 struct ModifierMaskAndKeyCode {
17 int mask; 20 int mask;
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 if (necessary_modifiers[i]) { 335 if (necessary_modifiers[i]) {
333 key_events.push_back( 336 key_events.push_back(
334 CreateKeyUpEvent(kModifiers[i].key_code, sticky_modifiers)); 337 CreateKeyUpEvent(kModifiers[i].key_code, sticky_modifiers));
335 } 338 }
336 } 339 }
337 } 340 }
338 client_key_events->swap(key_events); 341 client_key_events->swap(key_events);
339 *modifiers = sticky_modifiers; 342 *modifiers = sticky_modifiers;
340 return Status(kOk); 343 return Status(kOk);
341 } 344 }
OLDNEW
« no previous file with comments | « chrome/test/chromedriver/element_commands.cc ('k') | chrome/test/chromedriver/key_converter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698