| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 | 239 |
| 240 private: | 240 private: |
| 241 // Storage for EndTracing() to resume operations after a callback. | 241 // Storage for EndTracing() to resume operations after a callback. |
| 242 struct TracingData { | 242 struct TracingData { |
| 243 std::list<std::string> trace_output; | 243 std::list<std::string> trace_output; |
| 244 scoped_ptr<IPC::Message> reply_message; | 244 scoped_ptr<IPC::Message> reply_message; |
| 245 }; | 245 }; |
| 246 | 246 |
| 247 // TraceSubscriber: | 247 // TraceSubscriber: |
| 248 virtual void OnEndTracingComplete() OVERRIDE; | 248 virtual void OnEndTracingComplete() OVERRIDE; |
| 249 virtual void OnTraceDataCollected(const std::string& trace_fragment) OVERRIDE; | 249 virtual void OnTraceDataCollected( |
| 250 const scoped_refptr<base::RefCountedString>& trace_fragment) OVERRIDE; |
| 250 | 251 |
| 251 void OnUnhandledMessage(const IPC::Message& message); | 252 void OnUnhandledMessage(const IPC::Message& message); |
| 252 | 253 |
| 253 // Clear and reinitialize the automation IPC channel. | 254 // Clear and reinitialize the automation IPC channel. |
| 254 bool ReinitializeChannel(); | 255 bool ReinitializeChannel(); |
| 255 | 256 |
| 256 // IPC Message callbacks. | 257 // IPC Message callbacks. |
| 257 void WindowSimulateDrag(int handle, | 258 void WindowSimulateDrag(int handle, |
| 258 const std::vector<gfx::Point>& drag_path, | 259 const std::vector<gfx::Point>& drag_path, |
| 259 int flags, | 260 int flags, |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 429 std::string channel_id_; | 430 std::string channel_id_; |
| 430 | 431 |
| 431 // Trace data that has been collected but not flushed to the automation | 432 // Trace data that has been collected but not flushed to the automation |
| 432 // client. | 433 // client. |
| 433 TracingData tracing_data_; | 434 TracingData tracing_data_; |
| 434 | 435 |
| 435 DISALLOW_COPY_AND_ASSIGN(AutomationProvider); | 436 DISALLOW_COPY_AND_ASSIGN(AutomationProvider); |
| 436 }; | 437 }; |
| 437 | 438 |
| 438 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_H_ | 439 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_H_ |
| OLD | NEW |