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 #include "chrome_frame/test/chrome_frame_test_utils.h" | 5 #include "chrome_frame/test/chrome_frame_test_utils.h" |
6 | 6 |
7 #include <atlbase.h> | 7 #include <atlbase.h> |
8 #include <atlwin.h> | 8 #include <atlwin.h> |
9 #include <iepmapi.h> | 9 #include <iepmapi.h> |
10 #include <sddl.h> | 10 #include <sddl.h> |
(...skipping 874 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
885 // the profile directory accordingly. | 885 // the profile directory accordingly. |
886 if (GetInstalledIEVersion() == IE_8) { | 886 if (GetInstalledIEVersion() == IE_8) { |
887 profile_path = GetProfilePath(kIEProfileName); | 887 profile_path = GetProfilePath(kIEProfileName); |
888 } else { | 888 } else { |
889 profile_path = GetIETemporaryFilesFolder(); | 889 profile_path = GetIETemporaryFilesFolder(); |
890 profile_path = profile_path.Append(L"Google Chrome Frame"); | 890 profile_path = profile_path.Append(L"Google Chrome Frame"); |
891 } | 891 } |
892 return profile_path; | 892 return profile_path; |
893 } | 893 } |
894 | 894 |
| 895 void DelaySendExtendedKeysEnter(TimedMsgLoop* loop, int delay, char c, |
| 896 int repeat, simulate_input::Modifier mod) { |
| 897 const unsigned int kInterval = 25; |
| 898 unsigned int next_delay = delay; |
| 899 for (int i = 0; i < repeat; i++) { |
| 900 loop->PostDelayedTask(FROM_HERE, NewRunnableFunction( |
| 901 simulate_input::SendExtendedKey, c, mod), next_delay); |
| 902 next_delay += kInterval; |
| 903 } |
| 904 |
| 905 loop->PostDelayedTask(FROM_HERE, NewRunnableFunction( |
| 906 simulate_input::SendCharA, VK_RETURN, simulate_input::NONE), next_delay); |
| 907 } |
| 908 |
895 } // namespace chrome_frame_test | 909 } // namespace chrome_frame_test |
OLD | NEW |