48 49 @Override 50 public void modalDisable(Dialog blocker, long blockerHWnd) 51 { 52 super.modalDisable(blocker, blockerHWnd); 53 ((EmbeddedFrame)target).notifyModalBlocked(blocker, true); 54 } 55 @Override 56 public void modalEnable(Dialog blocker) 57 { 58 super.modalEnable(blocker); 59 ((EmbeddedFrame)target).notifyModalBlocked(blocker, false); 60 } 61 62 public void setBoundsPrivate(int x, int y, int width, int height) { 63 setBounds(x, y, width, height, SET_BOUNDS | NO_EMBEDDED_CHECK); 64 } 65 66 public native Rectangle getBoundsPrivate(); 67 68 public native void synthesizeWmActivate(boolean doActivate); 69 70 @Override 71 public boolean isAccelCapable() { 72 // REMIND: Temp workaround for issues with using HW acceleration 73 // in the browser on Vista when DWM is enabled 74 // Note: isDWMCompositionEnabled is only relevant on Vista, returns 75 // false on other systems. 76 return !Win32GraphicsEnvironment.isDWMCompositionEnabled(); 77 } 78 } | 48 49 @Override 50 public void modalDisable(Dialog blocker, long blockerHWnd) 51 { 52 super.modalDisable(blocker, blockerHWnd); 53 ((EmbeddedFrame)target).notifyModalBlocked(blocker, true); 54 } 55 @Override 56 public void modalEnable(Dialog blocker) 57 { 58 super.modalEnable(blocker); 59 ((EmbeddedFrame)target).notifyModalBlocked(blocker, false); 60 } 61 62 public void setBoundsPrivate(int x, int y, int width, int height) { 63 setBounds(x, y, width, height, SET_BOUNDS | NO_EMBEDDED_CHECK); 64 } 65 66 public native Rectangle getBoundsPrivate(); 67 68 @Override 69 public boolean isAccelCapable() { 70 // REMIND: Temp workaround for issues with using HW acceleration 71 // in the browser on Vista when DWM is enabled 72 // Note: isDWMCompositionEnabled is only relevant on Vista, returns 73 // false on other systems. 74 return !Win32GraphicsEnvironment.isDWMCompositionEnabled(); 75 } 76 } |