OLD | NEW |
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 * Use of this source code is governed by a BSD-style license that can be | 2 * Use of this source code is governed by a BSD-style license that can be |
3 * found in the LICENSE file. | 3 * found in the LICENSE file. |
4 */ | 4 */ |
5 | 5 |
6 /** | 6 /** |
7 * This file contains the <code>PPB_Flash</code> interface. | 7 * This file contains the <code>PPB_Flash</code> interface. |
8 */ | 8 */ |
9 | 9 |
10 label Chrome { | 10 label Chrome { |
11 M17 = 12.0 | 11 M17 = 12.0, |
| 12 M19 = 12.1 |
12 }; | 13 }; |
13 | 14 |
14 /** | 15 /** |
15 * The <code>PPB_Flash</code> interface contains pointers to various functions | 16 * The <code>PPB_Flash</code> interface contains pointers to various functions |
16 * that are only needed to support Pepper Flash. | 17 * that are only needed to support Pepper Flash. |
17 */ | 18 */ |
18 interface PPB_Flash { | 19 interface PPB_Flash { |
19 /** | 20 /** |
20 * Sets or clears the rendering hint that the given plugin instance is always | 21 * Sets or clears the rendering hint that the given plugin instance is always |
21 * on top of page content. Somewhat more optimized painting can be used in | 22 * on top of page content. Somewhat more optimized painting can be used in |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 * Loads the given font in a more priviledged process on Windows. Call this if | 98 * Loads the given font in a more priviledged process on Windows. Call this if |
98 * Windows is giving errors for font calls. See | 99 * Windows is giving errors for font calls. See |
99 * content/renderer/font_cache_dispatcher_win.cc | 100 * content/renderer/font_cache_dispatcher_win.cc |
100 * | 101 * |
101 * The parameter is a pointer to a LOGFONTW structure. | 102 * The parameter is a pointer to a LOGFONTW structure. |
102 * | 103 * |
103 * On non-Windows platforms, this function does nothing. | 104 * On non-Windows platforms, this function does nothing. |
104 */ | 105 */ |
105 void PreloadFontWin( | 106 void PreloadFontWin( |
106 [in] mem_t logfontw); | 107 [in] mem_t logfontw); |
| 108 |
| 109 /** |
| 110 * Returns whether the given rectangle (in the plugin) is topmost, i.e., above |
| 111 * all other web content. |
| 112 */ |
| 113 [version=12.1] |
| 114 PP_Bool IsRectTopmost( |
| 115 [in] PP_Instance instance, |
| 116 [in] PP_Rect rect); |
| 117 |
| 118 /** |
| 119 * Invokes printing for the given instance. |
| 120 */ |
| 121 [version=12.1] |
| 122 int32_t InvokePrinting( |
| 123 [in] PP_Instance instance); |
| 124 |
| 125 /** |
| 126 * Indicates that there's activity and, e.g., the screensaver shouldn't kick |
| 127 * in. |
| 128 */ |
| 129 [version=12.1] |
| 130 void UpdateActivity( |
| 131 [in] PP_Instance instance); |
107 }; | 132 }; |
108 | 133 |
109 #inline c | 134 #inline c |
110 /** | 135 /** |
111 * The old version of the interface, which cannot be generated from IDL. | 136 * The old version of the interface, which cannot be generated from IDL. |
112 * TODO(viettrungluu): Remove this when enough time has passed. crbug.com/104184 | 137 * TODO(viettrungluu): Remove this when enough time has passed. crbug.com/104184 |
113 */ | 138 */ |
114 #define PPB_FLASH_INTERFACE_11_0 "PPB_Flash;11" | 139 #define PPB_FLASH_INTERFACE_11_0 "PPB_Flash;11" |
115 struct PPB_Flash_11 { | 140 struct PPB_Flash_11 { |
116 void (*SetInstanceAlwaysOnTop)(PP_Instance instance, PP_Bool on_top); | 141 void (*SetInstanceAlwaysOnTop)(PP_Instance instance, PP_Bool on_top); |
(...skipping 10 matching lines...) Expand all Loading... |
127 struct PP_Var (*GetProxyForURL)(PP_Instance instance, const char* url); | 152 struct PP_Var (*GetProxyForURL)(PP_Instance instance, const char* url); |
128 int32_t (*Navigate)(PP_Resource request_info, | 153 int32_t (*Navigate)(PP_Resource request_info, |
129 const char* target, | 154 const char* target, |
130 bool from_user_action); | 155 bool from_user_action); |
131 void (*RunMessageLoop)(PP_Instance instance); | 156 void (*RunMessageLoop)(PP_Instance instance); |
132 void (*QuitMessageLoop)(PP_Instance instance); | 157 void (*QuitMessageLoop)(PP_Instance instance); |
133 double (*GetLocalTimeZoneOffset)(PP_Instance instance, PP_Time t); | 158 double (*GetLocalTimeZoneOffset)(PP_Instance instance, PP_Time t); |
134 struct PP_Var (*GetCommandLineArgs)(PP_Module module); | 159 struct PP_Var (*GetCommandLineArgs)(PP_Module module); |
135 }; | 160 }; |
136 #endinl | 161 #endinl |
OLD | NEW |