OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/test/webdriver/commands/command.h" | 5 #include "chrome/test/webdriver/commands/command.h" |
6 | 6 |
7 namespace webdriver { | 7 namespace webdriver { |
8 | 8 |
9 // Error message taken from: | 9 // Error message taken from: |
10 // http://code.google.com/p/selenium/wiki/JsonWireProtocol#Response_Status_Codes | 10 // http://code.google.com/p/selenium/wiki/JsonWireProtocol#Response_Status_Codes |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 bool Command::GetBooleanParameter(const std::string& key, | 58 bool Command::GetBooleanParameter(const std::string& key, |
59 bool* out) const { | 59 bool* out) const { |
60 return parameters_.get() != NULL && parameters_->GetBoolean(key, out); | 60 return parameters_.get() != NULL && parameters_->GetBoolean(key, out); |
61 } | 61 } |
62 | 62 |
63 bool Command::GetIntegerParameter(const std::string& key, | 63 bool Command::GetIntegerParameter(const std::string& key, |
64 int* out) const { | 64 int* out) const { |
65 return parameters_.get() != NULL && parameters_->GetInteger(key, out); | 65 return parameters_.get() != NULL && parameters_->GetInteger(key, out); |
66 } | 66 } |
67 | 67 |
| 68 bool Command::GetDictionaryParameter(const std::string& key, |
| 69 DictionaryValue** out) const { |
| 70 return parameters_.get() != NULL && parameters_->GetDictionary(key, out); |
| 71 } |
| 72 |
68 } // namespace webdriver | 73 } // namespace webdriver |
69 | 74 |
OLD | NEW |