-
Notifications
You must be signed in to change notification settings - Fork 190
Expand file tree
/
Copy pathCefAcceleratedPaintEvent.java
More file actions
48 lines (37 loc) · 1.26 KB
/
CefAcceleratedPaintEvent.java
File metadata and controls
48 lines (37 loc) · 1.26 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
// 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 org.cef.handler.CefAcceleratedPaintInfo;
import java.awt.*;
public class CefAcceleratedPaintEvent {
private final CefBrowser browser;
private final boolean popup;
private final Rectangle[] dirtyRects;
private final CefAcceleratedPaintInfo acceleratedPaintInfo;
public CefAcceleratedPaintEvent(CefBrowser browser, boolean popup, Rectangle[] dirtyRects,
CefAcceleratedPaintInfo acceleratedPaintInfo) {
this.browser = browser;
this.popup = popup;
this.dirtyRects = dirtyRects;
this.acceleratedPaintInfo = acceleratedPaintInfo;
}
public CefBrowser getBrowser() {
return browser;
}
public boolean getPopup() {
return popup;
}
public Rectangle[] getDirtyRects() {
return dirtyRects;
}
public CefAcceleratedPaintInfo getAcceleratedPaintInfo() {
return acceleratedPaintInfo;
}
public int getWidth() {
return acceleratedPaintInfo.width;
}
public int getHeight() {
return acceleratedPaintInfo.height;
}
}