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_AUTOMATION_H_ | 5 #ifndef CHROME_TEST_WEBDRIVER_AUTOMATION_H_ |
6 #define CHROME_TEST_WEBDRIVER_AUTOMATION_H_ | 6 #define CHROME_TEST_WEBDRIVER_AUTOMATION_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/file_path.h" | 12 #include "base/file_path.h" |
13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
15 #include "base/task.h" | 15 #include "base/task.h" |
16 #include "chrome/common/automation_constants.h" | 16 #include "chrome/common/automation_constants.h" |
17 #include "ui/base/keycodes/keyboard_codes.h" | 17 #include "ui/base/keycodes/keyboard_codes.h" |
18 | 18 |
19 class AutomationProxy; | 19 class AutomationProxy; |
20 class CommandLine; | 20 class CommandLine; |
21 class DictionaryValue; | |
22 class FilePath; | 21 class FilePath; |
23 class GURL; | 22 class GURL; |
24 class ListValue; | |
25 class ProxyLauncher; | 23 class ProxyLauncher; |
26 struct WebKeyEvent; | 24 struct WebKeyEvent; |
27 | 25 |
| 26 namespace base { |
| 27 class DictionaryValue; |
| 28 class ListValue; |
| 29 } |
| 30 |
28 namespace gfx { | 31 namespace gfx { |
29 class Point; | 32 class Point; |
30 } | 33 } |
31 | 34 |
| 35 using base::DictionaryValue; |
| 36 using base::ListValue; |
| 37 |
32 namespace webdriver { | 38 namespace webdriver { |
33 | 39 |
34 class Error; | 40 class Error; |
35 class FramePath; | 41 class FramePath; |
36 | 42 |
37 // Creates and controls the Chrome instance. | 43 // Creates and controls the Chrome instance. |
38 // This class should be created and accessed on a single thread. | 44 // This class should be created and accessed on a single thread. |
39 // Note: All member functions are void because they are invoked | 45 // Note: All member functions are void because they are invoked |
40 // by posting a task from NewRunnableMethod. | 46 // by posting a task from NewRunnableMethod. |
41 class Automation { | 47 class Automation { |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 scoped_ptr<ProxyLauncher> launcher_; | 171 scoped_ptr<ProxyLauncher> launcher_; |
166 | 172 |
167 DISALLOW_COPY_AND_ASSIGN(Automation); | 173 DISALLOW_COPY_AND_ASSIGN(Automation); |
168 }; | 174 }; |
169 | 175 |
170 } // namespace webdriver | 176 } // namespace webdriver |
171 | 177 |
172 DISABLE_RUNNABLE_METHOD_REFCOUNT(webdriver::Automation); | 178 DISABLE_RUNNABLE_METHOD_REFCOUNT(webdriver::Automation); |
173 | 179 |
174 #endif // CHROME_TEST_WEBDRIVER_AUTOMATION_H_ | 180 #endif // CHROME_TEST_WEBDRIVER_AUTOMATION_H_ |
OLD | NEW |