OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/utf_string_conversions.h" | 7 #include "base/utf_string_conversions.h" |
8 #include "chrome/common/automation_constants.h" | 8 #include "chrome/common/automation_constants.h" |
| 9 #include "chrome/test/automation/automation_json_requests.h" |
9 #include "chrome/test/webdriver/keycode_text_conversion.h" | 10 #include "chrome/test/webdriver/keycode_text_conversion.h" |
10 | 11 |
11 namespace { | 12 namespace { |
12 | 13 |
13 // TODO(kkania): Use this in KeyMap. | 14 // TODO(kkania): Use this in KeyMap. |
14 // Ordered list of all the key codes corresponding to special WebDriver keys. | 15 // Ordered list of all the key codes corresponding to special WebDriver keys. |
15 // These WebDriver keys are defined in the Unicode Private Use Area. | 16 // These WebDriver keys are defined in the Unicode Private Use Area. |
16 // http://code.google.com/p/selenium/wiki/JsonWireProtocol#/session/:sessionId/e
lement/:id/value | 17 // http://code.google.com/p/selenium/wiki/JsonWireProtocol#/session/:sessionId/e
lement/:id/value |
17 const ui::KeyboardCode kSpecialWebDriverKeys[] = { | 18 const ui::KeyboardCode kSpecialWebDriverKeys[] = { |
18 ui::VKEY_UNKNOWN, | 19 ui::VKEY_UNKNOWN, |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 key_events->push_back(CreateKeyUpEvent(key_code, all_modifiers)); | 230 key_events->push_back(CreateKeyUpEvent(key_code, all_modifiers)); |
230 | 231 |
231 if (need_shift_key) { | 232 if (need_shift_key) { |
232 key_events->push_back( | 233 key_events->push_back( |
233 CreateKeyUpEvent(ui::VKEY_SHIFT, sticky_modifiers)); | 234 CreateKeyUpEvent(ui::VKEY_SHIFT, sticky_modifiers)); |
234 } | 235 } |
235 } | 236 } |
236 } | 237 } |
237 | 238 |
238 } // namespace webdriver | 239 } // namespace webdriver |
OLD | NEW |