/third_party/cef/tests/shared/browser/ |
D | geometry_util.cc | 11 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 …]
|
D | geometry_util.h | 14 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/ |
D | browser_window_osr_win.cc | 86 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()
|
D | browser_window_osr_gtk.cc | 1075 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 …]
|
D | browser_window_osr_mac.mm | 373 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 …]
|
D | root_window_win.cc | 267 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()
|
D | browser_window_osr_win.h | 45 void SetDeviceScaleFactor(float device_scale_factor) override;
|
D | root_window_mac.h | 46 void SetDeviceScaleFactor(float device_scale_factor) override;
|
D | browser_window.cc | 17 void BrowserWindow::SetDeviceScaleFactor(float device_scale_factor) {} in SetDeviceScaleFactor() argument
|
D | browser_window.h | 98 virtual void SetDeviceScaleFactor(float device_scale_factor);
|
D | osr_window_win.cc | 256 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()
|
D | root_window.h | 176 virtual void SetDeviceScaleFactor(float device_scale_factor) = 0;
|
D | browser_window_osr_mac.h | 50 void SetDeviceScaleFactor(float device_scale_factor) override;
|
D | root_window_win.h | 45 void SetDeviceScaleFactor(float device_scale_factor) override;
|
D | root_window_views.h | 44 void SetDeviceScaleFactor(float device_scale_factor) override;
|
D | root_window_mac.mm | 102 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);
|
D | root_window_gtk.h | 42 void SetDeviceScaleFactor(float device_scale_factor) override;
|
D | osr_window_win.h | 66 void SetDeviceScaleFactor(float device_scale_factor);
|
D | browser_window_osr_gtk.h | 53 void SetDeviceScaleFactor(float device_scale_factor) override;
|
D | root_window_gtk.cc | 233 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/ |
D | view_util.cc | 220 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()
|
D | display_impl.cc | 70 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()
|
D | view_util.h | 87 void ConvertPointFromPixels(gfx::Point* point, int device_scale_factor); 91 void ConvertPointToPixels(gfx::Point* point, int device_scale_factor);
|
D | window_view.cc | 395 ->GetForced1xScaleRepresentation(GetDisplay().device_scale_factor()); in GetWindowIcon() 404 ->GetForced1xScaleRepresentation(GetDisplay().device_scale_factor()); in GetWindowAppIcon()
|
/third_party/cef/include/internal/ |
D | cef_types_wrappers.h | 383 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()
|