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

Side by Side Diff: dbus/message.h

Issue 1840913002: A11y setting: mono audio UI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef DBUS_MESSAGE_H_ 5 #ifndef DBUS_MESSAGE_H_
6 #define DBUS_MESSAGE_H_ 6 #define DBUS_MESSAGE_H_
7 7
8 #include <dbus/dbus.h> 8 #include <dbus/dbus.h>
9 #include <stddef.h> 9 #include <stddef.h>
10 #include <stdint.h> 10 #include <stdint.h>
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 void OpenDictEntry(MessageWriter* sub_writer); 305 void OpenDictEntry(MessageWriter* sub_writer);
306 306
307 // Close the container for a array/variant/struct/dict entry. 307 // Close the container for a array/variant/struct/dict entry.
308 void CloseContainer(MessageWriter* sub_writer); 308 void CloseContainer(MessageWriter* sub_writer);
309 309
310 // Appends the array of bytes. Arrays of bytes are often used for 310 // Appends the array of bytes. Arrays of bytes are often used for
311 // exchanging binary blobs hence it's worth having a specialized 311 // exchanging binary blobs hence it's worth having a specialized
312 // function. 312 // function.
313 void AppendArrayOfBytes(const uint8_t* values, size_t length); 313 void AppendArrayOfBytes(const uint8_t* values, size_t length);
314 314
315 void AppendArrayOfDoubles(const double* values, size_t length);
stevenjb 2016/03/29 01:05:19 Add a comment here (or add a single comment for th
316
315 // Appends the array of strings. Arrays of strings are often used for 317 // Appends the array of strings. Arrays of strings are often used for
316 // exchanging lists of names hence it's worth having a specialized 318 // exchanging lists of names hence it's worth having a specialized
317 // function. 319 // function.
318 void AppendArrayOfStrings(const std::vector<std::string>& strings); 320 void AppendArrayOfStrings(const std::vector<std::string>& strings);
319 321
320 // Appends the array of object paths. Arrays of object paths are often 322 // Appends the array of object paths. Arrays of object paths are often
321 // used when exchanging object paths, hence it's worth having a 323 // used when exchanging object paths, hence it's worth having a
322 // specialized function. 324 // specialized function.
323 void AppendArrayOfObjectPaths(const std::vector<ObjectPath>& object_paths); 325 void AppendArrayOfObjectPaths(const std::vector<ObjectPath>& object_paths);
324 326
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
408 // Returns true and advances the iterator on success. 410 // Returns true and advances the iterator on success.
409 // 411 //
410 // Arrays of bytes are often used for exchanging binary blobs hence it's 412 // Arrays of bytes are often used for exchanging binary blobs hence it's
411 // worth having a specialized function. 413 // worth having a specialized function.
412 // 414 //
413 // Ownership of the memory pointed to by |bytes| remains with the 415 // Ownership of the memory pointed to by |bytes| remains with the
414 // MessageReader; |bytes| must be copied if the contents will be referenced 416 // MessageReader; |bytes| must be copied if the contents will be referenced
415 // after the MessageReader is destroyed. 417 // after the MessageReader is destroyed.
416 bool PopArrayOfBytes(const uint8_t** bytes, size_t* length); 418 bool PopArrayOfBytes(const uint8_t** bytes, size_t* length);
417 419
420 bool PopArrayOfDoubles(const double** doubles, size_t* length);
stevenjb 2016/03/29 01:05:19 Ditto
421
418 // Gets the array of strings at the current iterator position. |strings| is 422 // Gets the array of strings at the current iterator position. |strings| is
419 // cleared before being modified. Returns true and advances the iterator on 423 // cleared before being modified. Returns true and advances the iterator on
420 // success. 424 // success.
421 // 425 //
422 // Arrays of strings are often used to communicate with D-Bus 426 // Arrays of strings are often used to communicate with D-Bus
423 // services like KWallet, hence it's worth having a specialized 427 // services like KWallet, hence it's worth having a specialized
424 // function. 428 // function.
425 bool PopArrayOfStrings(std::vector<std::string>* strings); 429 bool PopArrayOfStrings(std::vector<std::string>* strings);
426 430
427 // Gets the array of object paths at the current iterator position. 431 // Gets the array of object paths at the current iterator position.
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
486 490
487 Message* message_; 491 Message* message_;
488 DBusMessageIter raw_message_iter_; 492 DBusMessageIter raw_message_iter_;
489 493
490 DISALLOW_COPY_AND_ASSIGN(MessageReader); 494 DISALLOW_COPY_AND_ASSIGN(MessageReader);
491 }; 495 };
492 496
493 } // namespace dbus 497 } // namespace dbus
494 498
495 #endif // DBUS_MESSAGE_H_ 499 #endif // DBUS_MESSAGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698