202
edits
| BrettWilson (talk | contribs) | BrettWilson (talk | contribs)   (2D header refactor) | ||
| Line 184: | Line 184: | ||
| === 2D Rendering === | === 2D Rendering === | ||
| ====  | ==== Background ==== | ||
| Old-style NPAPI plugins display 2D graphics in one of two modes: windowless or windowed, each with their own features and limitations. The plugin can specify which mode it would prefer to execute in. | Old-style NPAPI plugins display 2D graphics in one of two modes: windowless or windowed, each with their own features and limitations. The plugin can specify which mode it would prefer to execute in. | ||
| Line 206: | Line 206: | ||
| * From the browser's perspective, it is difficult to manage the child windows. For example, keep them and the page in sync when the page scrolls is challenging. | * From the browser's perspective, it is difficult to manage the child windows. For example, keep them and the page in sync when the page scrolls is challenging. | ||
| ====  | ==== API Overview ==== | ||
| We propose that only windowless plugins be supported, that compositing should be done outside the plugin, and that no native OS events should be delivered to the plugin. New APIs and events will be added to fill in the resulting holes in functionality. | We propose that only windowless plugins be supported, that compositing should be done outside the plugin, and that no native OS events should be delivered to the plugin. New APIs and events will be added to fill in the resulting holes in functionality. | ||
| Line 252: | Line 252: | ||
| } NPDeviceContext2D;</pre> | } NPDeviceContext2D;</pre> | ||
| ====  | ==== Example ==== | ||
| <pre>/* Get the 2D device function pointers. */ | <pre>/* Get the 2D device function pointers. */ | ||
edits