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

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

Issue 329040: Take 2 at this. The only change between this and the first is to add the GetT... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 1 month 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
« no previous file with comments | « no previous file | chrome/browser/automation/automation_provider.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 int key, 178 int key,
179 int flags); 179 int flags);
180 void GetWindowBounds(int handle, gfx::Rect* bounds, bool* result); 180 void GetWindowBounds(int handle, gfx::Rect* bounds, bool* result);
181 void SetWindowBounds(int handle, const gfx::Rect& bounds, bool* result); 181 void SetWindowBounds(int handle, const gfx::Rect& bounds, bool* result);
182 void SetWindowVisible(int handle, bool visible, bool* result); 182 void SetWindowVisible(int handle, bool visible, bool* result);
183 void IsWindowActive(int handle, bool* success, bool* is_active); 183 void IsWindowActive(int handle, bool* success, bool* is_active);
184 void ActivateWindow(int handle); 184 void ActivateWindow(int handle);
185 void IsWindowMaximized(int handle, bool* is_maximized, bool* success); 185 void IsWindowMaximized(int handle, bool* is_maximized, bool* success);
186 186
187 void GetTabCount(int handle, int* tab_count); 187 void GetTabCount(int handle, int* tab_count);
188 void GetType(int handle, int* type_as_int);
188 void GetTab(int win_handle, int tab_index, int* tab_handle); 189 void GetTab(int win_handle, int tab_index, int* tab_handle);
189 #if defined(OS_WIN) 190 #if defined(OS_WIN)
190 // TODO(port): Replace HWND. 191 // TODO(port): Replace HWND.
191 void GetTabHWND(int handle, HWND* tab_hwnd); 192 void GetTabHWND(int handle, HWND* tab_hwnd);
192 #endif // defined(OS_WIN) 193 #endif // defined(OS_WIN)
193 void GetTabProcessID(int handle, int* process_id); 194 void GetTabProcessID(int handle, int* process_id);
194 void GetTabTitle(int handle, int* title_string_size, std::wstring* title); 195 void GetTabTitle(int handle, int* title_string_size, std::wstring* title);
195 void GetTabIndex(int handle, int* tabstrip_index); 196 void GetTabIndex(int handle, int* tabstrip_index);
196 void GetTabURL(int handle, bool* success, GURL* url); 197 void GetTabURL(int handle, bool* success, GURL* url);
197 void HandleUnused(const IPC::Message& message, int handle); 198 void HandleUnused(const IPC::Message& message, int handle);
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 // Retrieves a Browser from a Window and vice-versa. 278 // Retrieves a Browser from a Window and vice-versa.
278 void GetWindowForBrowser(int window_handle, bool* success, int* handle); 279 void GetWindowForBrowser(int window_handle, bool* success, int* handle);
279 void GetBrowserForWindow(int window_handle, bool* success, 280 void GetBrowserForWindow(int window_handle, bool* success,
280 int* browser_handle); 281 int* browser_handle);
281 282
282 void GetAutocompleteEditForBrowser(int browser_handle, bool* success, 283 void GetAutocompleteEditForBrowser(int browser_handle, bool* success,
283 int* autocomplete_edit_handle); 284 int* autocomplete_edit_handle);
284 285
285 // If |show| is true, call Show() on the new window after creating it. 286 // If |show| is true, call Show() on the new window after creating it.
286 void OpenNewBrowserWindow(bool show, IPC::Message* reply_message); 287 void OpenNewBrowserWindow(bool show, IPC::Message* reply_message);
288 void OpenNewBrowserWindowOfType(int type,
289 bool show,
290 IPC::Message* reply_message);
287 291
288 void ShowInterstitialPage(int tab_handle, 292 void ShowInterstitialPage(int tab_handle,
289 const std::string& html_text, 293 const std::string& html_text,
290 IPC::Message* reply_message); 294 IPC::Message* reply_message);
291 void HideInterstitialPage(int tab_handle, bool* success); 295 void HideInterstitialPage(int tab_handle, bool* success);
292 296
293 void CreateExternalTab(const IPC::ExternalTabSettings& settings, 297 void CreateExternalTab(const IPC::ExternalTabSettings& settings,
294 gfx::NativeWindow* tab_container_window, 298 gfx::NativeWindow* tab_container_window,
295 gfx::NativeWindow* tab_window, 299 gfx::NativeWindow* tab_window,
296 int* tab_handle); 300 int* tab_handle);
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
576 virtual void Observe(NotificationType type, 580 virtual void Observe(NotificationType type,
577 const NotificationSource& source, 581 const NotificationSource& source,
578 const NotificationDetails& details); 582 const NotificationDetails& details);
579 583
580 void OnRemoveProvider(); // Called via PostTask 584 void OnRemoveProvider(); // Called via PostTask
581 585
582 NotificationRegistrar registrar_; 586 NotificationRegistrar registrar_;
583 }; 587 };
584 588
585 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_H_ 589 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/automation/automation_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698