Home
last modified time | relevance | path

Searched refs:GetSupportedScaleFactor (Results 1 – 14 of 14) sorted by relevance

/external/chromium_org/ui/base/
Dlayout_unittest.cc32 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 …]
Dlayout.cc103 ScaleFactor GetSupportedScaleFactor(float scale) { in GetSupportedScaleFactor() function
177 return GetSupportedScaleFactor(display.device_scale_factor()); in GetScaleFactorForNativeView()
Dlayout.h67 UI_EXPORT ScaleFactor GetSupportedScaleFactor(float image_scale);
Dlayout_mac.mm35 return GetSupportedScaleFactor(GetScaleFactorScaleForNativeView(view));
/external/chromium_org/ui/base/resource/
Dresource_bundle_unittest.cc465 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()
Dresource_bundle_win.cc47 switch(ui::GetSupportedScaleFactor(scale)) { in LoadCommonResources()
Dresource_bundle.cc104 ScaleFactor scale_factor = GetSupportedScaleFactor(scale); in GetImageForScale()
/external/chromium_org/ui/base/webui/
Dweb_ui_util.cc99 *scale_factor = ui::GetSupportedScaleFactor(static_cast<float>(scale)); in ParseScaleFactor()
/external/chromium_org/chrome/browser/extensions/
Dextension_icon_image.cc118 host_->LoadImageForScaleFactor(ui::GetSupportedScaleFactor(scale)); in GetImageForScale()
/external/chromium_org/chrome/browser/favicon/
Dfavicon_util.cc205 ui::GetSupportedScaleFactor(png_reps[i].scale)); in SelectFaviconFramesFromPNGs()
/external/chromium_org/ui/views/widget/desktop_aura/
Ddesktop_screen_x11.cc43 return ui::GetImageScale(ui::GetSupportedScaleFactor(scale)); in GetDeviceScaleFactor()
/external/chromium_org/chrome/browser/themes/
Dbrowser_theme_pack.cc487 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/
Dtab.cc1336 ui::GetSupportedScaleFactor(canvas->image_scale()); in PaintInactiveTabBackground()
Dtab_strip.cc419 GetImageForScale(ui::GetSupportedScaleFactor(canvas->image_scale())); in OnPaint()