Back to index

lightning-sunbird  0.9+nobinonly
MyBrowserView.h
Go to the documentation of this file.
00001 #import <Cocoa/Cocoa.h>
00002 #import "CHBrowserView.h"
00003 
00004 @interface MyBrowserView : NSView <CHBrowserListener, CHBrowserContainer>
00005 {
00006     IBOutlet id urlbar;
00007     IBOutlet id status;
00008     IBOutlet id progress;
00009     IBOutlet id progressSuper;
00010     CHBrowserView* browserView;
00011     NSString* defaultStatus;
00012     NSString* loadingStatus;
00013 }
00014 - (IBAction)load:(id)sender;
00015 - (void)awakeFromNib;
00016 - (void)setFrame:(NSRect)frameRect;
00017 
00018 // CHBrowserListener messages
00019 - (void)onLoadingStarted;
00020 - (void)onLoadingCompleted:(BOOL)succeeded;
00021 - (void)onProgressChange:(int)currentBytes outOf:(int)maxBytes;
00022 - (void)onLocationChange:(NSString*)url;
00023 - (void)onStatusChange:(NSString*)aMessage;
00024 - (void)onSecurityStateChange:(unsigned long)newState;
00025 // Called when a context menu should be shown.
00026 - (void)onShowContextMenu:(int)flags domEvent:(nsIDOMEvent*)aEvent domNode:(nsIDOMNode*)aNode;
00027 // Called when a tooltip should be shown or hidden
00028 - (void)onShowTooltip:(NSPoint)where withText:(NSString*)text;
00029 - (void)onHideTooltip;
00030 
00031 // CHBrowserContainer messages
00032 - (void)setStatus:(NSString *)statusString ofType:(NSStatusType)type;
00033 - (NSString *)title;
00034 - (void)setTitle:(NSString *)title;
00035 - (void)sizeBrowserTo:(NSSize)dimensions;
00036 - (CHBrowserView*)createBrowserWindow:(unsigned int)mask;
00037 - (NSMenu*)getContextMenu;
00038 - (NSWindow*)getNativeWindow;
00039 - (BOOL)shouldAcceptDragFromSource:(id)dragSource;
00040 
00041 @end