Home | History | Annotate | Download | only in Plugins

Lines Matching full:self

121     WebCoreObjCFinalizeOnMainThread(self);
136 self = [super initWithFrame:frame];
137 if (!self)
155 [self setAttributeKeys:mutableKeys.get() andValues:mutableValues.get()];
158 [self setAttributeKeys:keys andValues:values];
166 _haltable = new WebHaltablePlugin(self);
167 return self;
214 NSURL *URL = [self URLWithCString:URLCString];
219 Frame* frame = core([self webFrame]);
296 [self removeTrackingRect:_trackingTag];
303 [[self window] autorelease];
309 [self removeTrackingRect];
312 [[self window] retain];
313 _trackingTag = [self addTrackingRect:[self bounds] owner:self userData:nil assumeInside:NO];
329 [self stopTimers];
331 if (!_isStarted || [[self window] isMiniaturized])
334 [self startTimers];
350 return NSIntersectionRect([self convertRect:[self _windowClipRect] fromView:nil], [super visibleRect]);
355 [self renewGState];
368 [self windowFocusChanged:activate];
381 [self focusChanged];
386 ASSERT([self window]);
388 NSWindow *theWindow = [self window];
391 [notificationCenter addObserver:self selector:@selector(windowWillClose:)
393 [notificationCenter addObserver:self selector:@selector(windowBecameKey:)
395 [notificationCenter addObserver:self selector:@selector(windowResignedKey:)
397 [notificationCenter addObserver:self selector:@selector(windowDidMiniaturize:)
399 [notificationCenter addObserver:self selector:@selector(windowDidDeminiaturize:)
402 [notificationCenter addObserver:self selector:@selector(loginWindowDidSwitchFromUser:)
404 [notificationCenter addObserver:self selector:@selector(loginWindowDidSwitchToUser:)
411 [notificationCenter removeObserver:self name:NSWindowWillCloseNotification object:nil];
412 [notificationCenter removeObserver:self name:NSWindowDidBecomeKeyNotification object:nil];
413 [notificationCenter removeObserver:self name:NSWindowDidResignKeyNotification object:nil];
414 [notificationCenter removeObserver:self name:NSWindowDidMiniaturizeNotification object:nil];
415 [notificationCenter removeObserver:self name:NSWindowDidDeminiaturizeNotification object:nil];
416 [notificationCenter removeObserver:self name:LoginWindowDidSwitchFromUserNotification object:nil];
417 [notificationCenter removeObserver:self name:LoginWindowDidSwitchToUserNotification object:nil];
422 ASSERT([self currentWindow]);
430 ASSERT([self webView]);
432 if (![[[self webView] preferences] arePlugInsEnabled])
435 Frame* frame = core([self webFrame]);
446 BOOL result = [self createPlugin];
459 [[self webView] addPluginInstanceView:self];
461 if ([self currentWindow])
462 [self updateAndSetWindow];
464 if ([self window]) {
465 [self addWindowObservers];
466 if ([[self window] isKeyWindow]) {
467 [self sendActivateEvent:YES];
469 [self restartTimers];
472 [self resetTrackingRect];
474 [self loadStream];
479 if (![self shouldStop])
482 [self removeTrackingRect];
487 if (Frame* frame = core([self webFrame])) {
494 [[self webView] removePluginInstanceView:self];
497 [self stopTimers];
500 [self removeWindowObservers];
502 [self destroyPlugin];
509 Element *element = [self element];
511 CGImageRef cgImage = CGImageRetain([core([self webFrame])->nodeImage(element).get() CGImageForProposedRect:nil context:nil hints:nil]);
513 RetainPtr<CGImageSourceRef> imageRef(AdoptCF, CGImageSourceCreateWithData((CFDataRef)[core([self webFrame])->nodeImage(element).get() TIFFRepresentation], 0));
522 [self stop];
529 Element* element = [self element];
544 [self start];
549 ASSERT([self element]->renderer());
552 [self performSelector:@selector(_clearSubstituteImage) withObject:nil afterDelay:ClearSubstituteImageDelay];
562 NSWindow *window = [self window];
563 return !window || [window isMiniaturized] || [NSApp isHidden] || ![self isDescendantOf:[[self window] contentView]] || [self isHiddenOrHasHiddenAncestor];
584 NSImage *snapshot = [[NSImage alloc] initWithSize: [self bounds].size];
587 [self drawRect:[self bounds]];
608 [self removeTrackingRect];
609 [self removeWindowObservers];
612 [self setHasFocus:NO];
615 if ([[self webView] hostWindow]) {
617 [self stopTimers];
620 [self stop];
624 [[NSNotificationCenter defaultCenter] removeObserver:self name:WebPreferencesChangedInternalNotification object:nil];
635 [self stop];
639 [[NSNotificationCenter defaultCenter] removeObserver:self name:WebPreferencesChangedInternalNotification object:nil];
645 [self resetTrackingRect];
647 if ([self window]) {
650 [[NSNotificationCenter defaultCenter] addObserver:self
655 _isPrivateBrowsingEnabled = [[[self webView] preferences] privateBrowsingEnabled];
658 [self start];
662 if ([self window]) {
663 [self restartTimers];
664 [self addWindowObservers];
666 } else if ([[self webView] hostWindow]) {
670 [self updateAndSetWindow];
676 if (!hostWindow && ![self window]) {
678 [self stop];
681 [[NSNotificationCenter defaultCenter] removeObserver:self name:WebPreferencesChangedInternalNotification object:nil];
687 if ([[self webView] hostWindow]) {
689 [self start];
697 [self stop];
702 [self sendActivateEvent:YES];
703 [self invalidatePluginContentRect:[self bounds]];
704 [self restartTimers];
709 [self sendActivateEvent:NO];
710 [self invalidatePluginContentRect:[self bounds]];
711 [self restartTimers];
716 [self stopTimers];
721 [self restartTimers];
726 [self stopTimers];
731 [self restartTimers];
736 WebPreferences *preferences = [[self webView] preferences];
744 if ([self currentWindow]) {
745 [self start];
748 [self stop];
749 [self invalidatePluginContentRect:[self bounds]];
756 [self privateBrowsingModeDidChange];
771 if (![self window])
774 [self updateAndSetWindow];
776 [self resetTrackingRect];
781 _isCompletelyObscured = NSIsEmptyRect([self visibleRect]);
783 [self restartTimers];
788 [self setHasFocus:YES];
794 [self setHasFocus:NO];
800 return [[self webFrame] _dataSource];
810 return [[self webFrame] webView];
815 return [self window] ? [self window] : [[self webView] hostWindow];
825 [self sendModifierEventWithKeyCode:7 character:'x'];
830 [self sendModifierEventWithKeyCode:8 character:'c'];
835 [self sendModifierEventWithKeyCode:9 character:'v'];
840 [self sendModifierEventWithKeyCode:0 character:'a'];
847 [self mouseDown:theEvent];
852 [self mouseUp:theEvent];
875 sourcePointInScreenSpace = [self convertPoint:sourcePoint toView:nil];
876 sourcePointInScreenSpace = [[self currentWindow] convertBaseToScreen:sourcePointInScreenSpace];
880 sourcePointInScreenSpace = [[self currentWindow] convertBaseToScreen:sourcePoint];
884 sourcePoint.y = [[self currentWindow] frame].size.height - sourcePoint.y;
885 sourcePointInScreenSpace = [[self currentWindow] convertBaseToScreen:sourcePoint];
905 destPoint = [[self currentWindow] convertScreenToBase:sourcePointInScreenSpace];
906 destPoint = [self convertPoint:destPoint fromView:nil];
910 destPoint = [[self currentWindow] convertScreenToBase:sourcePointInScreenSpace];
914 destPoint = [[self currentWindow] convertScreenToBase:sourcePointInScreenSpace];
915 destPoint.y = [[self currentWindow] frame].size.height - destPoint.y;
946 Frame* frame = core([self webFrame]);