| Index: chrome/test/webdriver/commands/command.cc
|
| ===================================================================
|
| --- chrome/test/webdriver/commands/command.cc (revision 75464)
|
| +++ chrome/test/webdriver/commands/command.cc (working copy)
|
| @@ -40,6 +40,10 @@
|
| return true;
|
| }
|
|
|
| +bool Command::HasParameter(const std::string& key) const {
|
| + return parameters_.get() && parameters_->HasKey(key);
|
| +}
|
| +
|
| bool Command::IsNullParameter(const std::string& key) const {
|
| Value* value;
|
| return parameters_.get() &&
|
| @@ -72,6 +76,10 @@
|
| return parameters_.get() != NULL && parameters_->GetInteger(key, out);
|
| }
|
|
|
| +bool Command::GetDoubleParameter(const std::string& key, double* out) const {
|
| + return parameters_.get() != NULL && parameters_->GetDouble(key, out);
|
| +}
|
| +
|
| bool Command::GetDictionaryParameter(const std::string& key,
|
| DictionaryValue** out) const {
|
| return parameters_.get() != NULL && parameters_->GetDictionary(key, out);
|
|
|