Exemplo n.º 1
0
void LayoutEditor::appendAnchorFor(protocol::ListValue* anchors,
                                   const String& type,
                                   const String& propertyName) {
  std::unique_ptr<protocol::DictionaryValue> description =
      createValueDescription(propertyName);
  if (description)
    anchors->pushValue(
        createAnchor(type, propertyName, std::move(description)));
}
Exemplo n.º 2
0
void LayoutEditor::appendAnchorFor(JSONArray* anchors, const String& type, const String& propertyName)
{
    RefPtr<JSONObject> description = createValueDescription(propertyName);
    if (description)
        anchors->pushObject(createAnchor(type, propertyName, description.release()));
}