WD
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
webdriver::ViewRunner Class Reference

#include <webdriver_view_runner.h>

Inheritance diagram for webdriver::ViewRunner:
Collaboration diagram for webdriver::ViewRunner:

Public Member Functions

 ViewRunner ()
 
virtual ~ViewRunner ()
 
virtual void RunClosure (const base::Closure &task, base::WaitableEvent *done_event)
 

Static Public Member Functions

static ViewRunnerCreateRunner (void)
 
template<class C >
static void RegisterCustomRunner (void)
 

Protected Types

typedef ViewRunner *(* CreateRunnerMethod )(void)
 

Static Protected Member Functions

template<class C >
static ViewRunnercreateRunner (void)
 

Static Protected Attributes

static CreateRunnerMethod create
 

Detailed Description

Base class for runner for view operations. It allows to run operations in other context(ie - UI thread). Has default imlementation which runs closure in same context.

Member Typedef Documentation

typedef ViewRunner*(* webdriver::ViewRunner::CreateRunnerMethod)(void)
protected

Constructor & Destructor Documentation

webdriver::ViewRunner::ViewRunner ( )
virtual webdriver::ViewRunner::~ViewRunner ( )
inlinevirtual

Member Function Documentation

static ViewRunner* webdriver::ViewRunner::CreateRunner ( void  )
static

Create view runner

Returns
new ViewRunner object.
template<class C >
static ViewRunner* webdriver::ViewRunner::createRunner ( void  )
inlinestaticprotected
template<class C >
static void webdriver::ViewRunner::RegisterCustomRunner ( void  )
inlinestatic

Register custom runner. There is can be only one runner per driver instance.

Template Parameters
Csubclass of ViewRunner with custom implementation
virtual void webdriver::ViewRunner::RunClosure ( const base::Closure &  task,
base::WaitableEvent *  done_event 
)
virtual

run view operation in runner context. Finish if operation should be signaled in done_event.

Parameters
taskoperation to run
done_eventevent to signalize finis

Reimplemented in webdriver::QViewRunner.

Member Data Documentation

CreateRunnerMethod webdriver::ViewRunner::create
staticprotected

The documentation for this class was generated from the following file: