| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |