Annotation of chimera/MyBrowserView.h, revision 1.9

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.1       hyatt      35: }
                     36: 
                     37: - (IBAction)load:(id)sender;
                     38: - (void)awakeFromNib;
                     39: - (void)setFrame:(NSRect)frameRect;
                     40: - (NSBrowserView*)getBrowserView;
                     41: - (BOOL)isBusy;
1.4       hyatt      42: - (void)windowClosed;
1.1       hyatt      43: 
1.9     ! hyatt      44: -(NSString*)getCurrentURLSpec;
        !            45: 
1.7       hyatt      46: -(void)makePrimaryBrowserView: (NSTabViewItem*)tab urlbar: (id)aUrlbar status: (id)aStatus
1.8       hyatt      47:     progress: (id)aProgress windowController: (id)aWindowController;
                     48: -(void)disconnectView;
                     49: 
1.1       hyatt      50: // NSBrowserListener messages
                     51: - (void)onLoadingStarted;
                     52: - (void)onLoadingCompleted:(BOOL)succeeded;
                     53: - (void)onProgressChange:(int)currentBytes outOf:(int)maxBytes;
                     54: - (void)onLocationChange:(NSURL*)url;
1.6       hyatt      55: - (void)onStatusChange:(NSString*)aMessage;
1.1       hyatt      56: 
                     57: // NSBrowserContainer messages
                     58: - (void)setStatus:(NSString *)statusString ofType:(NSStatusType)type;
                     59: - (NSString *)title;
                     60: - (void)setTitle:(NSString *)title;
                     61: - (void)sizeBrowserTo:(NSSize)dimensions;
                     62: - (NSBrowserView*)createBrowserWindow:(unsigned int)mask;
                     63: 
                     64: @end

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