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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
/* Copyright (c) 2011 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.
*/
/* This file contains PPB_Flash interface. */
/* PPB_Flash interface. */
interface PPB_Flash_0_7 {
/* Sets or clears the rendering hint that the given plugin instance is always
* on top of page content. Somewhat more optimized painting can be used in
* this case.
*/
void SetInstanceAlwaysOnTop(
[in] PP_Instance instance,
[in] PP_Bool on_top);
PP_Bool DrawGlyphs(
[in] PP_Instance instance,
[in] PP_Resource pp_image_data,
[in] PP_FontDescription_Dev font_desc,
[in] uint32_t color,
[in] PP_Point position,
[in] PP_Rect clip,
[in] float_t[3][3] transformation,
[in] uint32_t glyph_count,
[in, size_is(glyph_count)] uint16_t[] glyph_indices,
[in, size_is(glyph_count)] PP_Point[] glyph_advances);
/* Retrieves the proxy that will be used for the given URL. The result will
* be a string in PAC format, or an undefined var on error.
*/
PP_Var GetProxyForURL(
[in] PP_Instance instance,
[in] str_t url);
/* Navigate to URL. May open a new tab if target is not "_self". Return true
* if success. This differs from javascript:window.open() in that it bypasses
* the popup blocker, even when this is not called from an event handler.
*/
PP_Bool NavigateToURL(
[in] PP_Instance instance,
[in] str_t url,
[in] str_t target);
/* Runs a nested message loop. The plugin will be reentered from this call.
* This function is used in places where Flash would normally enter a nested
* message loop (e.g., when displaying context menus), but Pepper provides
* only an asynchronous call. After performing that asynchronous call, call
* |RunMessageLoop()|. In the callback, call |QuitMessageLoop()|.
*/
void RunMessageLoop(
[in] PP_Instance instance);
/* Posts a quit message for the outermost nested message loop. Use this to
* exit and return back to the caller after you call RunMessageLoop.
*/
void QuitMessageLoop(
[in] PP_Instance instance);
};
|