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
6721736e
Kaydet (Commit)
6721736e
authored
Ara 09, 2014
tarafından
Tomaž Vajngerl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
android: Remove unneeded LOEvents
Change-Id: I057db0c3e254a9e9c90dace5551d6de51aff21c1
üst
7c42247d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
40 deletions
+5
-40
LOEvent.java
...rimental/LOAndroid3/src/java/org/libreoffice/LOEvent.java
+5
-22
LOEventFactory.java
...l/LOAndroid3/src/java/org/libreoffice/LOEventFactory.java
+0
-11
LOKitThread.java
...ntal/LOAndroid3/src/java/org/libreoffice/LOKitThread.java
+0
-7
No files found.
android/experimental/LOAndroid3/src/java/org/libreoffice/LOEvent.java
Dosyayı görüntüle @
6721736e
package
org
.
libreoffice
;
package
org
.
libreoffice
;
import
android.graphics.Rect
;
import
org.mozilla.gecko.gfx.ComposedTileLayer
;
import
org.mozilla.gecko.gfx.ComposedTileLayer
;
import
org.mozilla.gecko.gfx.ImmutableViewportMetrics
;
import
org.mozilla.gecko.gfx.IntSize
;
import
org.mozilla.gecko.gfx.IntSize
;
public
class
LOEvent
{
public
class
LOEvent
{
public
static
final
int
SIZE_CHANGED
=
1
;
public
static
final
int
SIZE_CHANGED
=
1
;
public
static
final
int
TILE_SIZE
=
2
;
public
static
final
int
TILE_SIZE
=
2
;
public
static
final
int
VIEWPORT
=
3
;
public
static
final
int
CHANGE_PART
=
3
;
public
static
final
int
DRAW
=
4
;
public
static
final
int
LOAD
=
4
;
public
static
final
int
CHANGE_PART
=
5
;
public
static
final
int
CLOSE
=
5
;
public
static
final
int
LOAD
=
6
;
public
static
final
int
REDRAW
=
6
;
public
static
final
int
CLOSE
=
7
;
public
static
final
int
TILE_REQUEST
=
7
;
public
static
final
int
REDRAW
=
8
;
public
static
final
int
TILE_REQUEST
=
9
;
public
final
int
mType
;
public
final
int
mType
;
public
ImmutableViewportMetrics
mViewportMetrics
;
public
String
mTypeString
;
public
String
mTypeString
;
public
int
mPartIndex
;
public
int
mPartIndex
;
public
String
mFilename
;
public
String
mFilename
;
...
@@ -54,17 +48,6 @@ public class LOEvent {
...
@@ -54,17 +48,6 @@ public class LOEvent {
mTypeString
=
"Tile size"
;
mTypeString
=
"Tile size"
;
}
}
public
LOEvent
(
int
type
,
ImmutableViewportMetrics
viewportMetrics
)
{
mType
=
type
;
mTypeString
=
"Viewport"
;
mViewportMetrics
=
viewportMetrics
;
}
public
LOEvent
(
int
type
,
Rect
rect
)
{
mType
=
type
;
mTypeString
=
"Draw"
;
}
public
LOEvent
(
int
type
,
int
partIndex
)
{
public
LOEvent
(
int
type
,
int
partIndex
)
{
mType
=
type
;
mType
=
type
;
mPartIndex
=
partIndex
;
mPartIndex
=
partIndex
;
...
...
android/experimental/LOAndroid3/src/java/org/libreoffice/LOEventFactory.java
Dosyayı görüntüle @
6721736e
package
org
.
libreoffice
;
package
org
.
libreoffice
;
import
android.graphics.Rect
;
import
org.mozilla.gecko.gfx.ComposedTileLayer
;
import
org.mozilla.gecko.gfx.ComposedTileLayer
;
import
org.mozilla.gecko.gfx.ImmutableViewportMetrics
;
import
org.mozilla.gecko.gfx.IntSize
;
import
org.mozilla.gecko.gfx.IntSize
;
public
class
LOEventFactory
{
public
class
LOEventFactory
{
public
static
LOEvent
draw
(
Rect
rect
)
{
return
new
LOEvent
(
LOEvent
.
DRAW
,
rect
);
}
public
static
LOEvent
sizeChanged
(
int
widthPixels
,
int
heightPixels
)
{
public
static
LOEvent
sizeChanged
(
int
widthPixels
,
int
heightPixels
)
{
return
new
LOEvent
(
LOEvent
.
SIZE_CHANGED
,
widthPixels
,
heightPixels
);
return
new
LOEvent
(
LOEvent
.
SIZE_CHANGED
,
widthPixels
,
heightPixels
);
}
}
...
@@ -20,10 +13,6 @@ public class LOEventFactory {
...
@@ -20,10 +13,6 @@ public class LOEventFactory {
return
new
LOEvent
(
LOEvent
.
TILE_SIZE
,
tileSize
);
return
new
LOEvent
(
LOEvent
.
TILE_SIZE
,
tileSize
);
}
}
public
static
LOEvent
viewport
(
ImmutableViewportMetrics
viewportMetrics
)
{
return
new
LOEvent
(
LOEvent
.
VIEWPORT
,
viewportMetrics
);
}
public
static
LOEvent
changePart
(
int
part
)
{
public
static
LOEvent
changePart
(
int
part
)
{
return
new
LOEvent
(
LOEvent
.
CHANGE_PART
,
part
);
return
new
LOEvent
(
LOEvent
.
CHANGE_PART
,
part
);
}
}
...
...
android/experimental/LOAndroid3/src/java/org/libreoffice/LOKitThread.java
Dosyayı görüntüle @
6721736e
...
@@ -111,13 +111,6 @@ public class LOKitThread extends Thread {
...
@@ -111,13 +111,6 @@ public class LOKitThread extends Thread {
case
LOEvent
.
CLOSE
:
case
LOEvent
.
CLOSE
:
closeDocument
();
closeDocument
();
break
;
break
;
case
LOEvent
.
VIEWPORT
:
mViewportMetrics
=
event
.
mViewportMetrics
;
draw
();
break
;
case
LOEvent
.
DRAW
:
draw
();
break
;
case
LOEvent
.
SIZE_CHANGED
:
case
LOEvent
.
SIZE_CHANGED
:
redraw
();
redraw
();
break
;
break
;
...
...
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