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 #ifndef CHROME_TEST_WEBDRIVER_WEBDRIVER_KEY_CONVERTER_H_ | 5 #ifndef CHROME_TEST_WEBDRIVER_WEBDRIVER_KEY_CONVERTER_H_ |
6 #define CHROME_TEST_WEBDRIVER_WEBDRIVER_KEY_CONVERTER_H_ | 6 #define CHROME_TEST_WEBDRIVER_WEBDRIVER_KEY_CONVERTER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/string16.h" | 11 #include "base/strings/string16.h" |
12 #include "chrome/test/webdriver/webdriver_automation.h" | 12 #include "chrome/test/webdriver/webdriver_automation.h" |
13 #include "ui/base/keycodes/keyboard_codes.h" | 13 #include "ui/base/keycodes/keyboard_codes.h" |
14 | 14 |
15 namespace webdriver { | 15 namespace webdriver { |
16 | 16 |
17 class Logger; | 17 class Logger; |
18 | 18 |
19 // Convenience functions for creating |WebKeyEvent|s. Used by unittests. | 19 // Convenience functions for creating |WebKeyEvent|s. Used by unittests. |
20 WebKeyEvent CreateKeyDownEvent(ui::KeyboardCode key_code, int modifiers); | 20 WebKeyEvent CreateKeyDownEvent(ui::KeyboardCode key_code, int modifiers); |
21 WebKeyEvent CreateKeyUpEvent(ui::KeyboardCode key_code, int modifiers); | 21 WebKeyEvent CreateKeyUpEvent(ui::KeyboardCode key_code, int modifiers); |
(...skipping 10 matching lines...) Expand all Loading... |
32 bool ConvertKeysToWebKeyEvents(const string16& keys, | 32 bool ConvertKeysToWebKeyEvents(const string16& keys, |
33 const Logger& logger, | 33 const Logger& logger, |
34 bool release_modifiers, | 34 bool release_modifiers, |
35 int* modifiers, | 35 int* modifiers, |
36 std::vector<WebKeyEvent>* key_events, | 36 std::vector<WebKeyEvent>* key_events, |
37 std::string* error_msg); | 37 std::string* error_msg); |
38 | 38 |
39 } // namespace webdriver | 39 } // namespace webdriver |
40 | 40 |
41 #endif // CHROME_TEST_WEBDRIVER_WEBDRIVER_KEY_CONVERTER_H_ | 41 #endif // CHROME_TEST_WEBDRIVER_WEBDRIVER_KEY_CONVERTER_H_ |
OLD | NEW |