forked from chromiumembedded/java-cef
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCefPaintEvent.java
More file actions
51 lines (41 loc) · 1.23 KB
/
CefPaintEvent.java
File metadata and controls
51 lines (41 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// Copyright (c) 2024 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.browser;
import java.awt.*;
import java.nio.ByteBuffer;
public class CefPaintEvent {
private final CefBrowser browser;
private final boolean popup;
private final Rectangle[] dirtyRects;
private final ByteBuffer renderedFrame;
private final int width;
private final int height;
public CefPaintEvent(CefBrowser browser, boolean popup, Rectangle[] dirtyRects,
ByteBuffer renderedFrame, int width, int height) {
this.browser = browser;
this.popup = popup;
this.dirtyRects = dirtyRects;
this.renderedFrame = renderedFrame;
this.width = width;
this.height = height;
}
public CefBrowser getBrowser() {
return browser;
}
public boolean getPopup() {
return popup;
}
public Rectangle[] getDirtyRects() {
return dirtyRects;
}
public ByteBuffer getRenderedFrame() {
return renderedFrame;
}
public int getWidth() {
return width;
}
public int getHeight() {
return height;
}
}