< prev index next >
src/java.desktop/unix/classes/sun/awt/X11/XEmbedServerTester.java
Print this page
*** 1,7 ****
/*
! * Copyright (c) 2003, 2014, 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) 2003, 2018, 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
*** 53,68 ****
volatile int eventWaited = -1, eventReceived = -1;
int mapped;
int accel_key, accel_keysym, accel_mods;
static Rectangle initialBounds = new Rectangle(0, 0, 100, 100);
Robot robot;
! Rectangle serverBounds[]; // first rectangle is for the server frame, second is for dummy frame, others are for its children
private static final int SERVER_BOUNDS = 0, OTHER_FRAME = 1, SERVER_FOCUS = 2, SERVER_MODAL = 3, MODAL_CLOSE = 4;
LinkedList<Integer> events = new LinkedList<Integer>();
! private XEmbedServerTester(Rectangle serverBounds[], long parent) {
this.parent = parent;
focusedKind = -1;
focusedServerComponent = -1;
reparent = false;
windowActive = false;
--- 53,68 ----
volatile int eventWaited = -1, eventReceived = -1;
int mapped;
int accel_key, accel_keysym, accel_mods;
static Rectangle initialBounds = new Rectangle(0, 0, 100, 100);
Robot robot;
! Rectangle[] serverBounds; // first rectangle is for the server frame, second is for dummy frame, others are for its children
private static final int SERVER_BOUNDS = 0, OTHER_FRAME = 1, SERVER_FOCUS = 2, SERVER_MODAL = 3, MODAL_CLOSE = 4;
LinkedList<Integer> events = new LinkedList<Integer>();
! private XEmbedServerTester(Rectangle[] serverBounds, long parent) {
this.parent = parent;
focusedKind = -1;
focusedServerComponent = -1;
reparent = false;
windowActive = false;
*** 84,94 ****
if (xembedLog.isLoggable(PlatformLogger.Level.FINER)) {
xembedLog.finer("XEmbed client(tester), embedder window: " + Long.toHexString(parent));
}
}
! public static XEmbedServerTester getTester(Rectangle serverBounds[], long parent) {
return new XEmbedServerTester(serverBounds, parent);
}
private void dumpReceivedEvents() {
if (xembedLog.isLoggable(PlatformLogger.Level.FINER)) {
--- 84,94 ----
if (xembedLog.isLoggable(PlatformLogger.Level.FINER)) {
xembedLog.finer("XEmbed client(tester), embedder window: " + Long.toHexString(parent));
}
}
! public static XEmbedServerTester getTester(Rectangle[] serverBounds, long parent) {
return new XEmbedServerTester(serverBounds, parent);
}
private void dumpReceivedEvents() {
if (xembedLog.isLoggable(PlatformLogger.Level.FINER)) {
< prev index next >