Lines Matching refs:properties_values
86 // Returns whether the object is a directory/folder/album. |properties_values|
88 bool IsDirectory(IPortableDeviceValues* properties_values) {
89 DCHECK(properties_values);
91 HRESULT hr = properties_values->GetGuidValue(WPD_OBJECT_CONTENT_TYPE,
105 // Returns the name of the object from |properties_values|. If the object has
107 base::string16 GetObjectName(IPortableDeviceValues* properties_values) {
108 DCHECK(properties_values);
111 HRESULT hr = properties_values->GetStringValue(WPD_OBJECT_ORIGINAL_FILE_NAME,
114 hr = properties_values->GetStringValue(WPD_OBJECT_NAME, &buffer);
121 // specified by the |properties_values|. On success, fills in
123 void GetLastModifiedTime(IPortableDeviceValues* properties_values,
125 DCHECK(properties_values);
128 HRESULT hr = properties_values->GetValue(WPD_OBJECT_DATE_MODIFIED,
136 HRESULT hr = properties_values->GetValue(WPD_OBJECT_DATE_CREATED,
152 // specified by the |properties_values|. On failure, return -1.
153 int64 GetObjectSize(IPortableDeviceValues* properties_values) {
154 DCHECK(properties_values);
156 HRESULT hr = properties_values->GetUnsignedLargeIntegerValue(WPD_OBJECT_SIZE,
205 base::win::ScopedComPtr<IPortableDeviceValues> properties_values;
208 properties_values.Receive());
212 *is_directory = IsDirectory(properties_values.get());
213 *name = GetObjectName(properties_values.get());
226 GetLastModifiedTime(properties_values.get(), last_modified_time);
228 int64 object_size = GetObjectSize(properties_values.get());