~itachi-san/fresh-player-plugin/main-bzr

192 by Rinat
move ppb_* prototypes into separate files
1
/*
1594 by Rinat Ibragimov
update year in copyright notice headers
2
 * Copyright © 2013-2016  Rinat Ibragimov
192 by Rinat
move ppb_* prototypes into separate files
3
 *
4
 * This file is part of FreshPlayerPlugin.
5
 *
6
 * Permission is hereby granted, free of charge, to any person obtaining a copy
7
 * of this software and associated documentation files (the "Software"), to deal
8
 * in the Software without restriction, including without limitation the rights
9
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
 * copies of the Software, and to permit persons to whom the Software is
11
 * furnished to do so, subject to the following conditions:
12
 *
13
 * The above copyright notice and this permission notice shall be included in all
14
 * copies or substantial portions of the Software.
15
 *
16
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
 * SOFTWARE.
23
 */
24
900 by Rinat
remove double underscores from include guards
25
#ifndef FPP_PPB_VIEW_H
26
#define FPP_PPB_VIEW_H
192 by Rinat
move ppb_* prototypes into separate files
27
28
#include <ppapi/c/ppb_view.h>
309 by Rinat
add PPB_View_Dev_0_1 interface
29
#include <ppapi/c/dev/ppb_view_dev.h>
192 by Rinat
move ppb_* prototypes into separate files
30
31
PP_Bool
32
ppb_view_is_view(PP_Resource resource);
33
34
PP_Bool
35
ppb_view_get_rect(PP_Resource resource, struct PP_Rect *rect);
36
37
PP_Bool
38
ppb_view_is_fullscreen(PP_Resource resource);
39
40
PP_Bool
41
ppb_view_is_visible(PP_Resource resource);
42
43
PP_Bool
44
ppb_view_is_page_visible(PP_Resource resource);
45
46
PP_Bool
47
ppb_view_get_clip_rect(PP_Resource resource, struct PP_Rect *clip);
48
49
float
50
ppb_view_get_device_scale(PP_Resource resource);
51
52
float
53
ppb_view_get_css_scale(PP_Resource resource);
54
1114 by Rinat Ibragimov
ppb_view: add stubs for ppb_view 1.2
55
PP_Bool
56
ppb_view_get_scroll_offset(PP_Resource resource, struct PP_Point *offset);
57
58
900 by Rinat
remove double underscores from include guards
59
#endif // FPP_PPB_VIEW_H