Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Protected Attributes
WindowDelegate Class Reference

#import <nsCocoaWindow.h>

Collaboration diagram for WindowDelegate:
Collaboration graph

List of all members.

Public Member Functions

(id- initWithGeckoWindow:
(void- windowDidResize:
(void- windowDidBecomeMain: [implementation]
(void- windowDidResignMain: [implementation]
(void- windowDidBecomeKey: [implementation]
(void- windowDidResignKey: [implementation]
(void- windowDidMove: [implementation]

Protected Attributes


Detailed Description

Definition at line 56 of file nsCocoaWindow.h.

Member Function Documentation

Definition at line 1671 of file

  [super init];
  mGeckoWindow = geckoWind;
  return self;
- (void) windowDidBecomeKey: (NSNotification *)  aNotification [implementation]

Definition at line 1703 of file

                          :(NSNotification *)aNotification
  //printf("we're key window\n");
- (void) windowDidBecomeMain: (NSNotification *)  aNotification [implementation]

Definition at line 1691 of file

                           :(NSNotification *)aNotification
  //printf("got activation\n");
- (void) windowDidMove: (NSNotification *)  aNotification [implementation]

Definition at line 1715 of file

                     :(NSNotification *)aNotification
- (void) windowDidResignKey: (NSNotification *)  aNotification [implementation]

Definition at line 1709 of file

                          :(NSNotification *)aNotification
  //printf("we're not the key window\n");
- (void) windowDidResignMain: (NSNotification *)  aNotification [implementation]

Definition at line 1697 of file

                           :(NSNotification *)aNotification
  //printf("got deactivate\n");
- (void) windowDidResize: (NSNotification *)  aNotification

Definition at line 1678 of file

                       :(NSNotification *)aNotification
  if ( !mGeckoWindow->IsResizing() ) {
    // must remember to give Gecko top-left, not straight cocoa origin
    // and that Gecko already compensates for the title bar, so we have to
    // strip it out here.
    NSRect frameRect = [[aNotification object] frame];
    mGeckoWindow->Resize ( NS_STATIC_CAST(PRInt32,frameRect.size.width),
                            NS_STATIC_CAST(PRInt32,frameRect.size.height - nsCocoaWindow::kTitleBarHeight), PR_TRUE );

Here is the call graph for this function:

Member Data Documentation

- (nsCocoaWindow*) mGeckoWindow [protected]

Definition at line 58 of file nsCocoaWindow.h.

The documentation for this class was generated from the following files: