Annotation of chimera/MyBrowserView.h, revision 1.7

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: #import "BrowserWindowController.h"
                     19: 
                     20: @interface MyBrowserView : NSView <NSBrowserListener, NSBrowserContainer>
                     21: {
1.7     ! hyatt      22:     id urlbar;
        !            23:     id status;
        !            24:     id progress;
        !            25:     id progressSuper;
        !            26:     id mWindowController;
        !            27:     NSTabViewItem* mTab;
1.1       hyatt      28:     
                     29:     NSBrowserView* browserView;
                     30:     NSString* defaultStatus;
                     31:     NSString* loadingStatus;
                     32:     
1.7     ! hyatt      33:     BOOL mIsPrimary;
1.1       hyatt      34:     BOOL mIsBusy;
1.5       hyatt      35:     BOOL mOffline;
1.1       hyatt      36: }
                     37: 
                     38: - (IBAction)load:(id)sender;
                     39: - (void)awakeFromNib;
                     40: - (void)setFrame:(NSRect)frameRect;
                     41: - (NSBrowserView*)getBrowserView;
                     42: - (BOOL)isBusy;
1.4       hyatt      43: - (void)windowClosed;
1.1       hyatt      44: 
1.7     ! hyatt      45: -(void)makePrimaryBrowserView: (NSTabViewItem*)tab urlbar: (id)aUrlbar status: (id)aStatus
        !            46:     progress: (id)aProgress windowController: aWindowController;
        !            47:     
1.1       hyatt      48: // NSBrowserListener messages
                     49: - (void)onLoadingStarted;
                     50: - (void)onLoadingCompleted:(BOOL)succeeded;
                     51: - (void)onProgressChange:(int)currentBytes outOf:(int)maxBytes;
                     52: - (void)onLocationChange:(NSURL*)url;
1.6       hyatt      53: - (void)onStatusChange:(NSString*)aMessage;
1.1       hyatt      54: 
                     55: // NSBrowserContainer messages
                     56: - (void)setStatus:(NSString *)statusString ofType:(NSStatusType)type;
                     57: - (NSString *)title;
                     58: - (void)setTitle:(NSString *)title;
                     59: - (void)sizeBrowserTo:(NSSize)dimensions;
                     60: - (NSBrowserView*)createBrowserWindow:(unsigned int)mask;
                     61: 
                     62: @end

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