blob: a8a4b6e3448c9e33eac3a0177414c77bafa56ea4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
// Copyright (c) 2010 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.
#ifndef WEBKIT_GLUE_PLUGINS_PEPPER_PRIVATE2_H_
#define WEBKIT_GLUE_PLUGINS_PEPPER_PRIVATE2_H_
#include "build/build_config.h"
#include "third_party/ppapi/c/pp_point.h"
#include "third_party/ppapi/c/pp_rect.h"
#include "webkit/glue/plugins/pepper_resource.h"
struct PP_FontDescription_Dev;
struct PPB_Private2;
namespace pepper {
class Private2 {
public:
// Returns a pointer to the interface implementing PPB_Private2 that is
// exposed to the plugin.
static const PPB_Private2* GetInterface();
static bool DrawGlyphs(PP_Resource pp_image_data,
const PP_FontDescription_Dev* font_desc,
uint32_t color,
PP_Point position,
PP_Rect clip,
float transformation[3][3],
uint32_t glyph_count,
uint16_t glyph_indices[],
PP_Point glyph_advances[])
#if defined(OS_LINUX)
;
#else
{ return false; }
#endif
};
} // namespace pepper
#endif // WEBKIT_GLUE_PLUGINS_PEPPER_PRIVATE2_H_
|