Bug 895463 - (p3) Rename SelectionHandler dragging messages, r=jchen, margaret

This commit is contained in:
Mark Capella 2014-04-11 18:06:30 -04:00
Родитель 2c199039f5
Коммит 735bae1fa6
2 изменённых файлов: 6 добавлений и 6 удалений

Просмотреть файл

@ -767,12 +767,12 @@ final class GeckoEditable
mGeckoFocused = false;
mSuppressCompositions = false;
GeckoAppShell.getEventDispatcher().
unregisterEventListener("TextSelection:IMECompositions", this);
unregisterEventListener("TextSelection:DraggingHandle", this);
} else if (type == NOTIFY_IME_OF_FOCUS) {
mGeckoFocused = true;
mSuppressCompositions = false;
GeckoAppShell.getEventDispatcher().
registerEventListener("TextSelection:IMECompositions", this);
registerEventListener("TextSelection:DraggingHandle", this);
}
}
@ -1228,11 +1228,11 @@ final class GeckoEditable
@Override
public void handleMessage(String event, JSONObject message) {
if (!"TextSelection:IMECompositions".equals(event)) {
if (!"TextSelection:DraggingHandle".equals(event)) {
return;
}
mSuppressCompositions = message.optBoolean("suppress", false);
mSuppressCompositions = message.optBoolean("dragging", false);
}
}

Просмотреть файл

@ -188,7 +188,7 @@ var SelectionHandler = {
_startDraggingHandles: function sh_startDraggingHandles() {
if (!this._draggingHandles) {
this._draggingHandles = true;
sendMessageToJava({ type: "TextSelection:IMECompositions", suppress: true });
sendMessageToJava({ type: "TextSelection:DraggingHandle", dragging: true });
}
},
@ -197,7 +197,7 @@ var SelectionHandler = {
_stopDraggingHandles: function sh_stopDraggingHandles() {
if (this._draggingHandles) {
this._draggingHandles = false;
sendMessageToJava({ type: "TextSelection:IMECompositions", suppress: false });
sendMessageToJava({ type: "TextSelection:DraggingHandle", dragging: false });
}
},