widget/WidgetTraceEvent.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/widget/WidgetTraceEvent.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,27 @@
     1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.7 +
     1.8 +#ifndef WIDGET_PUBLIC_WIDGETTRACEEVENT_H_
     1.9 +#define WIDGET_PUBLIC_WIDGETTRACEEVENT_H_
    1.10 +
    1.11 +namespace mozilla {
    1.12 +
    1.13 +// Perform any required initialization in the widget backend for
    1.14 +// event tracing. Return true if initialization was successful.
    1.15 +bool InitWidgetTracing();
    1.16 +
    1.17 +// Perform any required cleanup in the widget backend for event tracing.
    1.18 +void CleanUpWidgetTracing();
    1.19 +
    1.20 +// Fire a tracer event at the UI-thread event loop, and block until
    1.21 +// the event is processed. This should only be called by
    1.22 +// a thread that's not the UI thread.
    1.23 +bool FireAndWaitForTracerEvent();
    1.24 +
    1.25 +// Signal that the event has been received by the event loop.
    1.26 +void SignalTracerThread();
    1.27 +
    1.28 +}
    1.29 +
    1.30 +#endif  // WIDGET_PUBLIC_WIDGETTRACEEVENT_H_

mercurial