OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
359 | 359 |
360 void ConnectExternalTab(uint64 cookie, | 360 void ConnectExternalTab(uint64 cookie, |
361 bool allow, | 361 bool allow, |
362 gfx::NativeWindow parent_window, | 362 gfx::NativeWindow parent_window, |
363 gfx::NativeWindow* tab_container_window, | 363 gfx::NativeWindow* tab_container_window, |
364 gfx::NativeWindow* tab_window, | 364 gfx::NativeWindow* tab_window, |
365 int* tab_handle, | 365 int* tab_handle, |
366 int* session_id); | 366 int* session_id); |
367 | 367 |
368 void NavigateInExternalTab( | 368 void NavigateInExternalTab( |
369 int handle, const GURL& url, const GURL& referrer, | 369 int handle, const GURL& url, const content::Referrer& referrer, |
370 AutomationMsg_NavigationResponseValues* status); | 370 AutomationMsg_NavigationResponseValues* status); |
371 void NavigateExternalTabAtIndex( | 371 void NavigateExternalTabAtIndex( |
372 int handle, int index, AutomationMsg_NavigationResponseValues* status); | 372 int handle, int index, AutomationMsg_NavigationResponseValues* status); |
373 | 373 |
374 // Handler for a message sent by the automation client. | 374 // Handler for a message sent by the automation client. |
375 void OnMessageFromExternalHost(int handle, const std::string& message, | 375 void OnMessageFromExternalHost(int handle, const std::string& message, |
376 const std::string& origin, | 376 const std::string& origin, |
377 const std::string& target); | 377 const std::string& target); |
378 | 378 |
379 void OnBrowserMoved(int handle); | 379 void OnBrowserMoved(int handle); |
(...skipping 28 matching lines...) Expand all Loading... |
408 std::string channel_id_; | 408 std::string channel_id_; |
409 | 409 |
410 // Trace data that has been collected but not flushed to the automation | 410 // Trace data that has been collected but not flushed to the automation |
411 // client. | 411 // client. |
412 TracingData tracing_data_; | 412 TracingData tracing_data_; |
413 | 413 |
414 DISALLOW_COPY_AND_ASSIGN(AutomationProvider); | 414 DISALLOW_COPY_AND_ASSIGN(AutomationProvider); |
415 }; | 415 }; |
416 | 416 |
417 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_H_ | 417 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_H_ |
OLD | NEW |