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