/*
 * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
 */

#import "common.h"
#import "com_sun_glass_events_WindowEvent.h"
#import "com_sun_glass_ui_Window.h"
#import "com_sun_glass_ui_Window_Level.h"
#import "com_sun_glass_ui_mac_MacWindow.h"

#import "GlassMacros.h"
#import "GlassWindow.h"
#import "GlassWindow+Java.h"
#import "GlassWindow+Overrides.h"
#import "GlassEmbeddedWindow+Overrides.h"

// all display related operations are NOPs

@implementation GlassEmbeddedWindow (Overrides)

- (void)becomeKeyWindow
{
    
}

- (void)becomeMainWindow
{
    
}

- (BOOL)canBecomeKeyWindow
{
    return NO;
}

- (BOOL)canBecomeMainWindow
{
    return NO;
}

- (BOOL)canBecomeVisibleWithoutLogin
{
    return NO;
}

- (void)center
{
    
}

- (void)display
{
    
}

- (void)displayIfNeeded
{
    
}

- (BOOL)displaysWhenScreenProfileChanges
{
    return NO;
}

- (void)flushWindow
{
    
}

- (void)flushWindowIfNeeded
{
    
}

- (BOOL)isExcludedFromWindowsMenu
{
    return YES;
}

- (BOOL)isFlushWindowDisabled
{
    return YES;
}

- (BOOL)isKeyWindow
{
    return NO;
}

- (BOOL)isMainWindow
{
    return NO;
}

- (BOOL)isVisible
{
    return NO;
}

- (void)layoutIfNeeded
{
    
}

- (void)makeKeyAndOrderFront:(id)sender
{
    
}

- (void)makeKeyWindow
{
    
}

- (void)makeMainWindow
{
    
}

- (void)miniaturize:(id)sender
{
    
}

- (void)orderBack:(id)sender
{
    
}

- (void)orderFront:(id)sender
{
    
}

- (void)orderFrontRegardless
{
    
}

- (void)orderOut:(id)sender
{
    
}

- (void)orderWindow:(NSWindowOrderingMode)orderingMode relativeTo:(NSInteger)otherWindowNumber
{
    
}

- (void)resignKeyWindow
{
    
}

- (void)resignMainWindow
{
    
}

- (void)setFrame:(NSRect)windowFrame display:(BOOL)displayViews
{
    [super setFrame:windowFrame display:NO];
}

- (void)setFrame:(NSRect)windowFrame display:(BOOL)displayViews animate:(BOOL)performAnimation
{
    [super setFrame:windowFrame display:NO animate:NO];
}

- (void)setTitle:(NSString *)title
{
    
}

- (void)setToolbar:(NSToolbar *)toolbar
{
    
}

- (void)setViewsNeedDisplay:(BOOL)viewsNeedDisplay
{
    
}

- (void)toggleFullScreen:(id)sender
{
    
}

- (void)zoom:(id)sender
{
    
}

@end
