jdk/src/macosx/native/sun/awt/AWTView.h
changeset 23255 ebd69e3d93c5
parent 13647 de61414bbcf2
child 23328 4c53a6ebc779
equal deleted inserted replaced
23254:cfd1819394cd 23255:ebd69e3d93c5
     1 /*
     1 /*
     2  * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    27 #import <JavaNativeFoundation/JavaNativeFoundation.h>
    27 #import <JavaNativeFoundation/JavaNativeFoundation.h>
    28 
    28 
    29 #import "CDragSource.h"
    29 #import "CDragSource.h"
    30 #import "CDropTarget.h"
    30 #import "CDropTarget.h"
    31 
    31 
    32 @interface AWTView : NSView<NSTextInputClient> {
    32 @interface AWTView : NSView<NSTextInputClient, CDragSourceHolder, CDropTargetHolder> {
    33 @private
    33 @private
    34     jobject m_cPlatformView;
    34     jobject m_cPlatformView;
    35 
    35 
    36     // Handler for the tracking area needed for Enter/Exit events management.
    36     // Handler for the tracking area needed for Enter/Exit events management.
    37     NSTrackingArea* rolloverTrackingArea;
    37     NSTrackingArea* rolloverTrackingArea;
    59 @property (nonatomic, retain) id cglLayer;
    59 @property (nonatomic, retain) id cglLayer;
    60 @property (nonatomic) BOOL mouseIsOver;
    60 @property (nonatomic) BOOL mouseIsOver;
    61 
    61 
    62 - (id) initWithRect:(NSRect) rect platformView:(jobject)cPlatformView windowLayer:(CALayer*)windowLayer;
    62 - (id) initWithRect:(NSRect) rect platformView:(jobject)cPlatformView windowLayer:(CALayer*)windowLayer;
    63 - (void) deliverJavaMouseEvent: (NSEvent *) event;
    63 - (void) deliverJavaMouseEvent: (NSEvent *) event;
    64 - (void) resetTrackingArea;
       
    65 - (void) deliverJavaKeyEventHelper: (NSEvent *) event;
       
    66 - (jobject) awtComponent:(JNIEnv *)env;
    64 - (jobject) awtComponent:(JNIEnv *)env;
    67 
       
    68 - (void) setDragSource:(CDragSource *)source;
       
    69 - (void) setDropTarget:(CDropTarget *)target;
       
    70 
       
    71 
    65 
    72 // Input method-related events
    66 // Input method-related events
    73 - (void)setInputMethod:(jobject)inputMethod;
    67 - (void)setInputMethod:(jobject)inputMethod;
    74 - (void)abandonInput;
    68 - (void)abandonInput;
    75 
    69