Searched refs:deviceScaleFactor (Results 1 - 25 of 91) sorted by relevance

1234

/external/chromium_org/third_party/WebKit/public/platform/
H A DWebScreenInfo.h42 float deviceScaleFactor; member in struct:blink::WebScreenInfo
81 : deviceScaleFactor(1)
/external/chromium_org/third_party/WebKit/public/web/
H A DWebDeviceEmulationParams.h26 float deviceScaleFactor; member in struct:blink::WebDeviceEmulationParams
42 , deviceScaleFactor(0)
/external/chromium_org/content/renderer/
H A Dresizing_mode_selector.cc26 params.screen_info.deviceScaleFactor ==
27 widget->screenInfo().deviceScaleFactor;
/external/chromium_org/third_party/WebKit/Source/web/win/
H A DWebFontRendering.cpp25 void WebFontRendering::setDeviceScaleFactor(float deviceScaleFactor) argument
27 blink::FontCache::setDeviceScaleFactor(deviceScaleFactor);
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/toolbox/
H A DOverridesUI.js32 WebInspector.overridesSupport.settings.deviceScaleFactor.addChangeListener(emulatedSettingChanged);
83 selectDeviceOption.device = {title: WebInspector.UIString("<Select model>"), width: 0, height: 0, deviceScaleFactor: 0, userAgent: "", touch: false, mobile: false};
312 {title: "Apple iPhone 3GS", width: 320, height: 480, deviceScaleFactor: 1, userAgent: "Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_2_1 like Mac OS X; en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8C148 Safari/6533.18.5", touch: true, mobile: true},
313 {title: "Apple iPhone 4", width: 320, height: 480, deviceScaleFactor: 2, userAgent: "Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_2_1 like Mac OS X; en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8C148 Safari/6533.18.5", touch: true, mobile: true},
314 {title: "Apple iPhone 5", width: 320, height: 568, deviceScaleFactor: 2, userAgent: "Mozilla/5.0 (iPhone; CPU iPhone OS 7_0 like Mac OS X; en-us) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11A465 Safari/9537.53", touch: true, mobile: true},
315 {title: "Apple iPhone 6", width: 375, height: 667, deviceScaleFactor: 2, userAgent: "Mozilla/5.0 (iPhone; CPU iPhone OS 8_0 like Mac OS X) AppleWebKit/600.1.3 (KHTML, like Gecko) Version/8.0 Mobile/12A4345d Safari/600.1.4", touch: true, mobile: true},
316 {title: "Apple iPhone 6 Plus", width: 414, height: 736, deviceScaleFactor: 3, userAgent: "Mozilla/5.0 (iPhone; CPU iPhone OS 8_0 like Mac OS X) AppleWebKit/600.1.3 (KHTML, like Gecko) Version/8.0 Mobile/12A4345d Safari/600.1.4", touch: true, mobile: true},
317 {title: "BlackBerry Z10", width: 384, height: 640, deviceScaleFactor: 2, userAgent: "Mozilla/5.0 (BB10; Touch) AppleWebKit/537.10+ (KHTML, like Gecko) Version/10.0.9.2372 Mobile Safari/537.10+", touch: true, mobile: true},
318 {title: "BlackBerry Z30", width: 360, height: 640, deviceScaleFactor: 2, userAgent: "Mozilla/5.0 (BB10; Touch) AppleWebKit/537.10+ (KHTML, like Gecko) Version/10.0.9.2372 Mobile Safari/537.10+", touch: true, mobile: true},
319 {title: "Google Nexus 4", width: 384, height: 640, deviceScaleFactor
[all...]
/external/chromium_org/third_party/WebKit/Source/core/frame/
H A DScreen.cpp54 return lroundf(screenRect(m_frame->view()).height() * host->deviceScaleFactor());
64 return lroundf(screenRect(m_frame->view()).width() * host->deviceScaleFactor());
88 return lroundf(screenAvailableRect(m_frame->view()).x() * host->deviceScaleFactor());
98 return lroundf(screenAvailableRect(m_frame->view()).y() * host->deviceScaleFactor());
108 return lroundf(screenAvailableRect(m_frame->view()).height() * host->deviceScaleFactor());
118 return lroundf(screenAvailableRect(m_frame->view()).width() * host->deviceScaleFactor());
H A DFrameHost.cpp73 float FrameHost::deviceScaleFactor() const function in class:blink::FrameHost
75 return m_page->deviceScaleFactor();
H A DFrameHost.h75 float deviceScaleFactor() const;
/external/chromium_org/third_party/WebKit/Source/core/css/resolver/
H A DStyleResourceLoader.h51 PassRefPtr<StyleImage> loadPendingImage(StylePendingImage*, float deviceScaleFactor);
53 void loadPendingShapeImage(RenderStyle*, ShapeValue*, float deviceScaleFactor);
H A DStyleResourceLoader.cpp74 static PassRefPtr<StyleImage> doLoadPendingImage(ResourceFetcher* fetcher, StylePendingImage* pendingImage, float deviceScaleFactor, const ResourceLoaderOptions& options) argument
87 return cursorImageValue->cachedImage(fetcher, deviceScaleFactor);
90 return imageSetValue->cachedImageSet(fetcher, deviceScaleFactor, options);
95 PassRefPtr<StyleImage> StyleResourceLoader::loadPendingImage(StylePendingImage* pendingImage, float deviceScaleFactor) argument
97 return doLoadPendingImage(m_fetcher, pendingImage, deviceScaleFactor, ResourceFetcher::defaultResourceOptions());
100 void StyleResourceLoader::loadPendingShapeImage(RenderStyle* renderStyle, ShapeValue* shapeValue, float deviceScaleFactor) argument
114 shapeValue->setImage(doLoadPendingImage(m_fetcher, toStylePendingImage(image), deviceScaleFactor, options));
130 backgroundLayer->setImage(loadPendingImage(toStylePendingImage(backgroundLayer->image()), elementStyleResources.deviceScaleFactor()));
139 RefPtr<StyleImage> loadedImage = loadPendingImage(toStylePendingImage(image), elementStyleResources.deviceScaleFactor());
153 currentCursor.setImage(loadPendingImage(toStylePendingImage(image), elementStyleResources.deviceScaleFactor()));
[all...]
H A DElementStyleResources.h68 float deviceScaleFactor() const { return m_deviceScaleFactor; } function in class:blink::ElementStyleResources
69 void setDeviceScaleFactor(float deviceScaleFactor) { m_deviceScaleFactor = deviceScaleFactor; } argument
H A DStyleResolverState.cpp47 m_elementStyleResources.setDeviceScaleFactor(document.frameHost()->deviceScaleFactor());
/external/chromium_org/third_party/WebKit/Source/core/html/parser/
H A DHTMLSrcsetParserTest.cpp14 float deviceScaleFactor; member in struct:blink::__anon11098
102 ImageCandidate candidate = bestFitSourceForImageAttributes(test.deviceScaleFactor, test.effectiveSize, test.srcInput, test.srcsetInput);
H A DHTMLSrcsetParser.h132 ImageCandidate bestFitSourceForSrcsetAttribute(float deviceScaleFactor, unsigned sourceSize, const String& srcsetAttribute);
134 ImageCandidate bestFitSourceForImageAttributes(float deviceScaleFactor, unsigned sourceSize, const String& srcAttribute, const String& srcsetAttribute);
136 String bestFitSourceForImageAttributes(float deviceScaleFactor, unsigned sourceSize, const String& srcAttribute, ImageCandidate& srcsetImageCandidate);
H A DHTMLSrcsetParser.cpp269 static ImageCandidate pickBestImageCandidate(float deviceScaleFactor, unsigned sourceSize, Vector<ImageCandidate>& imageCandidates) argument
290 if ((imageCandidates[i].density() >= deviceScaleFactor) && (!ignoreSrc || !imageCandidates[i].srcOrigin()))
309 ImageCandidate bestFitSourceForSrcsetAttribute(float deviceScaleFactor, unsigned sourceSize, const String& srcsetAttribute) argument
315 return pickBestImageCandidate(deviceScaleFactor, sourceSize, imageCandidates);
318 ImageCandidate bestFitSourceForImageAttributes(float deviceScaleFactor, unsigned sourceSize, const String& srcAttribute, const String& srcsetAttribute) argument
333 return pickBestImageCandidate(deviceScaleFactor, sourceSize, imageCandidates);
336 String bestFitSourceForImageAttributes(float deviceScaleFactor, unsigned sourceSize, const String& srcAttribute, ImageCandidate& srcsetImageCandidate) argument
347 return pickBestImageCandidate(deviceScaleFactor, sourceSize, imageCandidates).toString();
/external/chromium_org/third_party/WebKit/Source/platform/
H A DDragImage.h42 static PassOwnPtr<DragImage> create(Image*, RespectImageOrientationEnum = DoNotRespectImageOrientation, float deviceScaleFactor = 1);
43 static PassOwnPtr<DragImage> create(const KURL&, const String& label, const FontDescription& systemFont, float deviceScaleFactor);
H A DDragImage.cpp69 PassOwnPtr<DragImage> DragImage::create(Image* image, RespectImageOrientationEnum shouldRespectImageOrientation, float deviceScaleFactor) argument
99 return adoptPtr(new DragImage(skBitmap, deviceScaleFactor));
106 return adoptPtr(new DragImage(skBitmap, deviceScaleFactor));
120 PassOwnPtr<DragImage> DragImage::create(const KURL& url, const String& inLabel, const FontDescription& systemFont, float deviceScaleFactor) argument
164 scaledImageSize.scale(deviceScaleFactor);
168 buffer->context()->scale(deviceScaleFactor, deviceScaleFactor);
199 return DragImage::create(image.get(), DoNotRespectImageOrientation, deviceScaleFactor);
H A DDragImageTest.cpp150 float deviceScaleFactor = 1.0f; local
161 DragImage::create(url, testLabel, fontDescription, deviceScaleFactor);
163 DragImage::create(url, expectedLabel, fontDescription, deviceScaleFactor);
/external/chromium_org/third_party/WebKit/Source/web/
H A DDragClientImpl.cpp74 if (m_webView->deviceScaleFactor() != resolutionScale) {
76 float scale = m_webView->deviceScaleFactor() / resolutionScale;
H A DPageScaleConstraintsSet.h53 void adjustForAndroidWebViewQuirks(const ViewportDescription&, int layoutFallbackWidth, float deviceScaleFactor, bool supportTargetDensityDPI, bool wideViewportQuirkEnabled, bool useWideViewport, bool loadWithOverviewMode, bool nonUserScalableQuirkEnabled);
/external/chromium_org/third_party/WebKit/Source/core/css/
H A DCSSImageSetValue.cpp92 StyleFetchedImageSet* CSSImageSetValue::cachedImageSet(ResourceFetcher* loader, float deviceScaleFactor, const ResourceLoaderOptions& options) argument
96 m_scaleFactor = deviceScaleFactor;
102 // FIXME: In the future, we want to take much more than deviceScaleFactor into acount here.
123 StyleFetchedImageSet* CSSImageSetValue::cachedImageSet(ResourceFetcher* fetcher, float deviceScaleFactor) argument
125 return cachedImageSet(fetcher, deviceScaleFactor, ResourceFetcher::defaultResourceOptions());
128 StyleImage* CSSImageSetValue::cachedOrPendingImageSet(float deviceScaleFactor) argument
133 // If the deviceScaleFactor has changed, we may not have the best image loaded, so we have to re-assess.
134 if (deviceScaleFactor != m_scaleFactor) {
H A DCSSCursorImageValue.h54 StyleImage* cachedImage(ResourceFetcher*, float deviceScaleFactor);
55 StyleImage* cachedOrPendingImage(float deviceScaleFactor);
H A DCSSImageSetValue.h48 StyleFetchedImageSet* cachedImageSet(ResourceFetcher*, float deviceScaleFactor, const ResourceLoaderOptions&);
49 StyleFetchedImageSet* cachedImageSet(ResourceFetcher*, float deviceScaleFactor);
H A DCSSCursorImageValue.cpp124 StyleImage* CSSCursorImageValue::cachedImage(ResourceFetcher* loader, float deviceScaleFactor) argument
127 return toCSSImageSetValue(m_imageValue.get())->cachedImageSet(loader, deviceScaleFactor);
156 StyleImage* CSSCursorImageValue::cachedOrPendingImage(float deviceScaleFactor) argument
160 return toCSSImageSetValue(m_imageValue.get())->cachedOrPendingImageSet(deviceScaleFactor);
/external/chromium_org/third_party/WebKit/Source/platform/mac/
H A DLocalCurrentGraphicsContext.mm34 graphicsContext->deviceScaleFactor())

Completed in 5380 milliseconds

1234