Annotation of chimera/MyBrowserView.h, revision 1.2

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:
        !            11:  *             David Hyatt             <hyatt@mozilla.org>
        !            12:  *
        !            13:  *  Copyright (c) 2002 Mozilla.org. All rights reserved.
        !            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;
                     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>