File:  [mozdev] / chimera / MyBrowserView.h
Revision 1.2: download - view: text, annotated - select for diffs - revision graph
Wed Jan 30 04:52:38 2002 UTC (17 years, 8 months ago) by macserv
Branches: MAIN
CVS tags: HEAD
Chimera: Header comments modified for consistency

    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@mozilla.org>
   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:     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;
   33: }
   34: 
   35: - (IBAction)load:(id)sender;
   36: - (void)awakeFromNib;
   37: - (void)setFrame:(NSRect)frameRect;
   38: - (NSBrowserView*)getBrowserView;
   39: - (BOOL)isBusy;
   40: 
   41: // NSBrowserListener messages
   42: - (void)onLoadingStarted;
   43: - (void)onLoadingCompleted:(BOOL)succeeded;
   44: - (void)onProgressChange:(int)currentBytes outOf:(int)maxBytes;
   45: - (void)onLocationChange:(NSURL*)url;
   46: 
   47: // NSBrowserContainer messages
   48: - (void)setStatus:(NSString *)statusString ofType:(NSStatusType)type;
   49: - (NSString *)title;
   50: - (void)setTitle:(NSString *)title;
   51: - (void)sizeBrowserTo:(NSSize)dimensions;
   52: - (NSBrowserView*)createBrowserWindow:(unsigned int)mask;
   53: 
   54: @end

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