Linux: Depend on liberation-fonts package for RPMs.
[chromium-blink-merge.git] / native_client_sdk / src / examples / api / mouse_cursor / example.js
blobd8348ee29cb731c1bb4cfe76b27e05abba2c01b8
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 function setCursorToSelectValue() {
6 var selectEl = document.querySelector('select');
7 var cursorType = parseInt(selectEl.value, 10);
8 common.naclModule.postMessage(cursorType);
11 function moduleDidLoad() {
12 setCursorToSelectValue();
15 function attachListeners() {
16 var selectEl = document.querySelector('select');
17 selectEl.addEventListener('change', function (e) {
18 setCursorToSelectValue();
19 });