Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 4 | |
michael@0 | 5 | #ifndef WIDGET_PUBLIC_WIDGETTRACEEVENT_H_ |
michael@0 | 6 | #define WIDGET_PUBLIC_WIDGETTRACEEVENT_H_ |
michael@0 | 7 | |
michael@0 | 8 | namespace mozilla { |
michael@0 | 9 | |
michael@0 | 10 | // Perform any required initialization in the widget backend for |
michael@0 | 11 | // event tracing. Return true if initialization was successful. |
michael@0 | 12 | bool InitWidgetTracing(); |
michael@0 | 13 | |
michael@0 | 14 | // Perform any required cleanup in the widget backend for event tracing. |
michael@0 | 15 | void CleanUpWidgetTracing(); |
michael@0 | 16 | |
michael@0 | 17 | // Fire a tracer event at the UI-thread event loop, and block until |
michael@0 | 18 | // the event is processed. This should only be called by |
michael@0 | 19 | // a thread that's not the UI thread. |
michael@0 | 20 | bool FireAndWaitForTracerEvent(); |
michael@0 | 21 | |
michael@0 | 22 | // Signal that the event has been received by the event loop. |
michael@0 | 23 | void SignalTracerThread(); |
michael@0 | 24 | |
michael@0 | 25 | } |
michael@0 | 26 | |
michael@0 | 27 | #endif // WIDGET_PUBLIC_WIDGETTRACEEVENT_H_ |