|
WD
|
#include <webdriver_view_factory.h>
Public Member Functions | |
| void | CreateViewByClassName (const Logger &logger, const std::string &className, ViewHandle **view) const |
| void | CreateViewByClassName (const Logger &logger, const std::string &className, const Point *position, const Size *size, ViewHandle **view) const |
| void | CreateViewForUrl (const Logger &logger, const std::string &url, ViewHandle **view) const |
| void | CreateViewForUrl (const Logger &logger, const std::string &url, const Point *position, const Size *size, ViewHandle **view) const |
| void | AddViewCreator (ViewCreator *creator) |
Static Public Member Functions | |
| static ViewFactory * | GetInstance () |
This class used for creating new views.
| void webdriver::ViewFactory::AddViewCreator | ( | ViewCreator * | creator | ) |
add new view's creator
| creator | pointer to custom creator. No need to delete object |
| void webdriver::ViewFactory::CreateViewByClassName | ( | const Logger & | logger, |
| const std::string & | className, | ||
| ViewHandle ** | view | ||
| ) | const |
creates new view of specified class
| [in] | logger | |
| [in] | className | requested class name |
| [out] | view | created view. |
| void webdriver::ViewFactory::CreateViewByClassName | ( | const Logger & | logger, |
| const std::string & | className, | ||
| const Point * | position, | ||
| const Size * | size, | ||
| ViewHandle ** | view | ||
| ) | const |
creates new view of specified class
| [in] | logger | |
| [in] | className | requested class name |
| [in] | position | desired window position |
| [in] | size | desired window size |
| [out] | view | created view. |
| void webdriver::ViewFactory::CreateViewForUrl | ( | const Logger & | logger, |
| const std::string & | url, | ||
| ViewHandle ** | view | ||
| ) | const |
creates new view that can handle specified url with specified window sixe and position
| [in] | logger | |
| [in] | url | url to handle |
| [out] | view | created view. |
| void webdriver::ViewFactory::CreateViewForUrl | ( | const Logger & | logger, |
| const std::string & | url, | ||
| const Point * | position, | ||
| const Size * | size, | ||
| ViewHandle ** | view | ||
| ) | const |
creates new view that can handle specified url with specified window sixe and position
| [in] | logger | |
| [in] | url | url to handle |
| [in] | position | desired window position |
| [in] | size | desired window size |
| [out] | view | created view. |
|
static |
Returns the singleton instance.