michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef WIDGET_PUBLIC_WIDGETTRACEEVENT_H_ michael@0: #define WIDGET_PUBLIC_WIDGETTRACEEVENT_H_ michael@0: michael@0: namespace mozilla { michael@0: michael@0: // Perform any required initialization in the widget backend for michael@0: // event tracing. Return true if initialization was successful. michael@0: bool InitWidgetTracing(); michael@0: michael@0: // Perform any required cleanup in the widget backend for event tracing. michael@0: void CleanUpWidgetTracing(); michael@0: michael@0: // Fire a tracer event at the UI-thread event loop, and block until michael@0: // the event is processed. This should only be called by michael@0: // a thread that's not the UI thread. michael@0: bool FireAndWaitForTracerEvent(); michael@0: michael@0: // Signal that the event has been received by the event loop. michael@0: void SignalTracerThread(); michael@0: michael@0: } michael@0: michael@0: #endif // WIDGET_PUBLIC_WIDGETTRACEEVENT_H_