File:  [mozdev] / chimera / MyBrowserView.h
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Tue Jan 29 10:01:11 2002 UTC (17 years, 8 months ago) by hyatt
Branches: MAIN
CVS tags: HEAD
Initial commit of Chimera, a Gecko-based browser with a native Cocoa front end.

    1: #import <Cocoa/Cocoa.h>
    2: #import "NSBrowserView.h"
    3: #import "BrowserWindowController.h"
    4: 
    5: @interface MyBrowserView : NSView <NSBrowserListener, NSBrowserContainer>
    6: {
    7:     IBOutlet id urlbar;
    8:     IBOutlet id status;
    9:     IBOutlet id progress;
   10:     IBOutlet id progressSuper;
   11:     IBOutlet id mWindowController;
   12:     
   13:     NSBrowserView* browserView;
   14:     NSString* defaultStatus;
   15:     NSString* loadingStatus;
   16:     
   17:     BOOL mIsBusy;
   18: }
   19: 
   20: - (IBAction)load:(id)sender;
   21: - (void)awakeFromNib;
   22: - (void)setFrame:(NSRect)frameRect;
   23: - (NSBrowserView*)getBrowserView;
   24: - (BOOL)isBusy;
   25: 
   26: // NSBrowserListener messages
   27: - (void)onLoadingStarted;
   28: - (void)onLoadingCompleted:(BOOL)succeeded;
   29: - (void)onProgressChange:(int)currentBytes outOf:(int)maxBytes;
   30: - (void)onLocationChange:(NSURL*)url;
   31: 
   32: // NSBrowserContainer messages
   33: - (void)setStatus:(NSString *)statusString ofType:(NSStatusType)type;
   34: - (NSString *)title;
   35: - (void)setTitle:(NSString *)title;
   36: - (void)sizeBrowserTo:(NSSize)dimensions;
   37: - (NSBrowserView*)createBrowserWindow:(unsigned int)mask;
   38: 
   39: @end

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