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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 void NavigationAsync(int handle, const GURL& url, bool* status); | 111 void NavigationAsync(int handle, const GURL& url, bool* status); |
112 void Reload(int handle, IPC::Message* reply_message); | 112 void Reload(int handle, IPC::Message* reply_message); |
113 void GetRedirectsFrom(int tab_handle, | 113 void GetRedirectsFrom(int tab_handle, |
114 const GURL& source_url, | 114 const GURL& source_url, |
115 IPC::Message* reply_message); | 115 IPC::Message* reply_message); |
116 void GetBrowserWindowCount(int* window_count); | 116 void GetBrowserWindowCount(int* window_count); |
117 void GetNormalBrowserWindowCount(int* window_count); | 117 void GetNormalBrowserWindowCount(int* window_count); |
118 // Be aware that the browser window returned might be of non TYPE_TABBED | 118 // Be aware that the browser window returned might be of non TYPE_TABBED |
119 // or in incognito mode. | 119 // or in incognito mode. |
120 void GetBrowserWindow(int index, int* handle); | 120 void GetBrowserWindow(int index, int* handle); |
121 void FindTabbedBrowserWindow(int* handle); | |
122 void ExecuteBrowserCommandAsync(int handle, int command, bool* success); | 121 void ExecuteBrowserCommandAsync(int handle, int command, bool* success); |
123 void ExecuteBrowserCommand(int handle, int command, | 122 void ExecuteBrowserCommand(int handle, int command, |
124 IPC::Message* reply_message); | 123 IPC::Message* reply_message); |
125 void TerminateSession(int handle, bool* success); | 124 void TerminateSession(int handle, bool* success); |
126 void WindowGetViewBounds(int handle, int view_id, bool screen_coordinates, | 125 void WindowGetViewBounds(int handle, int view_id, bool screen_coordinates, |
127 bool* success, gfx::Rect* bounds); | 126 bool* success, gfx::Rect* bounds); |
128 void SetWindowBounds(int handle, const gfx::Rect& bounds, bool* result); | 127 void SetWindowBounds(int handle, const gfx::Rect& bounds, bool* result); |
129 void SetWindowVisible(int handle, bool visible, bool* result); | 128 void SetWindowVisible(int handle, bool visible, bool* result); |
130 void WindowSimulateMouseMove(const IPC::Message& message, | 129 void WindowSimulateMouseMove(const IPC::Message& message, |
131 int handle, | 130 int handle, |
(...skipping 1451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1583 ImportSettingsData import_settings_data_; | 1582 ImportSettingsData import_settings_data_; |
1584 | 1583 |
1585 // The automation event observer queue. It is lazily created when an observer | 1584 // The automation event observer queue. It is lazily created when an observer |
1586 // is added to avoid overhead when not needed. | 1585 // is added to avoid overhead when not needed. |
1587 scoped_ptr<AutomationEventQueue> automation_event_queue_; | 1586 scoped_ptr<AutomationEventQueue> automation_event_queue_; |
1588 | 1587 |
1589 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider); | 1588 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider); |
1590 }; | 1589 }; |
1591 | 1590 |
1592 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ | 1591 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ |
OLD | NEW |