Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(257)

Side by Side Diff: chrome/browser/automation/automation_provider.h

Issue 211033: Automated ui test porting + cleanup:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: all green\! Created 11 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 // This implements a browser-side endpoint for UI automation activity. 5 // This implements a browser-side endpoint for UI automation activity.
6 // The client-side endpoint is implemented by AutomationProxy. 6 // The client-side endpoint is implemented by AutomationProxy.
7 // The entire lifetime of this object should be contained within that of 7 // The entire lifetime of this object should be contained within that of
8 // the BrowserProcess, and in particular the NotificationService that's 8 // the BrowserProcess, and in particular the NotificationService that's
9 // hung off of it. 9 // hung off of it.
10 10
(...skipping 18 matching lines...) Expand all
29 #include "chrome/test/automation/automation_constants.h" 29 #include "chrome/test/automation/automation_constants.h"
30 #include "ipc/ipc_message.h" 30 #include "ipc/ipc_message.h"
31 #include "ipc/ipc_channel.h" 31 #include "ipc/ipc_channel.h"
32 #if defined(OS_WIN) 32 #if defined(OS_WIN)
33 #include "views/event.h" 33 #include "views/event.h"
34 #endif // defined(OS_WIN) 34 #endif // defined(OS_WIN)
35 35
36 struct AutomationMsg_Find_Params; 36 struct AutomationMsg_Find_Params;
37 37
38 namespace IPC { 38 namespace IPC {
39 struct Reposition_Params;
40 struct ExternalTabSettings; 39 struct ExternalTabSettings;
41 } 40 }
42 41
43 class LoginHandler; 42 class LoginHandler;
44 class NavigationControllerRestoredObserver; 43 class NavigationControllerRestoredObserver;
45 class ExternalTabContainer; 44 class ExternalTabContainer;
46 class ExtensionPortContainer; 45 class ExtensionPortContainer;
47 struct AutocompleteMatchData; 46 struct AutocompleteMatchData;
48 47
49 namespace gfx { 48 namespace gfx {
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 void GetBrowserLocale(string16* locale); 149 void GetBrowserLocale(string16* locale);
151 void GetNormalBrowserWindowCount(int* window_count); 150 void GetNormalBrowserWindowCount(int* window_count);
152 void GetShowingAppModalDialog(bool* showing_dialog, int* dialog_button); 151 void GetShowingAppModalDialog(bool* showing_dialog, int* dialog_button);
153 void ClickAppModalDialogButton(int button, bool* success); 152 void ClickAppModalDialogButton(int button, bool* success);
154 // Be aware that the browser window returned might be of non TYPE_NORMAL 153 // Be aware that the browser window returned might be of non TYPE_NORMAL
155 // or in incognito mode. 154 // or in incognito mode.
156 void GetBrowserWindow(int index, int* handle); 155 void GetBrowserWindow(int index, int* handle);
157 void FindNormalBrowserWindow(int* handle); 156 void FindNormalBrowserWindow(int* handle);
158 void GetLastActiveBrowserWindow(int* handle); 157 void GetLastActiveBrowserWindow(int* handle);
159 void GetActiveWindow(int* handle); 158 void GetActiveWindow(int* handle);
160 #if defined(OS_WIN)
161 // TODO(port): Replace HWND.
162 void GetWindowHWND(int handle, HWND* win32_handle);
163 #endif // defined(OS_WIN)
164 void ExecuteBrowserCommandAsync(int handle, int command, bool* success); 159 void ExecuteBrowserCommandAsync(int handle, int command, bool* success);
165 void ExecuteBrowserCommand(int handle, int command, 160 void ExecuteBrowserCommand(int handle, int command,
166 IPC::Message* reply_message); 161 IPC::Message* reply_message);
162 void TerminateSession(int handle, bool* success);
167 void WindowGetViewBounds(int handle, int view_id, bool screen_coordinates, 163 void WindowGetViewBounds(int handle, int view_id, bool screen_coordinates,
168 bool* success, gfx::Rect* bounds); 164 bool* success, gfx::Rect* bounds);
169 #if defined(OS_WIN)
170 // TODO(port): Replace POINT.
171 void WindowSimulateDrag(int handle, 165 void WindowSimulateDrag(int handle,
172 std::vector<POINT> drag_path, 166 std::vector<gfx::Point> drag_path,
173 int flags, 167 int flags,
174 bool press_escape_en_route, 168 bool press_escape_en_route,
175 IPC::Message* reply_message); 169 IPC::Message* reply_message);
176 #endif // defined(OS_WIN)
177 void WindowSimulateClick(const IPC::Message& message, 170 void WindowSimulateClick(const IPC::Message& message,
178 int handle, 171 int handle,
179 const gfx::Point& click, 172 const gfx::Point& click,
180 int flags); 173 int flags);
181 void WindowSimulateKeyPress(const IPC::Message& message, 174 void WindowSimulateKeyPress(const IPC::Message& message,
182 int handle, 175 int handle,
183 wchar_t key, 176 wchar_t key,
184 int flags); 177 int flags);
178 void GetWindowBounds(int handle, gfx::Rect* bounds, bool* result);
185 void SetWindowBounds(int handle, const gfx::Rect& bounds, bool* result); 179 void SetWindowBounds(int handle, const gfx::Rect& bounds, bool* result);
186 void SetWindowVisible(int handle, bool visible, bool* result); 180 void SetWindowVisible(int handle, bool visible, bool* result);
187 void IsWindowActive(int handle, bool* success, bool* is_active); 181 void IsWindowActive(int handle, bool* success, bool* is_active);
188 void ActivateWindow(int handle); 182 void ActivateWindow(int handle);
183 void IsWindowMaximized(int handle, bool* is_maximized, bool* success);
189 184
190 void GetTabCount(int handle, int* tab_count); 185 void GetTabCount(int handle, int* tab_count);
191 void GetTab(int win_handle, int tab_index, int* tab_handle); 186 void GetTab(int win_handle, int tab_index, int* tab_handle);
192 #if defined(OS_WIN) 187 #if defined(OS_WIN)
193 // TODO(port): Replace HWND. 188 // TODO(port): Replace HWND.
194 void GetTabHWND(int handle, HWND* tab_hwnd); 189 void GetTabHWND(int handle, HWND* tab_hwnd);
195 #endif // defined(OS_WIN) 190 #endif // defined(OS_WIN)
196 void GetTabProcessID(int handle, int* process_id); 191 void GetTabProcessID(int handle, int* process_id);
197 void GetTabTitle(int handle, int* title_string_size, std::wstring* title); 192 void GetTabTitle(int handle, int* title_string_size, std::wstring* title);
198 void GetTabIndex(int handle, int* tabstrip_index); 193 void GetTabIndex(int handle, int* tabstrip_index);
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 const MSG& msg); 314 const MSG& msg);
320 #endif 315 #endif
321 316
322 void SetInitialFocus(const IPC::Message& message, int handle, bool reverse); 317 void SetInitialFocus(const IPC::Message& message, int handle, bool reverse);
323 318
324 // See comment in AutomationMsg_WaitForTabToBeRestored. 319 // See comment in AutomationMsg_WaitForTabToBeRestored.
325 void WaitForTabToBeRestored(int tab_handle, IPC::Message* reply_message); 320 void WaitForTabToBeRestored(int tab_handle, IPC::Message* reply_message);
326 321
327 // TODO(port): remove windowisms. 322 // TODO(port): remove windowisms.
328 #if defined(OS_WIN) 323 #if defined(OS_WIN)
329 void OnTabReposition(int tab_handle,
330 const IPC::Reposition_Params& params);
331 void OnForwardContextMenuCommandToChrome(int tab_handle, int command); 324 void OnForwardContextMenuCommandToChrome(int tab_handle, int command);
332 #endif // defined(OS_WIN) 325 #endif // defined(OS_WIN)
333 326
334 // Gets the security state for the tab associated to the specified |handle|. 327 // Gets the security state for the tab associated to the specified |handle|.
335 void GetSecurityState(int handle, bool* success, 328 void GetSecurityState(int handle, bool* success,
336 SecurityStyle* security_style, int* ssl_cert_status, 329 SecurityStyle* security_style, int* ssl_cert_status,
337 int* mixed_content_status); 330 int* mixed_content_status);
338 331
339 // Gets the page type for the tab associated to the specified |handle|. 332 // Gets the page type for the tab associated to the specified |handle|.
340 void GetPageType(int handle, bool* success, 333 void GetPageType(int handle, bool* success,
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
566 virtual void Observe(NotificationType type, 559 virtual void Observe(NotificationType type,
567 const NotificationSource& source, 560 const NotificationSource& source,
568 const NotificationDetails& details); 561 const NotificationDetails& details);
569 562
570 void OnRemoveProvider(); // Called via PostTask 563 void OnRemoveProvider(); // Called via PostTask
571 564
572 NotificationRegistrar registrar_; 565 NotificationRegistrar registrar_;
573 }; 566 };
574 567
575 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_H_ 568 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/automation/automation_provider.cc » ('j') | chrome/test/automation/browser_proxy.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698