OLD | NEW |
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 "chrome/test/webdriver/webdriver_key_converter.h" | 5 #include "chrome/test/webdriver/webdriver_key_converter.h" |
6 | 6 |
7 #include "base/format_macros.h" | 7 #include "base/format_macros.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/stringprintf.h" | 9 #include "base/strings/stringprintf.h" |
10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
11 #include "chrome/common/automation_constants.h" | 11 #include "chrome/common/automation_constants.h" |
12 #include "chrome/test/automation/automation_json_requests.h" | 12 #include "chrome/test/automation/automation_json_requests.h" |
13 #include "chrome/test/webdriver/keycode_text_conversion.h" | 13 #include "chrome/test/webdriver/keycode_text_conversion.h" |
14 #include "chrome/test/webdriver/webdriver_logging.h" | 14 #include "chrome/test/webdriver/webdriver_logging.h" |
15 | 15 |
16 namespace { | 16 namespace { |
17 | 17 |
18 struct ModifierMaskAndKeyCode { | 18 struct ModifierMaskAndKeyCode { |
19 int mask; | 19 int mask; |
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
326 CreateKeyUpEvent(kModifiers[i].key_code, sticky_modifiers)); | 326 CreateKeyUpEvent(kModifiers[i].key_code, sticky_modifiers)); |
327 } | 327 } |
328 } | 328 } |
329 } | 329 } |
330 client_key_events->swap(key_events); | 330 client_key_events->swap(key_events); |
331 *modifiers = sticky_modifiers; | 331 *modifiers = sticky_modifiers; |
332 return true; | 332 return true; |
333 } | 333 } |
334 | 334 |
335 } // namespace webdriver | 335 } // namespace webdriver |
OLD | NEW |