diff options
Diffstat (limited to 'chromium/content/public/common/font_cache_win.mojom')
-rw-r--r-- | chromium/content/public/common/font_cache_win.mojom | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/chromium/content/public/common/font_cache_win.mojom b/chromium/content/public/common/font_cache_win.mojom new file mode 100644 index 00000000000..46fa04c9784 --- /dev/null +++ b/chromium/content/public/common/font_cache_win.mojom @@ -0,0 +1,20 @@ +// Copyright 2017 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +module content.mojom; + +import "mojo/common/logfont_win.mojom"; + +// Messages sent from child processes to the browser on Windows only. This file +// will not be built on other platforms. +interface FontCacheWin { + // Request that the given font be loaded by the browser so it's cached by the + // OS. This must wait for the browser to finish to guarantee the font has been + // cached. See ChildProcessHost::PreCacheFont() for details. + [Sync] + PreCacheFont(mojo.common.mojom.LOGFONT log_font) => (); + + // Release the cached fonts. + ReleaseCachedFonts(); +}; |