| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 15 matching lines...) Expand all Loading... |
| 26 #include "chrome/common/automation_constants.h" | 26 #include "chrome/common/automation_constants.h" |
| 27 #include "chrome/common/content_settings.h" | 27 #include "chrome/common/content_settings.h" |
| 28 #include "chrome/common/notification_observer.h" | 28 #include "chrome/common/notification_observer.h" |
| 29 #include "ipc/ipc_message.h" | 29 #include "ipc/ipc_message.h" |
| 30 #include "ipc/ipc_channel.h" | 30 #include "ipc/ipc_channel.h" |
| 31 #if defined(OS_WIN) | 31 #if defined(OS_WIN) |
| 32 #include "gfx/native_widget_types.h" | 32 #include "gfx/native_widget_types.h" |
| 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; | |
| 37 class PopupMenuWaiter; | 36 class PopupMenuWaiter; |
| 38 class TabContents; | 37 class TabContents; |
| 38 struct AutomationMsg_Find_Params; |
| 39 struct Reposition_Params; |
| 40 struct ExternalTabSettings; |
| 39 | 41 |
| 40 namespace IPC { | 42 namespace IPC { |
| 41 struct Reposition_Params; | |
| 42 struct ExternalTabSettings; | |
| 43 class ChannelProxy; | 43 class ChannelProxy; |
| 44 } | 44 } |
| 45 | 45 |
| 46 class AutoFillProfile; | 46 class AutoFillProfile; |
| 47 class AutomationAutocompleteEditTracker; | 47 class AutomationAutocompleteEditTracker; |
| 48 class AutomationBrowserTracker; | 48 class AutomationBrowserTracker; |
| 49 class AutomationExtensionTracker; | 49 class AutomationExtensionTracker; |
| 50 class AutomationResourceMessageFilter; | 50 class AutomationResourceMessageFilter; |
| 51 class AutomationTabTracker; | 51 class AutomationTabTracker; |
| 52 class AutomationWindowTracker; | 52 class AutomationWindowTracker; |
| (...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 338 // The container of an externally hosted tab calls this to reflect any | 338 // The container of an externally hosted tab calls this to reflect any |
| 339 // accelerator keys that it did not process. This gives the tab a chance | 339 // accelerator keys that it did not process. This gives the tab a chance |
| 340 // to handle the keys | 340 // to handle the keys |
| 341 void ProcessUnhandledAccelerator(const IPC::Message& message, int handle, | 341 void ProcessUnhandledAccelerator(const IPC::Message& message, int handle, |
| 342 const MSG& msg); | 342 const MSG& msg); |
| 343 | 343 |
| 344 void SetInitialFocus(const IPC::Message& message, int handle, bool reverse, | 344 void SetInitialFocus(const IPC::Message& message, int handle, bool reverse, |
| 345 bool restore_focus_to_view); | 345 bool restore_focus_to_view); |
| 346 | 346 |
| 347 void OnTabReposition(int tab_handle, | 347 void OnTabReposition(int tab_handle, |
| 348 const IPC::Reposition_Params& params); | 348 const Reposition_Params& params); |
| 349 | 349 |
| 350 void OnForwardContextMenuCommandToChrome(int tab_handle, int command); | 350 void OnForwardContextMenuCommandToChrome(int tab_handle, int command); |
| 351 | 351 |
| 352 void CreateExternalTab(const IPC::ExternalTabSettings& settings, | 352 void CreateExternalTab(const ExternalTabSettings& settings, |
| 353 gfx::NativeWindow* tab_container_window, | 353 gfx::NativeWindow* tab_container_window, |
| 354 gfx::NativeWindow* tab_window, | 354 gfx::NativeWindow* tab_window, |
| 355 int* tab_handle, | 355 int* tab_handle, |
| 356 int* session_id); | 356 int* session_id); |
| 357 | 357 |
| 358 void ConnectExternalTab(uint64 cookie, | 358 void ConnectExternalTab(uint64 cookie, |
| 359 bool allow, | 359 bool allow, |
| 360 gfx::NativeWindow parent_window, | 360 gfx::NativeWindow parent_window, |
| 361 gfx::NativeWindow* tab_container_window, | 361 gfx::NativeWindow* tab_container_window, |
| 362 gfx::NativeWindow* tab_window, | 362 gfx::NativeWindow* tab_window, |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 398 scoped_ptr<NotificationObserver> dom_inspector_observer_; | 398 scoped_ptr<NotificationObserver> dom_inspector_observer_; |
| 399 scoped_ptr<ExtensionTestResultNotificationObserver> | 399 scoped_ptr<ExtensionTestResultNotificationObserver> |
| 400 extension_test_result_observer_; | 400 extension_test_result_observer_; |
| 401 scoped_ptr<AutomationExtensionTracker> extension_tracker_; | 401 scoped_ptr<AutomationExtensionTracker> extension_tracker_; |
| 402 PortContainerMap port_containers_; | 402 PortContainerMap port_containers_; |
| 403 | 403 |
| 404 DISALLOW_COPY_AND_ASSIGN(AutomationProvider); | 404 DISALLOW_COPY_AND_ASSIGN(AutomationProvider); |
| 405 }; | 405 }; |
| 406 | 406 |
| 407 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_H_ | 407 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_H_ |
| OLD | NEW |