[content shell] hook up testRunner.dumpEditingCallbacks
[chromium-blink-merge.git] / content / common / font_list.h
blob4f59e6d4d476ce01fafe6fff15cf380429c31039
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CONTENT_COMMON_FONT_LIST_H_
6 #define CONTENT_COMMON_FONT_LIST_H_
8 #include "base/memory/scoped_ptr.h"
10 namespace base {
11 class ListValue;
14 namespace content {
16 // Retrieves the fonts available on the current platform and returns them.
17 // The caller will own the returned pointer. Each entry will be a list of
18 // two strings, the first being the font family, and the second being the
19 // localized name.
21 // This function is potentially slow (the system may do a bunch of I/O) so be
22 // sure not to call this on a time-critical thread like the UI or I/O threads.
24 // Most callers will want to use the GetFontListAsync function in
25 // content/browser/font_list_async.h which does an asynchronous call.
26 scoped_ptr<base::ListValue> GetFontList_SlowBlocking();
28 } // namespace content
30 #endif // CONTENT_COMMON_FONT_LIST_H_