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( | 249 virtual void OnTraceDataCollected(const std::string& trace_fragment) OVERRIDE; |
250 const scoped_refptr<base::RefCountedString>& trace_fragment) OVERRIDE; | |
251 | 250 |
252 void OnUnhandledMessage(const IPC::Message& message); | 251 void OnUnhandledMessage(const IPC::Message& message); |
253 | 252 |
254 // Clear and reinitialize the automation IPC channel. | 253 // Clear and reinitialize the automation IPC channel. |
255 bool ReinitializeChannel(); | 254 bool ReinitializeChannel(); |
256 | 255 |
257 // IPC Message callbacks. | 256 // IPC Message callbacks. |
258 void WindowSimulateDrag(int handle, | 257 void WindowSimulateDrag(int handle, |
259 const std::vector<gfx::Point>& drag_path, | 258 const std::vector<gfx::Point>& drag_path, |
260 int flags, | 259 int flags, |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
430 std::string channel_id_; | 429 std::string channel_id_; |
431 | 430 |
432 // Trace data that has been collected but not flushed to the automation | 431 // Trace data that has been collected but not flushed to the automation |
433 // client. | 432 // client. |
434 TracingData tracing_data_; | 433 TracingData tracing_data_; |
435 | 434 |
436 DISALLOW_COPY_AND_ASSIGN(AutomationProvider); | 435 DISALLOW_COPY_AND_ASSIGN(AutomationProvider); |
437 }; | 436 }; |
438 | 437 |
439 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_H_ | 438 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_H_ |
OLD | NEW |