1dcc8cf2e65d1aa555cce12431a16547e66b469eeSteve Block/* 281bc750723a18f21cd17d1b173cd2a4dda9cea6eBen Murdoch * Copyright (C) 2011 Apple Inc. All rights reserved. 3dcc8cf2e65d1aa555cce12431a16547e66b469eeSteve Block * 4dcc8cf2e65d1aa555cce12431a16547e66b469eeSteve Block * Redistribution and use in source and binary forms, with or without 5dcc8cf2e65d1aa555cce12431a16547e66b469eeSteve Block * modification, are permitted provided that the following conditions 6dcc8cf2e65d1aa555cce12431a16547e66b469eeSteve Block * are met: 7dcc8cf2e65d1aa555cce12431a16547e66b469eeSteve Block * 1. Redistributions of source code must retain the above copyright 8dcc8cf2e65d1aa555cce12431a16547e66b469eeSteve Block * notice, this list of conditions and the following disclaimer. 9dcc8cf2e65d1aa555cce12431a16547e66b469eeSteve Block * 2. Redistributions in binary form must reproduce the above copyright 10dcc8cf2e65d1aa555cce12431a16547e66b469eeSteve Block * notice, this list of conditions and the following disclaimer in the 11dcc8cf2e65d1aa555cce12431a16547e66b469eeSteve Block * documentation and/or other materials provided with the distribution. 12dcc8cf2e65d1aa555cce12431a16547e66b469eeSteve Block * 13dcc8cf2e65d1aa555cce12431a16547e66b469eeSteve Block * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' 14dcc8cf2e65d1aa555cce12431a16547e66b469eeSteve Block * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 15dcc8cf2e65d1aa555cce12431a16547e66b469eeSteve Block * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 16dcc8cf2e65d1aa555cce12431a16547e66b469eeSteve Block * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS 17dcc8cf2e65d1aa555cce12431a16547e66b469eeSteve Block * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 18dcc8cf2e65d1aa555cce12431a16547e66b469eeSteve Block * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 19dcc8cf2e65d1aa555cce12431a16547e66b469eeSteve Block * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 20dcc8cf2e65d1aa555cce12431a16547e66b469eeSteve Block * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 21dcc8cf2e65d1aa555cce12431a16547e66b469eeSteve Block * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 22dcc8cf2e65d1aa555cce12431a16547e66b469eeSteve Block * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 23dcc8cf2e65d1aa555cce12431a16547e66b469eeSteve Block * THE POSSIBILITY OF SUCH DAMAGE. 24dcc8cf2e65d1aa555cce12431a16547e66b469eeSteve Block */ 25dcc8cf2e65d1aa555cce12431a16547e66b469eeSteve Block 2681bc750723a18f21cd17d1b173cd2a4dda9cea6eBen Murdoch#ifndef FontInfo_h 2781bc750723a18f21cd17d1b173cd2a4dda9cea6eBen Murdoch#define FontInfo_h 28dcc8cf2e65d1aa555cce12431a16547e66b469eeSteve Block 2981bc750723a18f21cd17d1b173cd2a4dda9cea6eBen Murdoch#if PLATFORM(MAC) 3081bc750723a18f21cd17d1b173cd2a4dda9cea6eBen Murdoch#include <wtf/RetainPtr.h> 31dcc8cf2e65d1aa555cce12431a16547e66b469eeSteve Block#endif 32dcc8cf2e65d1aa555cce12431a16547e66b469eeSteve Block 3381bc750723a18f21cd17d1b173cd2a4dda9cea6eBen Murdochnamespace CoreIPC { 3481bc750723a18f21cd17d1b173cd2a4dda9cea6eBen Murdoch class ArgumentDecoder; 3581bc750723a18f21cd17d1b173cd2a4dda9cea6eBen Murdoch class ArgumentEncoder; 36dcc8cf2e65d1aa555cce12431a16547e66b469eeSteve Block} 37dcc8cf2e65d1aa555cce12431a16547e66b469eeSteve Block 3881bc750723a18f21cd17d1b173cd2a4dda9cea6eBen Murdochnamespace WebKit { 3981bc750723a18f21cd17d1b173cd2a4dda9cea6eBen Murdoch 4081bc750723a18f21cd17d1b173cd2a4dda9cea6eBen Murdochstruct FontInfo { 4181bc750723a18f21cd17d1b173cd2a4dda9cea6eBen Murdoch void encode(CoreIPC::ArgumentEncoder*) const; 4281bc750723a18f21cd17d1b173cd2a4dda9cea6eBen Murdoch static bool decode(CoreIPC::ArgumentDecoder*, FontInfo&); 4381bc750723a18f21cd17d1b173cd2a4dda9cea6eBen Murdoch 4481bc750723a18f21cd17d1b173cd2a4dda9cea6eBen Murdoch#if PLATFORM(MAC) 4581bc750723a18f21cd17d1b173cd2a4dda9cea6eBen Murdoch RetainPtr<CFDictionaryRef> fontAttributeDictionary; 4681bc750723a18f21cd17d1b173cd2a4dda9cea6eBen Murdoch#endif 4781bc750723a18f21cd17d1b173cd2a4dda9cea6eBen Murdoch}; 4881bc750723a18f21cd17d1b173cd2a4dda9cea6eBen Murdoch 4981bc750723a18f21cd17d1b173cd2a4dda9cea6eBen Murdoch} // namespace WebKit 50dcc8cf2e65d1aa555cce12431a16547e66b469eeSteve Block 5181bc750723a18f21cd17d1b173cd2a4dda9cea6eBen Murdoch#endif // FontInfo_h 52