mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
add note that cef_render_handler_t::get_backing_rect() is only for os
This commit is contained in:
parent
52fb8562d6
commit
bf1d12e5e9
1 changed files with 2 additions and 2 deletions
|
@ -175,7 +175,7 @@ pub struct _cef_render_handler_t {
|
||||||
// Called to retrieve the backing size of the view rectangle which is relative
|
// Called to retrieve the backing size of the view rectangle which is relative
|
||||||
// to screen coordinates. On HiDPI displays, the backing size can differ from
|
// to screen coordinates. On HiDPI displays, the backing size can differ from
|
||||||
// the view size as returned by |GetViewRect|. Return true (1) if the
|
// the view size as returned by |GetViewRect|. Return true (1) if the
|
||||||
// rectangle was provided.
|
// rectangle was provided. Only used on Mac OS.
|
||||||
//
|
//
|
||||||
pub get_backing_rect: Option<extern "C" fn(this: *mut cef_render_handler_t,
|
pub get_backing_rect: Option<extern "C" fn(this: *mut cef_render_handler_t,
|
||||||
browser: *mut interfaces::cef_browser_t,
|
browser: *mut interfaces::cef_browser_t,
|
||||||
|
@ -527,7 +527,7 @@ impl CefRenderHandler {
|
||||||
// Called to retrieve the backing size of the view rectangle which is relative
|
// Called to retrieve the backing size of the view rectangle which is relative
|
||||||
// to screen coordinates. On HiDPI displays, the backing size can differ from
|
// to screen coordinates. On HiDPI displays, the backing size can differ from
|
||||||
// the view size as returned by |GetViewRect|. Return true (1) if the
|
// the view size as returned by |GetViewRect|. Return true (1) if the
|
||||||
// rectangle was provided.
|
// rectangle was provided. Only used on Mac OS.
|
||||||
//
|
//
|
||||||
pub fn get_backing_rect(&self, browser: interfaces::CefBrowser,
|
pub fn get_backing_rect(&self, browser: interfaces::CefBrowser,
|
||||||
rect: &mut types::cef_rect_t) -> libc::c_int {
|
rect: &mut types::cef_rect_t) -> libc::c_int {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue