loleaflet/src/layer/tile/TileLayer.js | 9 +++++++++ loolwsd/protocol.txt | 5 +++++ 2 files changed, 14 insertions(+)
New commits: commit 59ed1bd2ff914b65cab11c841e8233da4c081480 Author: Ashod Nakashian <[email protected]> Date: Sun Aug 14 17:24:46 2016 -0400 loleaflet: new command remallviews to remove all views This command is intended to be used when re-activating a client. It is intended to be sent prior to sending the list of active views, including the re-activating client's own view. A client UI must maintain its own view ID and info when receiving this command. Change-Id: Iea58c01fb30af139888e746b5cf9e7ba7e7eeab1 Reviewed-on: https://gerrit.libreoffice.org/28132 Reviewed-by: Ashod Nakashian <[email protected]> Tested-by: Ashod Nakashian <[email protected]> diff --git a/loleaflet/src/layer/tile/TileLayer.js b/loleaflet/src/layer/tile/TileLayer.js index 1d6f5d6..5e820ff 100644 --- a/loleaflet/src/layer/tile/TileLayer.js +++ b/loleaflet/src/layer/tile/TileLayer.js @@ -363,6 +363,9 @@ L.TileLayer = L.GridLayer.extend({ else if (textMsg.startsWith('remview:')) { this._onRemViewMsg(textMsg); } + else if (textMsg.startsWith('remallviews:')) { + this._onRemAllViewMsg(textMsg); + } }, _onCommandValuesMsg: function (textMsg) { @@ -602,6 +605,12 @@ L.TileLayer = L.GridLayer.extend({ } }, + _onRemAllViewMsg: function(textMsg) { + for (var viewId in this._viewCursors) { + this._onRemViewMsg('remview: ' + viewId); + } + }, + _onPartPageRectanglesMsg: function (textMsg) { textMsg = textMsg.substring(19); var pages = textMsg.split(';'); diff --git a/loolwsd/protocol.txt b/loolwsd/protocol.txt index 02940f5..94b2881 100644 --- a/loolwsd/protocol.txt +++ b/loolwsd/protocol.txt @@ -340,6 +340,11 @@ remview: <viewId> The view with the given viewId has been destroyed. +remallviews: + + Removes all views to send only current ones. + The UI should still maintain its own view and cursor. + child -> parent =============== _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
