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

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

Issue 99268: Making CloseWindow and CloseTab automation API... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 7 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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 IPC::Message* reply_message); 125 IPC::Message* reply_message);
126 126
127 void GetActiveTabIndex(int handle, int* active_tab_index); 127 void GetActiveTabIndex(int handle, int* active_tab_index);
128 void GetCookies(const GURL& url, int handle, int* value_size, 128 void GetCookies(const GURL& url, int handle, int* value_size,
129 std::string* value); 129 std::string* value);
130 void SetCookie(const GURL& url, 130 void SetCookie(const GURL& url,
131 const std::string value, 131 const std::string value,
132 int handle, 132 int handle,
133 int* response_value); 133 int* response_value);
134 void GetBrowserWindowCount(int* window_count); 134 void GetBrowserWindowCount(int* window_count);
135 void GetNormalBrowserWindowCount(int* window_count);
135 void GetShowingAppModalDialog(bool* showing_dialog, int* dialog_button); 136 void GetShowingAppModalDialog(bool* showing_dialog, int* dialog_button);
136 void ClickAppModalDialogButton(int button, bool* success); 137 void ClickAppModalDialogButton(int button, bool* success);
138 // Be aware that the browser window returned might be of non TYPE_NORMAL
139 // or in incognito mode.
137 void GetBrowserWindow(int index, int* handle); 140 void GetBrowserWindow(int index, int* handle);
141 void FindNormalBrowserWindow(int* handle);
138 void GetLastActiveBrowserWindow(int* handle); 142 void GetLastActiveBrowserWindow(int* handle);
139 void GetActiveWindow(int* handle); 143 void GetActiveWindow(int* handle);
140 #if defined(OS_WIN) 144 #if defined(OS_WIN)
141 // TODO(port): Replace HWND. 145 // TODO(port): Replace HWND.
142 void GetWindowHWND(int handle, HWND* win32_handle); 146 void GetWindowHWND(int handle, HWND* win32_handle);
143 #endif // defined(OS_WIN) 147 #endif // defined(OS_WIN)
144 void ExecuteBrowserCommandAsync(int handle, int command, bool* success); 148 void ExecuteBrowserCommandAsync(int handle, int command, bool* success);
145 void ExecuteBrowserCommand(int handle, int command, 149 void ExecuteBrowserCommand(int handle, int command,
146 IPC::Message* reply_message); 150 IPC::Message* reply_message);
147 void WindowGetViewBounds(int handle, int view_id, bool screen_coordinates, 151 void WindowGetViewBounds(int handle, int view_id, bool screen_coordinates,
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
507 511
508 private: 512 private:
509 virtual void Observe(NotificationType type, 513 virtual void Observe(NotificationType type,
510 const NotificationSource& source, 514 const NotificationSource& source,
511 const NotificationDetails& details); 515 const NotificationDetails& details);
512 516
513 void OnRemoveProvider(); // Called via PostTask 517 void OnRemoveProvider(); // Called via PostTask
514 }; 518 };
515 519
516 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_H_ 520 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/automation/automation_provider.cc » ('j') | chrome/browser/automation/automation_provider.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698