Annotation of chimera/MyBrowserView.h, revision 1.10

1.2       macserv     1: /*
                      2:  *  Chimera.app
                      3:  *  Cocoa application which embeds Gecko
                      4:  *
                      5:  *  MyBrowserView.h
                      6:  *  ---------------------------------------------------
                      7:  *  This is the NSBrowserView (NSView subclass) which represents
                      8:  *     the embedded Gecko browser view.
                      9:  *
                     10:  *  Code owners:
1.3       macserv    11:  *             David Hyatt             <hyatt@netscape.com>
1.2       macserv    12:  *
1.3       macserv    13:  *  Copyright (c) 2002 Mozilla.org.  All rights reserved.
1.2       macserv    14:  */
                     15: 
1.1       hyatt      16: #import <Cocoa/Cocoa.h>
                     17: #import "NSBrowserView.h"
                     18: 
                     19: @interface MyBrowserView : NSView <NSBrowserListener, NSBrowserContainer>
                     20: {
1.7       hyatt      21:     id urlbar;
                     22:     id status;
                     23:     id progress;
                     24:     id progressSuper;
                     25:     id mWindowController;
                     26:     NSTabViewItem* mTab;
1.1       hyatt      27:     
                     28:     NSBrowserView* browserView;
                     29:     NSString* defaultStatus;
                     30:     NSString* loadingStatus;
                     31:     
1.7       hyatt      32:     BOOL mIsPrimary;
1.1       hyatt      33:     BOOL mIsBusy;
1.5       hyatt      34:     BOOL mOffline;
1.10    ! hyatt      35:     BOOL mListenersAttached; // We hook up our click and context menu listeners lazily.
        !            36:                              // If we never become the primary view, we don't bother creating the listeners.
1.1       hyatt      37: }
                     38: 
                     39: - (IBAction)load:(id)sender;
                     40: - (void)awakeFromNib;
                     41: - (void)setFrame:(NSRect)frameRect;
                     42: - (NSBrowserView*)getBrowserView;
                     43: - (BOOL)isBusy;
1.4       hyatt      44: - (void)windowClosed;
1.1       hyatt      45: 
1.9       hyatt      46: -(NSString*)getCurrentURLSpec;
                     47: 
1.7       hyatt      48: -(void)makePrimaryBrowserView: (NSTabViewItem*)tab urlbar: (id)aUrlbar status: (id)aStatus
1.8       hyatt      49:     progress: (id)aProgress windowController: (id)aWindowController;
                     50: -(void)disconnectView;
                     51: 
1.1       hyatt      52: // NSBrowserListener messages
                     53: - (void)onLoadingStarted;
                     54: - (void)onLoadingCompleted:(BOOL)succeeded;
                     55: - (void)onProgressChange:(int)currentBytes outOf:(int)maxBytes;
                     56: - (void)onLocationChange:(NSURL*)url;
1.6       hyatt      57: - (void)onStatusChange:(NSString*)aMessage;
1.1       hyatt      58: 
                     59: // NSBrowserContainer messages
                     60: - (void)setStatus:(NSString *)statusString ofType:(NSStatusType)type;
                     61: - (NSString *)title;
                     62: - (void)setTitle:(NSString *)title;
                     63: - (void)sizeBrowserTo:(NSSize)dimensions;
                     64: - (NSBrowserView*)createBrowserWindow:(unsigned int)mask;
                     65: 
                     66: @end

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>