Home
last modified time | relevance | path

Searched refs:device_scale_factor (Results 1 – 25 of 32) sorted by relevance

12

/third_party/cef/tests/shared/browser/
Dgeometry_util.cc11 int LogicalToDevice(int value, float device_scale_factor) { in LogicalToDevice() argument
12 float scaled_val = static_cast<float>(value) * device_scale_factor; in LogicalToDevice()
16 CefRect LogicalToDevice(const CefRect& value, float device_scale_factor) { in LogicalToDevice() argument
17 return CefRect(LogicalToDevice(value.x, device_scale_factor), in LogicalToDevice()
18 LogicalToDevice(value.y, device_scale_factor), in LogicalToDevice()
19 LogicalToDevice(value.width, device_scale_factor), in LogicalToDevice()
20 LogicalToDevice(value.height, device_scale_factor)); in LogicalToDevice()
23 int DeviceToLogical(int value, float device_scale_factor) { in DeviceToLogical() argument
24 float scaled_val = static_cast<float>(value) / device_scale_factor; in DeviceToLogical()
28 void DeviceToLogical(CefMouseEvent& value, float device_scale_factor) { in DeviceToLogical() argument
[all …]
Dgeometry_util.h14 int LogicalToDevice(int value, float device_scale_factor);
15 CefRect LogicalToDevice(const CefRect& value, float device_scale_factor);
18 int DeviceToLogical(int value, float device_scale_factor);
19 void DeviceToLogical(CefMouseEvent& value, float device_scale_factor);
20 void DeviceToLogical(CefTouchEvent& value, float device_scale_factor);
/third_party/cef/tests/cefclient/browser/
Dbrowser_window_osr_win.cc86 void BrowserWindowOsrWin::SetDeviceScaleFactor(float device_scale_factor) { in SetDeviceScaleFactor() argument
88 if (device_scale_factor == device_scale_factor_) in SetDeviceScaleFactor()
92 if (device_scale_factor < 1.0f || device_scale_factor > 4.0f) in SetDeviceScaleFactor()
95 device_scale_factor_ = device_scale_factor; in SetDeviceScaleFactor()
97 osr_window_->SetDeviceScaleFactor(device_scale_factor); in SetDeviceScaleFactor()
Dbrowser_window_osr_gtk.cc1075 void BrowserWindowOsrGtk::SetDeviceScaleFactor(float device_scale_factor) { in SetDeviceScaleFactor() argument
1079 if (device_scale_factor == device_scale_factor_) in SetDeviceScaleFactor()
1083 if (device_scale_factor < 1.0f || device_scale_factor > 4.0f) in SetDeviceScaleFactor()
1086 device_scale_factor_ = device_scale_factor; in SetDeviceScaleFactor()
1145 float device_scale_factor; in GetViewRect() local
1148 device_scale_factor = device_scale_factor_; in GetViewRect()
1155 rect.width = DeviceToLogical(allocation.width, device_scale_factor); in GetViewRect()
1158 rect.height = DeviceToLogical(allocation.height, device_scale_factor); in GetViewRect()
1170 float device_scale_factor; in GetScreenPoint() local
1173 device_scale_factor = device_scale_factor_; in GetScreenPoint()
[all …]
Dbrowser_window_osr_mac.mm373 const float device_scale_factor = [self getDeviceScaleFactor];
375 touch_event.x = client::DeviceToLogical(device_x, device_scale_factor);
376 touch_event.y = client::DeviceToLogical(device_y, device_scale_factor);
595 const float device_scale_factor = [self getDeviceScaleFactor];
609 mouseEvent.x = client::DeviceToLogical(device_x, device_scale_factor);
610 mouseEvent.y = client::DeviceToLogical(device_y, device_scale_factor);
617 const float device_scale_factor = [self getDeviceScaleFactor];
627 mouseEvent.x = client::DeviceToLogical(point.x, device_scale_factor);
628 mouseEvent.y = client::DeviceToLogical(point.y, device_scale_factor);
1154 float device_scale_factor = 1.0f;
[all …]
Droot_window_win.cc267 void RootWindowWin::SetDeviceScaleFactor(float device_scale_factor) { in SetDeviceScaleFactor() argument
271 browser_window_->SetDeviceScaleFactor(device_scale_factor); in SetDeviceScaleFactor()
942 const float device_scale_factor = GetWindowScaleFactor(hwnd_); in OnCreate() local
945 browser_window_->SetDeviceScaleFactor(device_scale_factor); in OnCreate()
1056 const float device_scale_factor = GetWindowScaleFactor(hwnd_); in OnAutoResize() local
1057 RECT rect = {0, 0, LogicalToDevice(new_width, device_scale_factor), in OnAutoResize()
1058 LogicalToDevice(new_size.height, device_scale_factor)}; in OnAutoResize()
Dbrowser_window_osr_win.h45 void SetDeviceScaleFactor(float device_scale_factor) override;
Droot_window_mac.h46 void SetDeviceScaleFactor(float device_scale_factor) override;
Dbrowser_window.cc17 void BrowserWindow::SetDeviceScaleFactor(float device_scale_factor) {} in SetDeviceScaleFactor() argument
Dbrowser_window.h98 virtual void SetDeviceScaleFactor(float device_scale_factor);
Dosr_window_win.cc256 void OsrWindowWin::SetDeviceScaleFactor(float device_scale_factor) { in SetDeviceScaleFactor() argument
260 this, device_scale_factor)); in SetDeviceScaleFactor()
264 if (device_scale_factor == device_scale_factor_) in SetDeviceScaleFactor()
267 device_scale_factor_ = device_scale_factor; in SetDeviceScaleFactor()
992 screen_info.device_scale_factor = device_scale_factor_; in GetScreenInfo()
Droot_window.h176 virtual void SetDeviceScaleFactor(float device_scale_factor) = 0;
Dbrowser_window_osr_mac.h50 void SetDeviceScaleFactor(float device_scale_factor) override;
Droot_window_win.h45 void SetDeviceScaleFactor(float device_scale_factor) override;
Droot_window_views.h44 void SetDeviceScaleFactor(float device_scale_factor) override;
Droot_window_mac.mm102 void SetDeviceScaleFactor(float device_scale_factor);
309 void RootWindowMacImpl::SetDeviceScaleFactor(float device_scale_factor) {
313 browser_window_->SetDeviceScaleFactor(device_scale_factor);
683 void RootWindowMac::SetDeviceScaleFactor(float device_scale_factor) {
684 impl_->SetDeviceScaleFactor(device_scale_factor);
Droot_window_gtk.h42 void SetDeviceScaleFactor(float device_scale_factor) override;
Dosr_window_win.h66 void SetDeviceScaleFactor(float device_scale_factor);
Dbrowser_window_osr_gtk.h53 void SetDeviceScaleFactor(float device_scale_factor) override;
Droot_window_gtk.cc233 void RootWindowGtk::SetDeviceScaleFactor(float device_scale_factor) { in SetDeviceScaleFactor() argument
237 browser_window_->SetDeviceScaleFactor(device_scale_factor); in SetDeviceScaleFactor()
/third_party/cef/libcef/browser/views/
Dview_util.cc220 void ConvertPointFromPixels(gfx::Point* point, int device_scale_factor) { in ConvertPointFromPixels() argument
222 gfx::ScalePoint(gfx::PointF(*point), 1.0f / device_scale_factor)); in ConvertPointFromPixels()
225 void ConvertPointToPixels(gfx::Point* point, int device_scale_factor) { in ConvertPointToPixels() argument
227 gfx::ScalePoint(gfx::PointF(*point), device_scale_factor)); in ConvertPointToPixels()
240 ConvertPointToPixels(point, display.device_scale_factor()); in ConvertPointToScreen()
254 ConvertPointFromPixels(point, display.device_scale_factor()); in ConvertPointFromScreen()
Ddisplay_impl.cc70 return display_.device_scale_factor(); in GetDeviceScaleFactor()
76 view_util::ConvertPointToPixels(&gfx_point, display_.device_scale_factor()); in ConvertPointToPixels()
83 view_util::ConvertPointFromPixels(&gfx_point, display_.device_scale_factor()); in ConvertPointFromPixels()
Dview_util.h87 void ConvertPointFromPixels(gfx::Point* point, int device_scale_factor);
91 void ConvertPointToPixels(gfx::Point* point, int device_scale_factor);
Dwindow_view.cc395 ->GetForced1xScaleRepresentation(GetDisplay().device_scale_factor()); in GetWindowIcon()
404 ->GetForced1xScaleRepresentation(GetDisplay().device_scale_factor()); in GetWindowAppIcon()
/third_party/cef/include/internal/
Dcef_types_wrappers.h383 target->device_scale_factor = src->device_scale_factor; in set()
402 CefScreenInfo(float device_scale_factor, in CefScreenInfo() argument
408 Set(device_scale_factor, depth, depth_per_component, is_monochrome, rect, in CefScreenInfo()
418 device_scale_factor = device_scale_factor_val; in Set()

12