Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(997)

Unified Diff: third_party/WebKit/Source/modules/accessibility/InspectorTypeBuilderHelper.h

Issue 2004313003: DevTools: migrate from OwnPtr to std::unique_ptr for inspector protocol classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebaselined Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/accessibility/InspectorTypeBuilderHelper.h
diff --git a/third_party/WebKit/Source/modules/accessibility/InspectorTypeBuilderHelper.h b/third_party/WebKit/Source/modules/accessibility/InspectorTypeBuilderHelper.h
index c56ed6b2bfc93c075f25fa20ed152d28da6e6380..d04f2e236c7bb5b0f552d55c5e4929258615cdc1 100644
--- a/third_party/WebKit/Source/modules/accessibility/InspectorTypeBuilderHelper.h
+++ b/third_party/WebKit/Source/modules/accessibility/InspectorTypeBuilderHelper.h
@@ -14,18 +14,18 @@ namespace blink {
using namespace protocol::Accessibility;
-PassOwnPtr<AXProperty> createProperty(const String& name, PassOwnPtr<AXValue>);
-PassOwnPtr<AXProperty> createProperty(IgnoredReason);
-
-PassOwnPtr<AXValue> createValue(const String& value, const String& type = AXValueTypeEnum::String);
-PassOwnPtr<AXValue> createValue(int value, const String& type = AXValueTypeEnum::Integer);
-PassOwnPtr<AXValue> createValue(float value, const String& valueType = AXValueTypeEnum::Number);
-PassOwnPtr<AXValue> createBooleanValue(bool value, const String& valueType = AXValueTypeEnum::Boolean);
-PassOwnPtr<AXValue> createRelatedNodeListValue(const AXObject*, String* name = nullptr, const String& valueType = AXValueTypeEnum::Idref);
-PassOwnPtr<AXValue> createRelatedNodeListValue(AXRelatedObjectVector&, const String& valueType);
-PassOwnPtr<AXValue> createRelatedNodeListValue(AXObject::AXObjectVector& axObjects, const String& valueType = AXValueTypeEnum::IdrefList);
-
-PassOwnPtr<AXValueSource> createValueSource(NameSource&);
+std::unique_ptr<AXProperty> createProperty(const String& name, std::unique_ptr<AXValue>);
+std::unique_ptr<AXProperty> createProperty(IgnoredReason);
+
+std::unique_ptr<AXValue> createValue(const String& value, const String& type = AXValueTypeEnum::String);
+std::unique_ptr<AXValue> createValue(int value, const String& type = AXValueTypeEnum::Integer);
+std::unique_ptr<AXValue> createValue(float value, const String& valueType = AXValueTypeEnum::Number);
+std::unique_ptr<AXValue> createBooleanValue(bool value, const String& valueType = AXValueTypeEnum::Boolean);
+std::unique_ptr<AXValue> createRelatedNodeListValue(const AXObject*, String* name = nullptr, const String& valueType = AXValueTypeEnum::Idref);
+std::unique_ptr<AXValue> createRelatedNodeListValue(AXRelatedObjectVector&, const String& valueType);
+std::unique_ptr<AXValue> createRelatedNodeListValue(AXObject::AXObjectVector& axObjects, const String& valueType = AXValueTypeEnum::IdrefList);
+
+std::unique_ptr<AXValueSource> createValueSource(NameSource&);
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698