Searched refs:GetSupportedScaleFactor (Results 1 – 14 of 14) sorted by relevance
/external/chromium_org/ui/base/ |
D | layout_unittest.cc | 32 EXPECT_EQ(SCALE_FACTOR_100P, GetSupportedScaleFactor(0.1f)); in TEST() 33 EXPECT_EQ(SCALE_FACTOR_100P, GetSupportedScaleFactor(0.9f)); in TEST() 34 EXPECT_EQ(SCALE_FACTOR_100P, GetSupportedScaleFactor(1.0f)); in TEST() 35 EXPECT_EQ(SCALE_FACTOR_100P, GetSupportedScaleFactor(1.39f)); in TEST() 36 EXPECT_EQ(SCALE_FACTOR_180P, GetSupportedScaleFactor(1.41f)); in TEST() 37 EXPECT_EQ(SCALE_FACTOR_180P, GetSupportedScaleFactor(1.8f)); in TEST() 38 EXPECT_EQ(SCALE_FACTOR_180P, GetSupportedScaleFactor(2.0f)); in TEST() 39 EXPECT_EQ(SCALE_FACTOR_180P, GetSupportedScaleFactor(999.0f)); in TEST() 49 EXPECT_EQ(SCALE_FACTOR_100P, GetSupportedScaleFactor(0.1f)); in TEST() 50 EXPECT_EQ(SCALE_FACTOR_100P, GetSupportedScaleFactor(0.9f)); in TEST() [all …]
|
D | layout.cc | 103 ScaleFactor GetSupportedScaleFactor(float scale) { in GetSupportedScaleFactor() function 177 return GetSupportedScaleFactor(display.device_scale_factor()); in GetScaleFactorForNativeView()
|
D | layout.h | 67 UI_EXPORT ScaleFactor GetSupportedScaleFactor(float image_scale);
|
D | layout_mac.mm | 35 return GetSupportedScaleFactor(GetScaleFactorScaleForNativeView(view));
|
/external/chromium_org/ui/base/resource/ |
D | resource_bundle_unittest.cc | 465 GetSupportedScaleFactor(image_skia->image_reps()[0].scale())); in TEST_F() 468 GetSupportedScaleFactor(image_skia->image_reps()[0].scale())); in TEST_F() 475 EXPECT_EQ(ui::SCALE_FACTOR_100P, GetSupportedScaleFactor(image_rep.scale())); in TEST_F() 478 EXPECT_EQ(ui::SCALE_FACTOR_200P, GetSupportedScaleFactor(image_rep.scale())); in TEST_F() 484 ui::ScaleFactor scale_factor = GetSupportedScaleFactor(image_rep.scale()); in TEST_F() 518 EXPECT_EQ(ui::SCALE_FACTOR_200P, GetSupportedScaleFactor(image_rep.scale())); in TEST_F() 577 GetSupportedScaleFactor(image_skia->image_reps()[0].scale())); in TEST_F()
|
D | resource_bundle_win.cc | 47 switch(ui::GetSupportedScaleFactor(scale)) { in LoadCommonResources()
|
D | resource_bundle.cc | 104 ScaleFactor scale_factor = GetSupportedScaleFactor(scale); in GetImageForScale()
|
/external/chromium_org/ui/base/webui/ |
D | web_ui_util.cc | 99 *scale_factor = ui::GetSupportedScaleFactor(static_cast<float>(scale)); in ParseScaleFactor()
|
/external/chromium_org/chrome/browser/extensions/ |
D | extension_icon_image.cc | 118 host_->LoadImageForScaleFactor(ui::GetSupportedScaleFactor(scale)); in GetImageForScale()
|
/external/chromium_org/chrome/browser/favicon/ |
D | favicon_util.cc | 205 ui::GetSupportedScaleFactor(png_reps[i].scale)); in SelectFaviconFramesFromPNGs()
|
/external/chromium_org/ui/views/widget/desktop_aura/ |
D | desktop_screen_x11.cc | 43 return ui::GetImageScale(ui::GetSupportedScaleFactor(scale)); in GetDeviceScaleFactor()
|
/external/chromium_org/chrome/browser/themes/ |
D | browser_theme_pack.cc | 487 ui::GetSupportedScaleFactor(scale)); in GetImageForScale() 511 ui::ScaleFactor scale_factor = ui::GetSupportedScaleFactor(scale); in GetImageForScale() 1477 ui::GetSupportedScaleFactor(rep_it->scale()));
|
/external/chromium_org/chrome/browser/ui/views/tabs/ |
D | tab.cc | 1336 ui::GetSupportedScaleFactor(canvas->image_scale()); in PaintInactiveTabBackground()
|
D | tab_strip.cc | 419 GetImageForScale(ui::GetSupportedScaleFactor(canvas->image_scale())); in OnPaint()
|