~ubuntu-branches/ubuntu/vivid/emscripten/vivid

« back to all changes in this revision

Viewing changes to src/library_xlib.js

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2013-05-02 13:11:51 UTC
  • Revision ID: package-import@ubuntu.com-20130502131151-q8dvteqr1ef2x7xz
Tags: upstream-1.4.1~20130504~adb56cb
ImportĀ upstreamĀ versionĀ 1.4.1~20130504~adb56cb

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
var LibraryXlib = {
 
3
  XOpenDisplay: function() {
 
4
    return 1; // We support 1 display, the canvas
 
5
  },
 
6
 
 
7
  XCreateWindow: function(display, parent, x, y, width, height, border_width, depth, class_, visual, valuemask, attributes) {
 
8
    // All we can do is set the width and height
 
9
    Browser.setCanvasSize(width, height);
 
10
    return 2;
 
11
  },
 
12
 
 
13
  XChangeWindowAttributes: function(){},
 
14
  XSetWMHints: function(){},
 
15
  XMapWindow: function(){},
 
16
  XStoreName: function(){},
 
17
  XInternAtom: function(display, name_, hmm) { return 0 },
 
18
  XSendEvent: function(){},
 
19
  XPending: function(display) { return 0 },
 
20
};
 
21
 
 
22
mergeInto(LibraryManager.library, LibraryXlib);
 
23