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

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

Issue 16753002: Use a direct include of strings headers in chrome/test/. (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) 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 "base/format_macros.h" 7 #include "base/format_macros.h"
8 #include "base/stringprintf.h" 8 #include "base/strings/stringprintf.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "chrome/test/chromedriver/chrome/status.h" 10 #include "chrome/test/chromedriver/chrome/status.h"
11 #include "chrome/test/chromedriver/chrome/ui_events.h" 11 #include "chrome/test/chromedriver/chrome/ui_events.h"
12 #include "chrome/test/chromedriver/keycode_text_conversion.h" 12 #include "chrome/test/chromedriver/keycode_text_conversion.h"
13 13
14 namespace { 14 namespace {
15 15
16 struct ModifierMaskAndKeyCode { 16 struct ModifierMaskAndKeyCode {
17 int mask; 17 int mask;
18 ui::KeyboardCode key_code; 18 ui::KeyboardCode key_code;
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 if (necessary_modifiers[i]) { 322 if (necessary_modifiers[i]) {
323 key_events.push_back( 323 key_events.push_back(
324 CreateKeyUpEvent(kModifiers[i].key_code, sticky_modifiers)); 324 CreateKeyUpEvent(kModifiers[i].key_code, sticky_modifiers));
325 } 325 }
326 } 326 }
327 } 327 }
328 client_key_events->swap(key_events); 328 client_key_events->swap(key_events);
329 *modifiers = sticky_modifiers; 329 *modifiers = sticky_modifiers;
330 return Status(kOk); 330 return Status(kOk);
331 } 331 }
OLDNEW
« no previous file with comments | « chrome/test/chromedriver/key_converter.h ('k') | chrome/test/chromedriver/key_converter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698