chromium/ppapi/c/trusted/ppb_browser_font_trusted.h

/* Copyright 2012 The Chromium Authors
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

/* From trusted/ppb_browser_font_trusted.idl,
 *   modified Thu Mar 28 10:14:27 2013.
 */

#ifndef PPAPI_C_TRUSTED_PPB_BROWSER_FONT_TRUSTED_H_
#define PPAPI_C_TRUSTED_PPB_BROWSER_FONT_TRUSTED_H_

#include "ppapi/c/pp_bool.h"
#include "ppapi/c/pp_instance.h"
#include "ppapi/c/pp_macros.h"
#include "ppapi/c/pp_point.h"
#include "ppapi/c/pp_rect.h"
#include "ppapi/c/pp_resource.h"
#include "ppapi/c/pp_size.h"
#include "ppapi/c/pp_stdint.h"
#include "ppapi/c/pp_var.h"

#define PPB_BROWSERFONT_TRUSTED_INTERFACE_1_0
#define PPB_BROWSERFONT_TRUSTED_INTERFACE

/**
 * @file
 * This file defines the <code>PPB_BrowserFont_Trusted</code> interface.
 */


/**
 * @addtogroup Enums
 * @{
 */
PP_BrowserFont_Trusted_Family;
PP_COMPILE_ASSERT_SIZE_IN_BYTES();

/**
 * Specifies the font weight. Normally users will only use NORMAL or BOLD.
 */
PP_BrowserFont_Trusted_Weight;
PP_COMPILE_ASSERT_SIZE_IN_BYTES();
/**
 * @}
 */

/**
 * @addtogroup Structs
 * @{
 */
struct PP_BrowserFont_Trusted_Description {};
PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES();

struct PP_BrowserFont_Trusted_Metrics {};
PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES();

struct PP_BrowserFont_Trusted_TextRun {};
PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES();
/**
 * @}
 */

/**
 * @addtogroup Interfaces
 * @{
 */
/**
 * Provides an interface for native browser text rendering.
 *
 * This API is "trusted" not for security reasons, but because it can not be
 * implemented efficiently when running out-of-process in Browser Client. In
 * this case, WebKit is in another process and every text call would require a
 * synchronous IPC to the renderer. It is, however, available to native
 * (non-NaCl) out-of-process PPAPI plugins since WebKit is available in the
 * plugin process.
 */
struct PPB_BrowserFont_Trusted_1_0 {};

PPB_BrowserFont_Trusted;
/**
 * @}
 */

#endif  /* PPAPI_C_TRUSTED_PPB_BROWSER_FONT_TRUSTED_H_ */