org.cef.handler.CefRenderHandlerAdapter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-cef Show documentation
Show all versions of java-cef Show documentation
java-cef maven support by johness
// Copyright (c) 2014 The Chromium Embedded Framework Authors. All rights
// reserved. Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.
package org.cef.handler;
import java.awt.Point;
import java.awt.Rectangle;
import java.nio.ByteBuffer;
import org.cef.browser.CefBrowser;
import org.cef.callback.CefDragData;
/**
* An abstract adapter class for receiving render events.
* The methods in this class are empty.
* This class exists as convenience for creating handler objects.
*/
public abstract class CefRenderHandlerAdapter implements CefRenderHandler {
@Override
public void onCursorChange(CefBrowser browser,
int cursorIdentifer) {
return;
}
@Override
public Rectangle getViewRect(CefBrowser browser) {
return new Rectangle(0,0,0,0);
}
@Override
public Point getScreenPoint(CefBrowser browser, Point viewPoint) {
return new Point(0,0);
}
@Override
public void onPopupShow(CefBrowser browser,
boolean show) {
}
@Override
public void onPopupSize(CefBrowser browser,
Rectangle size) {
}
@Override
public void onPaint(CefBrowser browser,
boolean popup,
Rectangle[] dirtyRects,
ByteBuffer buffer,
int width,
int height) {
}
@Override
public boolean startDragging(CefBrowser browser,
CefDragData dragData,
int mask,
int x,
int y) {
return false;
}
@Override
public void updateDragCursor(CefBrowser browser, int operation) {
}
}