File:  [mozdev] / chimera / MyBrowserView.h
Revision 1.7: download - view: text, annotated - select for diffs - revision graph
Mon Feb 11 03:43:12 2002 UTC (17 years, 9 months ago) by hyatt
Branches: MAIN
CVS tags: HEAD
Tab browser is coming online!

    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:
   11:  * 		David Hyatt		<hyatt@netscape.com>
   12:  *
   13:  *  Copyright (c) 2002 Mozilla.org.  All rights reserved.
   14:  */
   15: 
   16: #import <Cocoa/Cocoa.h>
   17: #import "NSBrowserView.h"
   18: #import "BrowserWindowController.h"
   19: 
   20: @interface MyBrowserView : NSView <NSBrowserListener, NSBrowserContainer>
   21: {
   22:     id urlbar;
   23:     id status;
   24:     id progress;
   25:     id progressSuper;
   26:     id mWindowController;
   27:     NSTabViewItem* mTab;
   28:     
   29:     NSBrowserView* browserView;
   30:     NSString* defaultStatus;
   31:     NSString* loadingStatus;
   32:     
   33:     BOOL mIsPrimary;
   34:     BOOL mIsBusy;
   35:     BOOL mOffline;
   36: }
   37: 
   38: - (IBAction)load:(id)sender;
   39: - (void)awakeFromNib;
   40: - (void)setFrame:(NSRect)frameRect;
   41: - (NSBrowserView*)getBrowserView;
   42: - (BOOL)isBusy;
   43: - (void)windowClosed;
   44: 
   45: -(void)makePrimaryBrowserView: (NSTabViewItem*)tab urlbar: (id)aUrlbar status: (id)aStatus
   46:     progress: (id)aProgress windowController: aWindowController;
   47:     
   48: // NSBrowserListener messages
   49: - (void)onLoadingStarted;
   50: - (void)onLoadingCompleted:(BOOL)succeeded;
   51: - (void)onProgressChange:(int)currentBytes outOf:(int)maxBytes;
   52: - (void)onLocationChange:(NSURL*)url;
   53: - (void)onStatusChange:(NSString*)aMessage;
   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>