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

Side by Side Diff: mojo/services/contacts/interfaces/contacts.mojom

Issue 1741963002: Auto-formatted all .mojom files. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 9 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 [DartPackage="mojo_services"] 5 [DartPackage="mojo_services"]
6 module contacts; 6 module contacts;
7 7
8 // A user contact. 8 // A user contact.
9 struct Contact { 9 struct Contact {
10 int64 id; 10 int64 id;
11 string name; 11 string name;
12 }; 12 };
13 13
14 // Interface to query current user contacts. 14 // Interface to query current user contacts.
15 [ServiceName="contacts::ContactsService"] 15 [ServiceName="contacts::ContactsService"]
16 interface ContactsService { 16 interface ContactsService {
17
18 // Returns the number of contacts that match the given |filter|. |filter| 17 // Returns the number of contacts that match the given |filter|. |filter|
19 // will be matched against the contact name without considering the case. A 18 // will be matched against the contact name without considering the case. A
20 // contact will match as soon as a part of the name match the filter. 19 // contact will match as soon as a part of the name match the filter.
21 GetCount(string? filter) => (uint64 count); 20 GetCount(string? filter) => (uint64 count);
22 21
23 // Returns an extract of the list of contacts matching |filter|. |filter| 22 // Returns an extract of the list of contacts matching |filter|. |filter|
24 // will be matched against the contact name without considering the case. A 23 // will be matched against the contact name without considering the case. A
25 // contact will match as soon as a part of the name match the filter. 24 // contact will match as soon as a part of the name match the filter.
26 // Contacts are ordered by |name|. The |offset| first contacts are skipped 25 // Contacts are ordered by |name|. The |offset| first contacts are skipped
27 // and at most |limit| contacts are returned. 26 // and at most |limit| contacts are returned.
28 Get(string? filter, uint32 offset, uint32 limit) => (array<Contact> contacts); 27 Get(string? filter, uint32 offset, uint32 limit) => (array<Contact> contacts);
29 28
30 // Returns the emails associated with the contact with the given |id|. 29 // Returns the emails associated with the contact with the given |id|.
31 GetEmails(int64 id) => (array<string> emails); 30 GetEmails(int64 id) => (array<string> emails);
32 31
33 // Returns an url of the photo for the contact with the given |id|. If 32 // Returns an url of the photo for the contact with the given |id|. If
34 // |high_resolution| is true, a high resolution photo is returned, otherwise 33 // |high_resolution| is true, a high resolution photo is returned, otherwise
35 // a thumbnail is returned. 34 // a thumbnail is returned.
36 GetPhoto(int64 id, bool high_resolution) => (string? photo_url); 35 GetPhoto(int64 id, bool high_resolution) => (string? photo_url);
37 }; 36 };
OLDNEW
« no previous file with comments | « mojo/services/clipboard/interfaces/clipboard.mojom ('k') | mojo/services/files/interfaces/directory.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698