< prev index next >

modules/javafx.graphics/src/main/java/com/sun/glass/ui/View.java

Print this page
rev 10044 : 8166230: use @Native annotation in graphics, media classes
Reviewed-by: kcr

*** 1,7 **** /* ! * Copyright (c) 2010, 2015, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 2010, 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 25,49 **** package com.sun.glass.ui; import com.sun.glass.events.MouseEvent; import com.sun.glass.events.ViewEvent; import java.lang.ref.WeakReference; import java.security.AccessController; import java.security.PrivilegedAction; import java.util.Map; public abstract class View { ! public final static int GESTURE_NO_VALUE = Integer.MAX_VALUE; ! public final static double GESTURE_NO_DOUBLE_VALUE = Double.NaN; ! public final static byte IME_ATTR_INPUT = 0x00; ! public final static byte IME_ATTR_TARGET_CONVERTED = 0x01; ! public final static byte IME_ATTR_CONVERTED = 0x02; ! public final static byte IME_ATTR_TARGET_NOTCONVERTED = 0x03; ! public final static byte IME_ATTR_INPUT_ERROR = 0x04; final static boolean accessible = AccessController.doPrivileged((PrivilegedAction<Boolean>) () -> { String force = System.getProperty("glass.accessible.force"); if (force != null) return Boolean.parseBoolean(force); --- 25,50 ---- package com.sun.glass.ui; import com.sun.glass.events.MouseEvent; import com.sun.glass.events.ViewEvent; + import java.lang.annotation.Native; import java.lang.ref.WeakReference; import java.security.AccessController; import java.security.PrivilegedAction; import java.util.Map; public abstract class View { ! @Native public final static int GESTURE_NO_VALUE = Integer.MAX_VALUE; ! @Native public final static double GESTURE_NO_DOUBLE_VALUE = Double.NaN; ! @Native public final static byte IME_ATTR_INPUT = 0x00; ! @Native public final static byte IME_ATTR_TARGET_CONVERTED = 0x01; ! @Native public final static byte IME_ATTR_CONVERTED = 0x02; ! @Native public final static byte IME_ATTR_TARGET_NOTCONVERTED = 0x03; ! @Native public final static byte IME_ATTR_INPUT_ERROR = 0x04; final static boolean accessible = AccessController.doPrivileged((PrivilegedAction<Boolean>) () -> { String force = System.getProperty("glass.accessible.force"); if (force != null) return Boolean.parseBoolean(force);
< prev index next >