HomeSort by relevance Sort by last modified time
    Searched refs:zoomFactor (Results 1 - 25 of 59) sorted by null

1 2 3

  /external/webkit/Source/WebCore/platform/chromium/
ThemeChromiumMac.h 44 virtual FontDescription controlFont(ControlPart, const Font&, float zoomFactor) const;
46 virtual LengthSize controlSize(ControlPart, const Font&, const LengthSize&, float zoomFactor) const;
47 virtual LengthSize minimumControlSize(ControlPart, const Font&, float zoomFactor) const;
49 virtual LengthBox controlPadding(ControlPart, const Font&, const LengthBox& zoomedBox, float zoomFactor) const;
50 virtual LengthBox controlBorder(ControlPart, const Font&, const LengthBox& zoomedBox, float zoomFactor) const;
54 virtual void paint(ControlPart, ControlStates, GraphicsContext*, const IntRect&, float zoomFactor, ScrollView*) const;
55 virtual void inflateControlPaintRect(ControlPart, ControlStates, IntRect&, float zoomFactor) const;
ThemeChromiumMac.mm 214 static LengthSize sizeFromNSControlSize(NSControlSize nsControlSize, const LengthSize& zoomedSize, float zoomFactor, const IntSize* sizes)
217 if (zoomFactor != 1.0f)
218 controlSize = IntSize(controlSize.width() * zoomFactor, controlSize.height() * zoomFactor);
227 static LengthSize sizeFromFont(const Font& font, const LengthSize& zoomedSize, float zoomFactor, const IntSize* sizes)
229 return sizeFromNSControlSize(controlSizeForFont(font), zoomedSize, zoomFactor, sizes);
232 static ControlSize controlSizeFromPixelSize(const IntSize* sizes, const IntSize& minZoomedSize, float zoomFactor)
234 if (minZoomedSize.width() >= static_cast<int>(sizes[NSRegularControlSize].width() * zoomFactor) &&
235 minZoomedSize.height() >= static_cast<int>(sizes[NSRegularControlSize].height() * zoomFactor))
237 if (minZoomedSize.width() >= static_cast<int>(sizes[NSSmallControlSize].width() * zoomFactor) &
    [all...]
  /external/webkit/Source/WebCore/platform/mac/
ThemeMac.h 40 virtual FontDescription controlFont(ControlPart, const Font&, float zoomFactor) const;
42 virtual LengthSize controlSize(ControlPart, const Font&, const LengthSize&, float zoomFactor) const;
43 virtual LengthSize minimumControlSize(ControlPart, const Font&, float zoomFactor) const;
45 virtual LengthBox controlPadding(ControlPart, const Font&, const LengthBox& zoomedBox, float zoomFactor) const;
46 virtual LengthBox controlBorder(ControlPart, const Font&, const LengthBox& zoomedBox, float zoomFactor) const;
50 virtual void paint(ControlPart, ControlStates, GraphicsContext*, const IntRect&, float zoomFactor, ScrollView*) const;
51 virtual void inflateControlPaintRect(ControlPart, ControlStates, IntRect&, float zoomFactor) const;
ThemeMac.mm 101 static LengthSize sizeFromNSControlSize(NSControlSize nsControlSize, const LengthSize& zoomedSize, float zoomFactor, const IntSize* sizes)
104 if (zoomFactor != 1.0f)
105 controlSize = IntSize(controlSize.width() * zoomFactor, controlSize.height() * zoomFactor);
114 static LengthSize sizeFromFont(const Font& font, const LengthSize& zoomedSize, float zoomFactor, const IntSize* sizes)
116 return sizeFromNSControlSize(controlSizeForFont(font), zoomedSize, zoomFactor, sizes);
119 static ControlSize controlSizeFromPixelSize(const IntSize* sizes, const IntSize& minZoomedSize, float zoomFactor)
121 if (minZoomedSize.width() >= static_cast<int>(sizes[NSRegularControlSize].width() * zoomFactor) &&
122 minZoomedSize.height() >= static_cast<int>(sizes[NSRegularControlSize].height() * zoomFactor))
124 if (minZoomedSize.width() >= static_cast<int>(sizes[NSSmallControlSize].width() * zoomFactor) &
    [all...]
  /tools/motodev/src/plugins/emulator/src/com/motorola/studio/android/emulator/ui/handlers/
ZoomInOutHandler.java 41 double zoomFactor = DEFAULT_ZOOM;
57 zoomFactor = currentZoomFactor + changeZoomFactor;
61 zoomFactor = currentZoomFactor;
66 if (zoomFactor < MINIMUM_ZOOM)
68 zoomFactor = MINIMUM_ZOOM;
70 else if (zoomFactor > MAXIMUM_ZOOM)
72 zoomFactor = MAXIMUM_ZOOM;
75 return zoomFactor;
84 protected boolean testZoomFactor(AndroidViewData viewData, Map parameters, double zoomFactor)
ChangeZoomHandler.java 33 double zoomFactor = DEFAULT_ZOOM;
37 zoomFactor = Double.parseDouble(factorString);
44 return zoomFactor;
50 * @param zoomFactor The active instance current zoom factor
56 protected boolean testZoomFactor(AndroidViewData viewData, Map parameters, double zoomFactor)
60 if (expectedZoomFactor == zoomFactor)
AbstractZoomHandler.java 58 double zoomFactor = getZoomFactor(event.getParameters());
60 info("Setting zoom factor for " + viewId + " = " + zoomFactor);
69 if (view.getZoomFactor(instance) != zoomFactor)
71 view.setZoomFactor(instance, zoomFactor);
139 * @param zoomFactor The active instance current zoom factor
145 double zoomFactor);
  /tools/motodev/src/plugins/emulator/src/com/motorola/studio/android/emulator/ui/controls/skin/
AndroidSkinLayout.java 124 double zoomFactor = ((SkinComposite) composite).getZoomFactor();
136 size = allAvailable(zoomFactor);
144 size = flipClosed(zoomFactor);
155 size = openExternalUnavailable(zoomFactor);
163 size = openExternalUnavailableAndFlipClosed(zoomFactor);
173 size = onlyInternal(zoomFactor);
182 * @param zoomFactor The zoom factor used to calculate the size
186 private Point allAvailable(double zoomFactor)
204 size = new Point((int) ((x2 - x1) * zoomFactor), (int) ((y2 - y1) * zoomFactor));
    [all...]
SkinComposite.java 153 private double zoomFactor = 1.0;
299 int posX = (int) ((e.x + displayRectangle.x) / zoomFactor);
300 int posY = (int) ((e.y + displayRectangle.y) / zoomFactor);
325 double roundedZoomFactor = Math.floor(zoomFactor / ZOOM_STEP) * ZOOM_STEP;
552 ((int) (changedKey.getKeyArea().x > 0 ? changedKey.getKeyArea().x * zoomFactor
555 ((int) (changedKey.getKeyArea().y > 0 ? changedKey.getKeyArea().y * zoomFactor
557 srcWidth = ((int) (changedKey.getKeyArea().width * zoomFactor));
558 srcHeight = ((int) (changedKey.getKeyArea().height * zoomFactor));
602 (zoomFactor == MINIMUM_ZOOM_FACTOR ? 1 : (int) (imageToSet.width * zoomFactor));
    [all...]
  /tools/motodev/src/plugins/emulator/src/com/motorola/studio/android/emulator/ui/controls/
RemoteCLIDisplay.java 63 private double zoomFactor = 1;
150 (int) (painter.getImageData().width * zoomFactor),
151 (int) (painter.getImageData().height * zoomFactor)));
259 return zoomFactor;
265 * @param zoomFactor The zoom factor to set to the screen
267 public void setZoomFactor(double zoomFactor)
269 this.zoomFactor = zoomFactor;
UIHelper.java 129 double zoomFactor = composite.getZoomFactor();
134 x = mainDisplay.getScreenWidth() - (int) ((double) e.y / zoomFactor);
135 y = (int) ((double) e.x / zoomFactor);
138 x = (int) ((double) e.x / zoomFactor);
139 y = (int) ((double) e.y / zoomFactor);
  /tools/motodev/src/plugins/emulator/src/com/motorola/studio/android/emulator/ui/controls/maindisplay/
MainDisplayComposite.java 58 private double zoomFactor = 1.0;
175 public void setZoomFactor(double zoomFactor)
178 if (zoomFactor == ZOOM_FIT)
186 this.zoomFactor = zoomFactor;
196 return zoomFactor;
252 width = new Double(baseWidth * zoomFactor).intValue();
253 height = new Double(baseHeight * zoomFactor).intValue();
257 mainDisplay.setZoomFactor(zoomFactor);
311 if ((event.count > 0) && (zoomFactor < IHandlerConstants.MAXIMUM_ZOOM)
    [all...]
  /packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
ImageFilterStraighten.java 41 public ImageFilterStraighten(float rotation, float zoomFactor) {
43 mZoomFactor = zoomFactor;
50 public void setRotationZoomFactor(float zoomFactor) {
51 mZoomFactor = zoomFactor;
  /external/webkit/Source/WebCore/dom/
MouseRelatedEvent.cpp 160 float zoomFactor = pageZoomFactor(this);
161 setAbsoluteLocation(roundedIntPoint(FloatPoint(pageX() * zoomFactor, pageY() * zoomFactor)));
188 float zoomFactor = pageZoomFactor(this);
189 m_offsetX = lroundf(localPos.x() / zoomFactor);
190 m_offsetY = lroundf(localPos.y() / zoomFactor);
  /external/webkit/Source/WebCore/platform/
Theme.h 84 virtual FontDescription controlFont(ControlPart, const Font& font, float /*zoomFactor*/) const { return font.fontDescription(); }
87 virtual LengthSize controlSize(ControlPart, const Font&, const LengthSize& zoomedSize, float /*zoomFactor*/) const { return zoomedSize; }
90 virtual LengthSize minimumControlSize(ControlPart, const Font&, float /*zoomFactor*/) const { return LengthSize(Length(0, Fixed), Length(0, Fixed)); }
93 virtual LengthBox controlPadding(ControlPart, const Font&, const LengthBox& zoomedBox, float zoomFactor) const;
94 virtual LengthBox controlBorder(ControlPart, const Font&, const LengthBox& zoomedBox, float zoomFactor) const;
100 virtual void paint(ControlPart, ControlStates, GraphicsContext*, const IntRect& /*zoomedRect*/, float /*zoomFactor*/, ScrollView*) const { }
105 // amount is also scaled by the zoomFactor.
106 virtual void inflateControlPaintRect(ControlPart, ControlStates, IntRect& /*zoomedRect*/, float /*zoomFactor*/) const { }
  /external/webkit/Source/WebKit2/WebProcess/InjectedBundle/API/c/
WKBundlePagePrivate.h 44 WK_EXPORT void WKBundlePageSetTextZoomFactor(WKBundlePageRef page, double zoomFactor);
46 WK_EXPORT void WKBundlePageSetPageZoomFactor(WKBundlePageRef page, double zoomFactor);
WKBundlePage.cpp 185 void WKBundlePageSetTextZoomFactor(WKBundlePageRef pageRef, double zoomFactor)
187 toImpl(pageRef)->setTextZoomFactor(zoomFactor);
195 void WKBundlePageSetPageZoomFactor(WKBundlePageRef pageRef, double zoomFactor)
197 toImpl(pageRef)->setPageZoomFactor(zoomFactor);
  /external/webkit/Tools/WebKitTestRunner/InjectedBundle/
EventSendingController.cpp 164 double zoomFactor = WKBundlePageGetTextZoomFactor(InjectedBundle::shared().page()->page());
165 WKBundlePageSetTextZoomFactor(InjectedBundle::shared().page()->page(), zoomFactor * ZoomMultiplierRatio);
173 double zoomFactor = WKBundlePageGetTextZoomFactor(InjectedBundle::shared().page()->page());
174 WKBundlePageSetTextZoomFactor(InjectedBundle::shared().page()->page(), zoomFactor / ZoomMultiplierRatio);
182 double zoomFactor = WKBundlePageGetPageZoomFactor(InjectedBundle::shared().page()->page());
183 WKBundlePageSetPageZoomFactor(InjectedBundle::shared().page()->page(), zoomFactor * ZoomMultiplierRatio);
191 double zoomFactor = WKBundlePageGetPageZoomFactor(InjectedBundle::shared().page()->page());
192 WKBundlePageSetPageZoomFactor(InjectedBundle::shared().page()->page(), zoomFactor / ZoomMultiplierRatio);
  /external/webkit/Source/WebKit/qt/Api/
qgraphicswebview.h 45 Q_PROPERTY(qreal zoomFactor READ zoomFactor WRITE setZoomFactor)
69 qreal zoomFactor() const;
qwebview.h 52 Q_PROPERTY(qreal zoomFactor READ zoomFactor WRITE setZoomFactor)
99 qreal zoomFactor() const;
  /external/webkit/Source/WebKit2/UIProcess/API/mac/
PDFViewController.h 60 double zoomFactor() const;
WKViewInternal.h 72 - (void)_setCustomRepresentationZoomFactor:(double)zoomFactor;
  /external/webkit/Source/WebKit2/UIProcess/API/qt/
qwkpage.h 112 void setTextZoomFactor(qreal zoomFactor);
113 void setPageZoomFactor(qreal zoomFactor);
  /external/webkit/Source/WebCore/html/
HTMLAreaElement.cpp 103 float zoomFactor = document()->frame()->pageZoomFactor();
104 if (zoomFactor != 1.0f) {
106 zoomTransform.scale(zoomFactor);
  /external/webkit/Source/WebCore/rendering/mathml/
RenderMathMLSubSup.cpp 195 float zoomFactor = style()->effectiveZoom();
196 return topAdjust + box->baselinePosition(AlphabeticBaseline, firstLine, direction, linePositionMode) + static_cast<int>((zoomFactor > 1.25 ? 2 : 3) * zoomFactor);

Completed in 303 milliseconds

1 2 3