Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
40e919d2
Kaydet (Commit)
40e919d2
authored
Eyl 27, 2014
tarafından
Tomaž Vajngerl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
android: remove notifyLayerClientOfGeometryChange (Fennec import)
Change-Id: Ibc1f4d11dcfdf177cd45fcf689b518d975b13709
üst
0151bf3f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
20 deletions
+5
-20
LayerController.java
...roid3/src/java/org/mozilla/gecko/gfx/LayerController.java
+5
-9
PanZoomController.java
...oid3/src/java/org/mozilla/gecko/ui/PanZoomController.java
+0
-9
PanZoomTarget.java
...Android3/src/java/org/mozilla/gecko/ui/PanZoomTarget.java
+0
-2
No files found.
android/experimental/LOAndroid3/src/java/org/mozilla/gecko/gfx/LayerController.java
Dosyayı görüntüle @
40e919d2
...
...
@@ -87,6 +87,7 @@ public class LayerController implements PanZoomTarget {
public
void
setForceRedraw
()
{
mForceRedraw
=
true
;
notifyLayerClientOfGeometryChange
();
}
public
Layer
getRoot
()
{
return
mRootLayer
;
}
...
...
@@ -159,14 +160,13 @@ public class LayerController implements PanZoomTarget {
}
/**
* Sets the entire viewport metrics at once. This function does not notify the layer client or
* the pan/zoom controller, so you will need to call notifyLayerClientOfGeometryChange() or
* notifyPanZoomControllerOfGeometryChange() after calling this. You must hold the monitor
* while calling this.
* Sets the entire viewport metrics at once.
* You must hold the monitor while calling this.
*/
public
void
setViewportMetrics
(
ViewportMetrics
viewport
)
{
mViewportMetrics
=
new
ImmutableViewportMetrics
(
viewport
);
mView
.
requestRender
();
notifyLayerClientOfGeometryChange
();
}
public
void
setAnimationTarget
(
ViewportMetrics
viewport
)
{
...
...
@@ -183,11 +183,7 @@ public class LayerController implements PanZoomTarget {
public
boolean
post
(
Runnable
action
)
{
return
mView
.
post
(
action
);
}
/**
* The view as well as the controller itself use this method to notify the layer client that
* the geometry changed.
*/
public
void
notifyLayerClientOfGeometryChange
()
{
private
void
notifyLayerClientOfGeometryChange
()
{
if
(
mLayerClient
!=
null
)
mLayerClient
.
geometryChanged
();
}
...
...
android/experimental/LOAndroid3/src/java/org/mozilla/gecko/ui/PanZoomController.java
Dosyayı görüntüle @
40e919d2
...
...
@@ -195,7 +195,6 @@ public class PanZoomController
// transitions.
synchronized
(
mTarget
.
getLock
())
{
mTarget
.
setViewportMetrics
(
getValidViewportMetrics
());
mTarget
.
notifyLayerClientOfGeometryChange
();
}
break
;
}
...
...
@@ -233,7 +232,6 @@ public class PanZoomController
// page size changed such that we are now in overscroll. snap to the
// the nearest valid viewport
mTarget
.
setViewportMetrics
(
validated
);
mTarget
.
notifyLayerClientOfGeometryChange
();
}
}
}
...
...
@@ -254,7 +252,6 @@ public class PanZoomController
// case this touchstart is just a tap that doesn't end up triggering
// a redraw
mTarget
.
setForceRedraw
();
mTarget
.
notifyLayerClientOfGeometryChange
();
// fall through
case
FLING:
case
BOUNCE:
...
...
@@ -460,7 +457,6 @@ public class PanZoomController
viewportMetrics
.
setOrigin
(
origin
);
mTarget
.
setViewportMetrics
(
viewportMetrics
);
mTarget
.
notifyLayerClientOfGeometryChange
();
}
private
void
fling
()
{
...
...
@@ -628,7 +624,6 @@ public class PanZoomController
float
t
=
ZOOM_ANIMATION_FRAMES
[
mBounceFrame
];
ViewportMetrics
newMetrics
=
mBounceStartMetrics
.
interpolate
(
mBounceEndMetrics
,
t
);
mTarget
.
setViewportMetrics
(
newMetrics
);
mTarget
.
notifyLayerClientOfGeometryChange
();
mBounceFrame
++;
}
}
...
...
@@ -637,7 +632,6 @@ public class PanZoomController
private
void
finishBounce
()
{
synchronized
(
mTarget
.
getLock
())
{
mTarget
.
setViewportMetrics
(
mBounceEndMetrics
);
mTarget
.
notifyLayerClientOfGeometryChange
();
mBounceFrame
=
-
1
;
}
}
...
...
@@ -699,7 +693,6 @@ public class PanZoomController
// Force a viewport synchronisation
mTarget
.
setForceRedraw
();
mTarget
.
notifyLayerClientOfGeometryChange
();
}
/* Returns the nearest viewport metrics with no overscroll visible. */
...
...
@@ -883,7 +876,6 @@ public class PanZoomController
// Force a viewport synchronisation
mTarget
.
setForceRedraw
();
mTarget
.
notifyLayerClientOfGeometryChange
();
}
/**
...
...
@@ -894,7 +886,6 @@ public class PanZoomController
ViewportMetrics
viewportMetrics
=
getMutableMetrics
();
viewportMetrics
.
scaleTo
(
zoomFactor
,
focus
);
mTarget
.
setViewportMetrics
(
viewportMetrics
);
mTarget
.
notifyLayerClientOfGeometryChange
();
}
public
boolean
getRedrawHint
()
{
...
...
android/experimental/LOAndroid3/src/java/org/mozilla/gecko/ui/PanZoomTarget.java
Dosyayı görüntüle @
40e919d2
...
...
@@ -17,8 +17,6 @@ public interface PanZoomTarget {
public
void
setAnimationTarget
(
ViewportMetrics
viewport
);
public
void
setViewportMetrics
(
ViewportMetrics
viewport
);
public
void
notifyLayerClientOfGeometryChange
();
public
void
setForceRedraw
();
public
boolean
post
(
Runnable
action
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment