Lines Matching refs:id
12 base::Value* value, AutomationId* id, std::string* error) {
15 *error = "automation ID must be a dictionary";
20 *error = "automation ID 'type' missing or invalid";
24 if (!dict->GetString("id", &type_id)) {
25 *error = "automation ID 'type_id' missing or invalid";
28 *id = AutomationId(static_cast<Type>(type), type_id);
36 AutomationId* id,
40 *error = base::StringPrintf("automation ID '%s' missing", key.c_str());
43 return FromValue(id_value, id, error);
48 AutomationId::AutomationId(Type type, const std::string& id)
49 : type_(type), id_(id) { }
51 bool AutomationId::operator==(const AutomationId& id) const {
52 return type_ == id.type_ && id_ == id.id_;
58 dict->SetString("id", id_);
70 const std::string& AutomationId::id() const {