Annotation of chimera/MyBrowserView.h, revision 1.5

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: {
                     22:     IBOutlet id urlbar;
                     23:     IBOutlet id status;
                     24:     IBOutlet id progress;
                     25:     IBOutlet id progressSuper;
                     26:     IBOutlet id mWindowController;
                     27:     
                     28:     NSBrowserView* browserView;
                     29:     NSString* defaultStatus;
                     30:     NSString* loadingStatus;
                     31:     
                     32:     BOOL mIsBusy;
1.5     ! hyatt      33:     BOOL mOffline;
1.1       hyatt      34: }
                     35: 
                     36: - (IBAction)load:(id)sender;
                     37: - (void)awakeFromNib;
                     38: - (void)setFrame:(NSRect)frameRect;
                     39: - (NSBrowserView*)getBrowserView;
                     40: - (BOOL)isBusy;
1.4       hyatt      41: - (void)windowClosed;
1.1       hyatt      42: 
                     43: // NSBrowserListener messages
                     44: - (void)onLoadingStarted;
                     45: - (void)onLoadingCompleted:(BOOL)succeeded;
                     46: - (void)onProgressChange:(int)currentBytes outOf:(int)maxBytes;
                     47: - (void)onLocationChange:(NSURL*)url;
                     48: 
                     49: // NSBrowserContainer messages
                     50: - (void)setStatus:(NSString *)statusString ofType:(NSStatusType)type;
                     51: - (NSString *)title;
                     52: - (void)setTitle:(NSString *)title;
                     53: - (void)sizeBrowserTo:(NSSize)dimensions;
                     54: - (NSBrowserView*)createBrowserWindow:(unsigned int)mask;
                     55: 
                     56: @end

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