1228 return WebEngine.this;
1229 }
1230
1231 public String getName() {
1232 return "document";
1233 }
1234 }
1235
1236
1237 /**
1238 * Returns the debugger associated with this web engine.
1239 * The debugger is an object that can be used to debug
1240 * the web page currently loaded into the web engine.
1241 * <p>
1242 * All methods of the debugger must be called on
1243 * the JavaFX Application Thread.
1244 * The message callback object registered with the debugger
1245 * is always called on the JavaFX Application Thread.
1246 * @return the debugger associated with this web engine.
1247 * The return value cannot be {@code null}.
1248 * @treatAsPrivate This is an internal API that can be changed or
1249 * removed in the future.
1250 * @deprecated This is an internal API that can be changed or
1251 * removed in the future.
1252 */
1253 @Deprecated
1254 public Debugger impl_getDebugger() {
1255 return debugger;
1256 }
1257
1258 /**
1259 * The debugger implementation.
1260 */
1261 private final class DebuggerImpl implements Debugger {
1262
1263 private boolean enabled;
1264 private Callback<String,Void> messageCallback;
1265
1266
1267 @Override
1268 public boolean isEnabled() {
1269 checkThread();
1270 return enabled;
1271 }
1272
1273 @Override
1274 public void setEnabled(boolean enabled) {
|
1228 return WebEngine.this;
1229 }
1230
1231 public String getName() {
1232 return "document";
1233 }
1234 }
1235
1236
1237 /**
1238 * Returns the debugger associated with this web engine.
1239 * The debugger is an object that can be used to debug
1240 * the web page currently loaded into the web engine.
1241 * <p>
1242 * All methods of the debugger must be called on
1243 * the JavaFX Application Thread.
1244 * The message callback object registered with the debugger
1245 * is always called on the JavaFX Application Thread.
1246 * @return the debugger associated with this web engine.
1247 * The return value cannot be {@code null}.
1248 */
1249 Debugger getDebugger() {
1250 return debugger;
1251 }
1252
1253 /**
1254 * The debugger implementation.
1255 */
1256 private final class DebuggerImpl implements Debugger {
1257
1258 private boolean enabled;
1259 private Callback<String,Void> messageCallback;
1260
1261
1262 @Override
1263 public boolean isEnabled() {
1264 checkThread();
1265 return enabled;
1266 }
1267
1268 @Override
1269 public void setEnabled(boolean enabled) {
|