Lines Matching full:window
129 // Do not defer window creation, to make sure -windowNumber is created (needed by WebWindowScaleAnimation).
130 NSWindow *window = [[WebFullscreenWindow alloc] initWithContentRect:NSZeroRect styleMask:NSBorderlessWindowMask backing:NSBackingStoreBuffered defer:NO];
131 self = [super initWithWindow:window];
132 [window release];
191 // listeners on that Element's window, listening for changes in media play states.
194 // the events on the old element's window, if necessary, as well.
199 DOMWindow* window = _element->document()->domWindow();
200 if (window) {
201 window->removeEventListener(eventNames.playEvent, _mediaEventListener.get(), true);
202 window->removeEventListener(eventNames.pauseEvent, _mediaEventListener.get(), true);
203 window->removeEventListener(eventNames.endedEvent, _mediaEventListener.get(), true);
210 DOMWindow* window = _element->document()->domWindow();
211 if (window) {
212 window->addEventListener(eventNames.playEvent, _mediaEventListener, true);
213 window->addEventListener(eventNames.pauseEvent, _mediaEventListener, true);
214 window->addEventListener(eventNames.endedEvent, _mediaEventListener, true);
256 [[_webView window] display];
258 [[self window] close];
284 // Move the webView into our fullscreen Window
288 // Do not swap the placeholder into place if already is in a window,
289 // assuming the placeholder's window will always be the webView's
290 // original window.
291 if (![_placeholderView window]) {
298 [[[self window] contentView] addSubview:webView];
300 [webView setFrame:[[[self window] contentView] bounds]];
303 WebFullscreenWindow* window = [self _fullscreenWindow];
304 [window setBackgroundColor:[NSColor blackColor]];
305 [window setOpaque:YES];
309 [[[window animationView] layer] setOpacity:0];
346 // Update our presentation parameters, and ensure that the full screen window occupies the
349 NSWindow* window = [self window];
350 [window setFrame:[[window screen] frame] display:YES];
382 webViewFrame.origin = [[webView window] convertBaseToScreen:webViewFrame.origin];
387 // monitors, we must create a window large enough to contain the destination
390 [[self window] setFrame:windowFrame display:YES];
393 // been on a different screen. Temporarily change the collectionBehavior of the window:
394 NSWindowCollectionBehavior behavior = [[self window] collectionBehavior];
395 [[self window] setCollectionBehavior:NSWindowCollectionBehaviorCanJoinAllSpaces];
396 [[self window] makeKeyAndOrderFront:self];
397 [[self window] setCollectionBehavior:behavior];
401 NSRect backgroundBounds = {[[self window] convertScreenToBase:screenFrame.origin], screenFrame.size};
519 // The user may have moved the fullscreen window in Spaces, so temporarily change
520 // the collectionBehavior of the webView's window:
521 NSWindow* webWindow = [[self webView] window];
524 [webWindow orderWindow:NSWindowBelow relativeTo:[[self window] windowNumber]];
528 // webView was moved to the fullscreen window. Check to see
529 // if the _placeholderView exists and is in a window before
531 if (_placeholderView && [_placeholderView window]) {
532 // Move the webView back to its own native window:
544 WebFullscreenWindow* window = [self _fullscreenWindow];
545 [[[window animationView] layer] setOpacity:1];
546 [window setBackgroundColor:[NSColor clearColor]];
547 [window setOpaque:NO];
633 NSScreen* fullscreenScreen = [[self window] screen];
767 return (WebFullscreenWindow *)[self window];