blob: d8348ee29cb731c1bb4cfe76b27e05abba2c01b8 [file] [log] [blame]
// Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
function setCursorToSelectValue() {
var selectEl = document.querySelector('select');
var cursorType = parseInt(selectEl.value, 10);
common.naclModule.postMessage(cursorType);
}
function moduleDidLoad() {
setCursorToSelectValue();
}
function attachListeners() {
var selectEl = document.querySelector('select');
selectEl.addEventListener('change', function (e) {
setCursorToSelectValue();
});
}