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

Side by Side Diff: components/font_service/public/interfaces/font_service.mojom

Issue 2555853003: Break up common_custom_types.mojom. (Closed)
Patch Set: Created 4 years 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 module font_service.mojom; 5 module font_service.mojom;
6 6
7 import "mojo/common/common_custom_types.mojom"; 7 import "mojo/common/file.mojom";
8 8
9 enum TypefaceSlant { 9 enum TypefaceSlant {
10 ROMAN = 0, 10 ROMAN = 0,
11 ITALIC = 1, 11 ITALIC = 1,
12 OBLIQUE = 2, 12 OBLIQUE = 2,
13 }; 13 };
14 14
15 struct TypefaceStyle { 15 struct TypefaceStyle {
16 uint16 weight; 16 uint16 weight;
17 uint8 width; 17 uint8 width;
(...skipping 18 matching lines...) Expand all
36 // up a service to match fonts and load them, 36 // up a service to match fonts and load them,
37 interface FontService { 37 interface FontService {
38 // Returns the best match for |family_name| and |style|. On error, returns a 38 // Returns the best match for |family_name| and |style|. On error, returns a
39 // null |identity|. 39 // null |identity|.
40 MatchFamilyName(string family_name, TypefaceStyle style) => 40 MatchFamilyName(string family_name, TypefaceStyle style) =>
41 (FontIdentity? identity, string family_name, TypefaceStyle style); 41 (FontIdentity? identity, string family_name, TypefaceStyle style);
42 42
43 // Returns a handle to the raw font specified by |id_number|. 43 // Returns a handle to the raw font specified by |id_number|.
44 OpenStream(uint32 id_number) => (mojo.common.mojom.File? font_handle); 44 OpenStream(uint32 id_number) => (mojo.common.mojom.File? font_handle);
45 }; 45 };
OLDNEW
« no previous file with comments | « components/filesystem/public/interfaces/file.mojom ('k') | components/leveldb/public/interfaces/leveldb.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698