Lines Matching full:window
201 // the entire window frame (or structure region to use the Carbon term) rather then just the window content.
214 NSRect contentRect = [contentView convertRect:[contentView frame] toView:nil]; // convert to window-relative coordinates
280 // Flip Y to convert NSWindow coordinates to top-left-based window coordinates.
289 // Look at the Carbon port to convert top-left-based window coordinates into top-left-based content coordinates.
291 // If drawing with QuickDraw, fix the window port so that it has the same bounds as the NSWindow's
307 window.type = NPWindowTypeWindow;
308 window.x = (int32)boundsInWindow.origin.x;
309 window.y = (int32)boundsInWindow.origin.y;
310 window.width = static_cast<uint32>(NSWidth(boundsInWindow));
311 window.height = static_cast<uint32>(NSHeight(boundsInWindow));
314 // 1) it's not really in a window or off-screen or has no height or width.
315 // 2) window.x is a "big negative number" which is how WebCore expresses off-screen widgets.
316 // 3) the window is miniaturized or the app is hidden
317 // 4) we're inside of viewWillMoveToWindow: with a nil window. In this case, superviews may already have nil
319 if (window.width <= 0 || window.height <= 0 || window.x < -100000 || [self shouldClipOutPlugin]) {
329 if (window.width <= 0)
330 window.width = specifiedWidth > 0 ? specifiedWidth : 100;
331 if (window.height <= 0)
332 window.height = specifiedHeight > 0 ? specifiedHeight : 100;
334 window.clipRect.bottom = window.clipRect.top;
335 window.clipRect.left = window.clipRect.right;
342 getNPRect(NSZeroRect, window.clipRect);
344 getNPRect(visibleRectInWindow, window.clipRect);
359 window.window = &nPort;
423 window.x = 0;
424 window.y = 0;
425 window.window = &nPort;
428 // from the window above.
429 getNPRect(CGRectOffset(CGContextGetClipBoundingBox(currentContext), -origin.x, origin.y), window.clipRect);
435 window.clipRect.left + nPort.qdPort.portx, window.clipRect.top + nPort.qdPort.porty,
436 window.clipRect.right + nPort.qdPort.portx, window.clipRect.bottom + nPort.qdPort.porty);
438 // Clip to the dirty region if drawing to a window. When drawing to another bitmap context, do not clip.
440 // Clip to dirty region so plug-in does not draw over already-drawn regions of the window that are
509 // Update the plugin's window/context
510 nPort.cgPort.window = windowRef;
512 window.window = &nPort.cgPort;
519 // Clip to the dirty region if drawing to a window. When drawing to another bitmap context, do not clip.
609 if (![self window])
641 // We may have changed the window, so inform the plug-in.
853 if (window.x != lastSetWindow.x)
855 if (window.y != lastSetWindow.y)
857 if (window.width != lastSetWindow.width)
859 if (window.height != lastSetWindow.height)
861 if (window.clipRect.top != lastSetWindow.clipRect.top)
863 if (window.clipRect.left != lastSetWindow.clipRect.left)
865 if (window.clipRect.bottom != lastSetWindow.clipRect.bottom)
867 if (window.clipRect.right != lastSetWindow.clipRect.right)
869 if (window.type != lastSetWindow.type)
885 if (nPort.cgPort.window != lastSetPort.cgPort.window)
892 if (window.window != lastSetWindow.window)
909 WindowRef windowRef = (WindowRef)[[self window] windowRef];
924 // be hidden and be attached to a window. There are two exceptions to this rule:
927 // bits to the window backing store, thus to do so requires a new call to
932 // accomplished by allowing -saveAndSetNewPortStateForUpdate to "clip-out" the window's
984 npErr = [_pluginPackage.get() pluginFuncs]->setwindow(plugin, &window);
993 LOG(Plugins, "NPP_SetWindow (QuickDraw): %d, port=0x%08x, window.x:%d window.y:%d window.width:%d window.height:%d",
994 npErr, (int)nPort.qdPort.port, (int)window.x, (int)window.y, (int)window.width, (int)window.height);
999 LOG(Plugins, "NPP_SetWindow (CoreGraphics): %d, window=%p, context=%p, window.x:%d window.y:%d window.width:%d window.height:%d window.clipRect size:%dx%d",
1000 npErr, nPort.cgPort.window, nPort.cgPort.context, (int)window.x, (int)window.y, (int)window.width, (int)window.height,
1001 window.clipRect.right - window.clipRect.left, window.clipRect.bottom - window.clipRect.top);
1005 LOG(Plugins, "NPP_SetWindow (CoreAnimation): %d, window=%p window.x:%d window.y:%d window.width:%d window.height:%d",
1006 npErr, window.window, nPort.cgPort.context, (int)window.x, (int)window.y, (int)window.width, (int)window.height);
1015 lastSetWindow = window;
1172 // Setting the window type to 0 ensures that NPP_SetWindow will be called if the plug-in is restarted.
1227 // Avoid Window Media Player crash when these attributes are present.
1624 // FIXME - need to get rid of this window creation which
1966 [[self window] displayIfNeeded];
2399 pixelsWide:window.width
2400 pixelsHigh:window.height
2413 SetRect(&printGWorldBounds, 0, 0, window.width, window.height);
2429 printNPWindow.window = &printGWorld; // Normally this is an NP_Port, but when printing it is the actual CGrafPtr
2432 printNPWindow.width = window.width;
2433 printNPWindow.height = window.height;
2436 printNPWindow.clipRect.right = window.width;
2437 printNPWindow.clipRect.bottom = window.height;
2438 printNPWindow.type = NPWindowTypeDrawable; // Offscreen graphics port as opposed to a proper window
2443 npPrint.print.embedPrint.window = printNPWindow;