WD
|
Namespaces | |
namespace | internal |
Typedefs | |
typedef scoped_refptr < AbstractCommandCreator > | CommandCreatorPtr |
typedef AbstractViewEnumeratorImpl * | ViewEnumeratorImplPtr |
typedef void *(* | CreateViewMethod )(void) |
typedef unsigned long int | ViewType |
typedef scoped_refptr< ViewHandle > | ViewHandlePtr |
typedef scoped_ptr < URLTransitionAction > | URLTransitionActionPtr |
Enumerations | |
enum | MouseButton { kLeftButton = 0, kMiddleButton = 1, kRightButton = 2 } |
enum | StorageType { kLocalStorageType = 0, kSessionStorageType } |
enum | PlayerState { Stopped = 0, Playing = 1, Paused = 2 } |
enum | ErrorCode { kSuccess = 0, kNoSuchElement = 7, kNoSuchFrame = 8, kUnknownCommand = 9, kStaleElementReference = 10, kElementNotVisible = 11, kInvalidElementState = 12, kUnknownError = 13, kElementNotSelectable = 15, kJavaScriptError = 17, kXPathLookupError = 19, kTimeout = 21, kNoSuchWindow = 23, kInvalidCookieDomain = 24, kUnableToSetCookie = 25, kUnexpectedAlertOpen = 26, kNoAlertOpenError = 27, kScriptTimeout = 28, kMoveTargetOutOfBounds = 34, kCommandNotSupported = 50, kSeeOther = 303, kBadRequest = 400, kSessionNotFound = 404, kMethodNotAllowed = 405, kInternalServerError = 500 } |
enum | LogLevel { kOffLogLevel = 1200, kSevereLogLevel = 1000, kWarningLogLevel = 900, kInfoLogLevel = 800, kFineLogLevel = 500, kAllLogLevel = -1000 } |
enum | SkipParsing |
Functions | |
LogLevel | LogLevelFromString (const std::string &name) |
std::string | LogLevelToString (LogLevel level) |
std::string | GenerateRandomID () |
bool | Base64Decode (const std::string &base64, std::string *bytes) |
std::string | JsonStringify (const base::Value *value) |
std::string | JsonStringifyForDisplay (const base::Value *value) |
const char * | GetJsonTypeName (base::Value::Type type) |
Error * | FlattenStringArray (const ListValue *src, string16 *dest) |
bool | GetTwoIntsFromString (const std::string &src, int &first, int &second) |
template<typename T > | |
DirectValueParser< T > * | CreateDirectValueParser (T *t) |
template<class C > | |
void * | createView (void) |
Variables | |
SkipParsing * | kSkipParsing |
typedef scoped_refptr<AbstractCommandCreator> webdriver::CommandCreatorPtr |
typedef void*(* webdriver::CreateViewMethod)(void) |
typedef scoped_ptr<URLTransitionAction> webdriver::URLTransitionActionPtr |
typedef scoped_refptr<ViewHandle> webdriver::ViewHandlePtr |
typedef unsigned long int webdriver::ViewType |
enum webdriver::ErrorCode |
Error codes defined by the WebDriver wire protcol. If you add a code here, don't forget to add it to ErrorCodeToString().
enum webdriver::LogLevel |
Define a special type and constant that allows users to skip parsing a value. Useful when wanting to skip parsing for one value out of many in a list.
bool webdriver::Base64Decode | ( | const std::string & | base64, |
std::string * | bytes | ||
) |
Decodes the given base64-encoded string, after removing any newlines, which are required in some base64 standards. Returns true on success.
DirectValueParser<T>* webdriver::CreateDirectValueParser | ( | T * | t | ) |
Convenience function for creating a DirectValueParser.
void* webdriver::createView | ( | void | ) |
Error* webdriver::FlattenStringArray | ( | const ListValue * | src, |
string16 * | dest | ||
) |
Flattens the given list of strings into one.
std::string webdriver::GenerateRandomID | ( | ) |
Generates a random, 32-character hexidecimal ID.
const char* webdriver::GetJsonTypeName | ( | base::Value::Type | type | ) |
Returns the string representation of the given type, for display purposes.
bool webdriver::GetTwoIntsFromString | ( | const std::string & | src, |
int & | first, | ||
int & | second | ||
) |
Gives string, e.g.-"400, 600", split it, and assigns given number to first and second. Returns true on success.
std::string webdriver::JsonStringify | ( | const base::Value * | value | ) |
Returns the equivalent JSON string for the given value.
std::string webdriver::JsonStringifyForDisplay | ( | const base::Value * | value | ) |
Returns the JSON string for the given value, with the exception that long strings are shortened for easier display.
LogLevel webdriver::LogLevelFromString | ( | const std::string & | name | ) |
std::string webdriver::LogLevelToString | ( | LogLevel | level | ) |
SkipParsing* webdriver::kSkipParsing |