OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ | 5 #ifndef CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ |
6 #define CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ | 6 #define CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 17 matching lines...) Expand all Loading... |
28 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" | 28 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" |
29 | 29 |
30 #if defined(OS_CHROMEOS) | 30 #if defined(OS_CHROMEOS) |
31 // TODO(sque): move to a ChromeOS-specific class. See crosbug.com/22081. | 31 // TODO(sque): move to a ChromeOS-specific class. See crosbug.com/22081. |
32 class PowerManagerClientObserverForTesting; | 32 class PowerManagerClientObserverForTesting; |
33 #endif // defined(OS_CHROMEOS) | 33 #endif // defined(OS_CHROMEOS) |
34 | 34 |
35 class AutofillProfile; | 35 class AutofillProfile; |
36 class CreditCard; | 36 class CreditCard; |
37 class ImporterList; | 37 class ImporterList; |
38 struct NativeWebKeyboardEvent; | |
39 | 38 |
40 namespace base { | 39 namespace base { |
41 class DictionaryValue; | 40 class DictionaryValue; |
42 } | 41 } |
43 | 42 |
44 namespace content { | 43 namespace content { |
45 class RenderViewHost; | 44 class RenderViewHost; |
| 45 struct NativeWebKeyboardEvent; |
46 } | 46 } |
47 | 47 |
48 namespace gfx { | 48 namespace gfx { |
49 class Rect; | 49 class Rect; |
50 } | 50 } |
51 | 51 |
52 namespace webkit { | 52 namespace webkit { |
53 struct WebPluginInfo; | 53 struct WebPluginInfo; |
54 } | 54 } |
55 | 55 |
(...skipping 692 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
748 // RenderProcessHost receives notification of its closing. | 748 // RenderProcessHost receives notification of its closing. |
749 void KillRendererProcess(Browser* browser, | 749 void KillRendererProcess(Browser* browser, |
750 base::DictionaryValue* args, | 750 base::DictionaryValue* args, |
751 IPC::Message* reply_message); | 751 IPC::Message* reply_message); |
752 | 752 |
753 // Populates the fields of the event parameter with what is found in the | 753 // Populates the fields of the event parameter with what is found in the |
754 // args parameter. Upon failure, returns false and puts the error message in | 754 // args parameter. Upon failure, returns false and puts the error message in |
755 // the error parameter, otherwise returns true. | 755 // the error parameter, otherwise returns true. |
756 bool BuildWebKeyEventFromArgs(base::DictionaryValue* args, | 756 bool BuildWebKeyEventFromArgs(base::DictionaryValue* args, |
757 std::string* error, | 757 std::string* error, |
758 NativeWebKeyboardEvent* event); | 758 content::NativeWebKeyboardEvent* event); |
759 | 759 |
760 // Populates the fields of the event parameter with default data, except for | 760 // Populates the fields of the event parameter with default data, except for |
761 // the specified key type and key code. | 761 // the specified key type and key code. |
762 void BuildSimpleWebKeyEvent(WebKit::WebInputEvent::Type type, | 762 void BuildSimpleWebKeyEvent(WebKit::WebInputEvent::Type type, |
763 int windows_key_code, | 763 int windows_key_code, |
764 NativeWebKeyboardEvent* event); | 764 content::NativeWebKeyboardEvent* event); |
765 | 765 |
766 // Sends a key press event using the given key code to the specified tab. | 766 // Sends a key press event using the given key code to the specified tab. |
767 // A key press is a combination of a "key down" event and a "key up" event. | 767 // A key press is a combination of a "key down" event and a "key up" event. |
768 // This function does not wait before returning. | 768 // This function does not wait before returning. |
769 void SendWebKeyPressEventAsync(int key_code, | 769 void SendWebKeyPressEventAsync(int key_code, |
770 content::WebContents* web_contents); | 770 content::WebContents* web_contents); |
771 | 771 |
772 // Launches the specified app from the currently-selected tab. | 772 // Launches the specified app from the currently-selected tab. |
773 void LaunchApp(Browser* browser, | 773 void LaunchApp(Browser* browser, |
774 base::DictionaryValue* args, | 774 base::DictionaryValue* args, |
(...skipping 722 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1497 ImportSettingsData import_settings_data_; | 1497 ImportSettingsData import_settings_data_; |
1498 | 1498 |
1499 // The automation event observer queue. It is lazily created when an observer | 1499 // The automation event observer queue. It is lazily created when an observer |
1500 // is added to avoid overhead when not needed. | 1500 // is added to avoid overhead when not needed. |
1501 scoped_ptr<AutomationEventQueue> automation_event_queue_; | 1501 scoped_ptr<AutomationEventQueue> automation_event_queue_; |
1502 | 1502 |
1503 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider); | 1503 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider); |
1504 }; | 1504 }; |
1505 | 1505 |
1506 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ | 1506 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ |
OLD | NEW |