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

Side by Side Diff: components/font_service/font_service_app.h

Issue 1877673002: Move legacyCreateTypeface to SkFontStyle. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove DEPS change now that Skia change has landed. 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
« no previous file with comments | « no previous file | components/font_service/font_service_app.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef COMPONENTS_FONT_SERVICE_FONT_SERVICE_APP_H_ 5 #ifndef COMPONENTS_FONT_SERVICE_FONT_SERVICE_APP_H_
6 #define COMPONENTS_FONT_SERVICE_FONT_SERVICE_APP_H_ 6 #define COMPONENTS_FONT_SERVICE_FONT_SERVICE_APP_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 19 matching lines...) Expand all
30 void Initialize(mojo::Connector* connector, const mojo::Identity& identity, 30 void Initialize(mojo::Connector* connector, const mojo::Identity& identity,
31 uint32_t id) override; 31 uint32_t id) override;
32 bool AcceptConnection(mojo::Connection* connection) override; 32 bool AcceptConnection(mojo::Connection* connection) override;
33 33
34 // mojo::InterfaceFactory<FontService>: 34 // mojo::InterfaceFactory<FontService>:
35 void Create(mojo::Connection* connection, 35 void Create(mojo::Connection* connection,
36 mojo::InterfaceRequest<FontService> request) override; 36 mojo::InterfaceRequest<FontService> request) override;
37 37
38 // FontService: 38 // FontService:
39 void MatchFamilyName(const mojo::String& family_name, 39 void MatchFamilyName(const mojo::String& family_name,
40 TypefaceStyle requested_style, 40 TypefaceStylePtr requested_style,
41 const MatchFamilyNameCallback& callback) override; 41 const MatchFamilyNameCallback& callback) override;
42 void OpenStream(uint32_t id_number, 42 void OpenStream(uint32_t id_number,
43 const OpenStreamCallback& callback) override; 43 const OpenStreamCallback& callback) override;
44 44
45 int FindOrAddPath(const SkString& path); 45 int FindOrAddPath(const SkString& path);
46 46
47 mojo::BindingSet<FontService> bindings_; 47 mojo::BindingSet<FontService> bindings_;
48 48
49 mojo::TracingImpl tracing_; 49 mojo::TracingImpl tracing_;
50 50
51 // We don't want to leak paths to our callers; we thus enumerate the paths of 51 // We don't want to leak paths to our callers; we thus enumerate the paths of
52 // fonts. 52 // fonts.
53 std::vector<SkString> paths_; 53 std::vector<SkString> paths_;
54 54
55 DISALLOW_COPY_AND_ASSIGN(FontServiceApp); 55 DISALLOW_COPY_AND_ASSIGN(FontServiceApp);
56 }; 56 };
57 57
58 } // namespace font_service 58 } // namespace font_service
59 59
60 #endif // COMPONENTS_FONT_SERVICE_FONT_SERVICE_APP_H_ 60 #endif // COMPONENTS_FONT_SERVICE_FONT_SERVICE_APP_H_
OLDNEW
« no previous file with comments | « no previous file | components/font_service/font_service_app.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698