Path: blob/master/src/java.desktop/share/classes/sun/awt/AWTPermissions.java
41152 views
/*1* Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation. Oracle designates this7* particular file as subject to the "Classpath" exception as provided8* by Oracle in the LICENSE file that accompanied this code.9*10* This code is distributed in the hope that it will be useful, but WITHOUT11* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or12* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License13* version 2 for more details (a copy is included in the LICENSE file that14* accompanied this code).15*16* You should have received a copy of the GNU General Public License version17* 2 along with this work; if not, write to the Free Software Foundation,18* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.19*20* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA21* or visit www.oracle.com if you need additional information or have any22* questions.23*/24package sun.awt;2526import java.awt.AWTPermission;2728/**29* Defines the {@code AWTPermission} objects used for permission checks.30*/3132public final class AWTPermissions {33private AWTPermissions() { }3435public static final AWTPermission TOPLEVEL_WINDOW_PERMISSION =36new AWTPermission("showWindowWithoutWarningBanner");3738public static final AWTPermission ACCESS_CLIPBOARD_PERMISSION =39new AWTPermission("accessClipboard");4041public static final AWTPermission CHECK_AWT_EVENTQUEUE_PERMISSION =42new AWTPermission("accessEventQueue");4344public static final AWTPermission TOOLKIT_MODALITY_PERMISSION =45new AWTPermission("toolkitModality");4647public static final AWTPermission READ_DISPLAY_PIXELS_PERMISSION =48new AWTPermission("readDisplayPixels");4950public static final AWTPermission CREATE_ROBOT_PERMISSION =51new AWTPermission("createRobot");5253public static final AWTPermission WATCH_MOUSE_PERMISSION =54new AWTPermission("watchMousePointer");5556public static final AWTPermission SET_WINDOW_ALWAYS_ON_TOP_PERMISSION =57new AWTPermission("setWindowAlwaysOnTop");5859public static final AWTPermission ALL_AWT_EVENTS_PERMISSION =60new AWTPermission("listenToAllAWTEvents");6162public static final AWTPermission ACCESS_SYSTEM_TRAY_PERMISSION =63new AWTPermission("accessSystemTray");64}656667