|
|
@@ -855,70 +855,6 @@ clear_parent_window() {
|
|
|
_parent_window = NULL;
|
|
|
}
|
|
|
|
|
|
-////////////////////////////////////////////////////////////////////
|
|
|
-// Function: WindowProperties::set_subprocess_window
|
|
|
-// Access: Published
|
|
|
-// Description: Specifies that the window should be created as a
|
|
|
-// "subprocess window", which is a special concept
|
|
|
-// needed on OSX, to support windows that may run in a
|
|
|
-// subprocess and communicate the output of their
|
|
|
-// rendering to a parent process.
|
|
|
-//
|
|
|
-// To use it, create a SubprocessWindowBuffer in the
|
|
|
-// parent process, pass the resulting temporary filename
|
|
|
-// to the child process, and set that filename here
|
|
|
-// before opening a window. Panda will open a
|
|
|
-// SubprocessWindow instead of a normal window; and that
|
|
|
-// class will take the output of the rendering and write
|
|
|
-// it to the SubprocessWindowBuffer for the parent
|
|
|
-// process to extract.
|
|
|
-//
|
|
|
-// This is particularly useful for implementing the web
|
|
|
-// browser plugin on OSX, which requires exactly this
|
|
|
-// sort of process isolation in order to render to the
|
|
|
-// browser page.
|
|
|
-//
|
|
|
-// This feature is not currently available on other
|
|
|
-// platforms (and they have no need of it).
|
|
|
-////////////////////////////////////////////////////////////////////
|
|
|
-INLINE void WindowProperties::
|
|
|
-set_subprocess_window(const Filename &filename) {
|
|
|
- _subprocess_window = filename;
|
|
|
- _specified |= S_subprocess_window;
|
|
|
-}
|
|
|
-
|
|
|
-////////////////////////////////////////////////////////////////////
|
|
|
-// Function: WindowProperties::get_subprocess_window
|
|
|
-// Access: Published
|
|
|
-// Description: Returns the filename specified to set_subprocess_window().
|
|
|
-////////////////////////////////////////////////////////////////////
|
|
|
-INLINE const Filename &WindowProperties::
|
|
|
-get_subprocess_window() const {
|
|
|
- return _subprocess_window;
|
|
|
-}
|
|
|
-
|
|
|
-////////////////////////////////////////////////////////////////////
|
|
|
-// Function: WindowProperties::has_subprocess_window
|
|
|
-// Access: Published
|
|
|
-// Description: Returns true if set_subprocess_window() was set.
|
|
|
-////////////////////////////////////////////////////////////////////
|
|
|
-INLINE bool WindowProperties::
|
|
|
-has_subprocess_window() const {
|
|
|
- return ((_specified & S_subprocess_window) != 0);
|
|
|
-}
|
|
|
-
|
|
|
-////////////////////////////////////////////////////////////////////
|
|
|
-// Function: WindowProperties::clear_subprocess_window
|
|
|
-// Access: Published
|
|
|
-// Description: Removes the subprocess_window specification from the
|
|
|
-// properties.
|
|
|
-////////////////////////////////////////////////////////////////////
|
|
|
-INLINE void WindowProperties::
|
|
|
-clear_subprocess_window() {
|
|
|
- _specified &= ~S_subprocess_window;
|
|
|
- _subprocess_window = Filename();
|
|
|
-}
|
|
|
-
|
|
|
|
|
|
INLINE ostream &
|
|
|
operator << (ostream &out, const WindowProperties &properties) {
|