Source: selectionmodel.js

goog.provide('sync.api.SelectionModel');

goog.require('sync.select');


/**
 * The selection model of the document.
 *
 * @constructor
 */
sync.api.SelectionModel = function() {
};


/**
 * @return {sync.api.Selection} The selection of the document.
 */
sync.api.SelectionModel.prototype.getSelection = function() {
  return sync.select.getSelection();
};


/**
 * @param {sync.api.Selection} sel The selection to be set.
 */
sync.api.SelectionModel.prototype.setSelection = function(sel) {
  sync.select.setSelection(sel);
};