| 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 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 | 231 |
| 232 private: | 232 private: |
| 233 void OnUnhandledMessage(); | 233 void OnUnhandledMessage(); |
| 234 | 234 |
| 235 // IPC Message callbacks. | 235 // IPC Message callbacks. |
| 236 void WindowSimulateDrag(int handle, | 236 void WindowSimulateDrag(int handle, |
| 237 std::vector<gfx::Point> drag_path, | 237 std::vector<gfx::Point> drag_path, |
| 238 int flags, | 238 int flags, |
| 239 bool press_escape_en_route, | 239 bool press_escape_en_route, |
| 240 IPC::Message* reply_message); | 240 IPC::Message* reply_message); |
| 241 | |
| 242 #if defined(OS_WIN) | |
| 243 // TODO(port): Replace HWND. | |
| 244 void GetTabHWND(int handle, HWND* tab_hwnd); | |
| 245 #endif // defined(OS_WIN) | |
| 246 void HandleUnused(const IPC::Message& message, int handle); | 241 void HandleUnused(const IPC::Message& message, int handle); |
| 247 void SetFilteredInet(const IPC::Message& message, bool enabled); | 242 void SetFilteredInet(const IPC::Message& message, bool enabled); |
| 248 void GetFilteredInetHitCount(int* hit_count); | 243 void GetFilteredInetHitCount(int* hit_count); |
| 249 void SetProxyConfig(const std::string& new_proxy_config); | 244 void SetProxyConfig(const std::string& new_proxy_config); |
| 250 | 245 |
| 251 // Responds to the FindInPage request, retrieves the search query parameters, | 246 // Responds to the FindInPage request, retrieves the search query parameters, |
| 252 // launches an observer to listen for results and issues a StartFind request. | 247 // launches an observer to listen for results and issues a StartFind request. |
| 253 void HandleFindRequest(int handle, | 248 void HandleFindRequest(int handle, |
| 254 const AutomationMsg_Find_Params& params, | 249 const AutomationMsg_Find_Params& params, |
| 255 IPC::Message* reply_message); | 250 IPC::Message* reply_message); |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 419 // True iff connected to an AutomationProxy. | 414 // True iff connected to an AutomationProxy. |
| 420 bool is_connected_; | 415 bool is_connected_; |
| 421 | 416 |
| 422 // True iff browser finished loading initial set of tabs. | 417 // True iff browser finished loading initial set of tabs. |
| 423 bool initial_loads_complete_; | 418 bool initial_loads_complete_; |
| 424 | 419 |
| 425 DISALLOW_COPY_AND_ASSIGN(AutomationProvider); | 420 DISALLOW_COPY_AND_ASSIGN(AutomationProvider); |
| 426 }; | 421 }; |
| 427 | 422 |
| 428 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_H_ | 423 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_H_ |
| OLD | NEW |