jdk/src/java.desktop/macosx/classes/sun/awt/CGraphicsDevice.java
changeset 28235 0dfebfcb9f8a
parent 25859 3317bb8137f4
child 29256 751f31639710
equal deleted inserted replaced
28234:f694f2576719 28235:0dfebfcb9f8a
     1 /*
     1 /*
     2  * Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2012, 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
   200             }
   200             }
   201         }
   201         }
   202         return true;
   202         return true;
   203     }
   203     }
   204 
   204 
       
   205     @SuppressWarnings("deprecation")
   205     private static void enterFullScreenExclusive(Window w) {
   206     private static void enterFullScreenExclusive(Window w) {
   206         FullScreenCapable peer = (FullScreenCapable)w.getPeer();
   207         FullScreenCapable peer = (FullScreenCapable)w.getPeer();
   207         if (peer != null) {
   208         if (peer != null) {
   208             peer.enterFullScreenMode();
   209             peer.enterFullScreenMode();
   209         }
   210         }
   210     }
   211     }
   211 
   212 
       
   213     @SuppressWarnings("deprecation")
   212     private static void exitFullScreenExclusive(Window w) {
   214     private static void exitFullScreenExclusive(Window w) {
   213         FullScreenCapable peer = (FullScreenCapable)w.getPeer();
   215         FullScreenCapable peer = (FullScreenCapable)w.getPeer();
   214         if (peer != null) {
   216         if (peer != null) {
   215             peer.exitFullScreenMode();
   217             peer.exitFullScreenMode();
   216         }
   218         }