| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_FRAME_TEST_SIMULATE_INPUT_H_ | 5 #ifndef CHROME_FRAME_TEST_SIMULATE_INPUT_H_ |
| 6 #define CHROME_FRAME_TEST_SIMULATE_INPUT_H_ | 6 #define CHROME_FRAME_TEST_SIMULATE_INPUT_H_ |
| 7 | 7 |
| 8 #include <windows.h> | 8 #include <windows.h> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/process_util.h" | 12 #include "base/process/process_handle.h" |
| 13 | 13 |
| 14 namespace simulate_input { | 14 namespace simulate_input { |
| 15 | 15 |
| 16 enum Modifier { | 16 enum Modifier { |
| 17 NONE, | 17 NONE, |
| 18 SHIFT = 1, | 18 SHIFT = 1, |
| 19 CONTROL = 2, | 19 CONTROL = 2, |
| 20 ALT = 4 | 20 ALT = 4 |
| 21 }; | 21 }; |
| 22 | 22 |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 | 64 |
| 65 // Iterates through all the characters in the string and simulates | 65 // Iterates through all the characters in the string and simulates |
| 66 // keyboard input. The input goes to the currently active application. | 66 // keyboard input. The input goes to the currently active application. |
| 67 void SendStringW(const std::wstring& s); | 67 void SendStringW(const std::wstring& s); |
| 68 void SendStringA(const std::string& s); | 68 void SendStringA(const std::string& s); |
| 69 | 69 |
| 70 } // end namespace simulate_input | 70 } // end namespace simulate_input |
| 71 | 71 |
| 72 #endif // CHROME_FRAME_TEST_SIMULATE_INPUT_H_ | 72 #endif // CHROME_FRAME_TEST_SIMULATE_INPUT_H_ |
| 73 | 73 |
| OLD | NEW |