summaryrefslogtreecommitdiff
path: root/gdk/broadway/broadway.js
Commit message (Collapse)AuthorAgeFilesLines
...
* broadway: Fix indentationAlexander Larsson2012-10-011-22/+22
|
* broadway: Detect binary websockets supportAlexander Larsson2012-10-011-7/+17
|
* broadway: Centralize cmd parsingAlexander Larsson2012-10-011-79/+75
| | | | | This clean up things, as well as prepares for new message formats such as binary websockets.
* broadway: Initial support fro V7+ websocketsMichael Meeks2011-11-101-6/+13
| | | | | | | | | Allows more modern browsers eg. firefox 5+ to use gtk/broadway Auto-detects protocol version, and can switch between them at as you connect a different browser. This works to some extent, but seems to hang sometimes, for instance the "button box" test in testgtk never shows up.
* [broadway] New adwaita based css for "wm"Lapo Calamandrei2011-04-191-1/+1
| | | | Created by Lapo Calamandrei.
* [broadway] Remove debug spewAlexander Larsson2011-04-181-2/+2
|
* [broadway] Stream data over websocketAlexander Larsson2011-04-181-15/+6
| | | | | | | | | | | The zlib compressed xmlhttprequest thing was a nice hack, but it doesn't really work in production. Its not portable, doesn't have enought API (missing notification for closed sockets) and having to synchronize between two different connections in a reliable way is a pain. So, we're going everything over the websocket. This is a pure switch, but after this we want to modify the protocol to work better over the uncompressed utf8 transport of websockets.
* [broadway] Implement wm close in browserAlexander Larsson2011-04-181-12/+48
|
* [broadway] Report most special keys in keypressedAlexander Larsson2011-04-181-7/+20
| | | | | | | | Some special key keycode values as seen in keydown actually match normal keys (like "." has a keyCode 46 on keyPress, which is the same as Delete, but 190 for KeyDown). So we must match the special keys on keypress. However, some things must be checked on keydown as they are not generating keypress events.
* [broadway] Correctly handle ungrabs in the browser sideAlexander Larsson2011-04-151-3/+9
| | | | | Always call doUngrab to get the right event, and always do this if the grabbed window is hidden or destroyed.
* [broadway] Handle keyboard modifiers in stateAlexander Larsson2011-04-141-3/+11
|
* [broadway] Implement keyboard event betterAlexander Larsson2011-04-141-11/+1539
| | | | | | | We're using the noVNC keyboard even handling model (and some of the code with permissions). This means we combine data from keydown and keypress to figure out the translated keysyms according to the keyboard layout at the users machine.
* [broadway] Cancel key events after seeing themAlexander Larsson2011-04-121-2/+4
|
* [broadway] Fix canvas resize when resizing browser windowAlexander Larsson2011-04-121-3/+3
| | | | We always have to resize the canvas, even when its in a toplevel.
* [broadway] Fix typoAlexander Larsson2011-04-121-1/+1
|
* [broadway] Combine window move and resize into one opAlexander Larsson2011-04-121-56/+54
| | | | | This way we avoid sending a configure event for the inbetween state if we're resizeing and moving at the same time.
* [broadway] Fix various js warningsAlexander Larsson2011-04-121-21/+22
|
* [broadway] Add stacktrace debugging functionsAlexander Larsson2011-04-121-0/+56
|
* [broadway] Always send configure events from browserAlexander Larsson2011-04-121-10/+28
| | | | | | | | | | As soon as something changes, even if it was a request from the user we send a configure event. If not we might race with a app-side generated configure event. For instance, a create + resize might create only a configure event for the create in the browser, but that may get to the app after the app-side configure event for the resize, overriding the new size.
* [broadway] More complete handling of transient parentAlexander Larsson2011-04-121-7/+14
| | | | We now handle any order of transient being set and windows shown/created
* [broadway] Use mozInnerScreenX & co to get window positionAlexander Larsson2011-04-121-14/+9
| | | | | This way we don't have to rely on any event, which won't work until we get an event.
* [broadway] Parse x/y as signedAlexander Larsson2011-04-121-2/+2
|
* [broadway] Update window geometry after showing windowAlexander Larsson2011-04-121-0/+3
|
* [broadway] Don't cache surface.transientToplevel as that might change at ↵Alexander Larsson2011-04-121-12/+12
| | | | various times
* [broadway] Clean up js side surface handlingAlexander Larsson2011-04-111-48/+29
| | | | | | | * Always calculate the context, don't store in surface. * Store the toplevel element (frame or canvas) for easy access. * Always use visibility hidden rathern than display none to hide windows, as this means we can always rely on dom positioning info.
* [broadway] Restack on window show to ensure all zIndexes are rightAlexander Larsson2011-04-111-0/+2
|
* [broadway] Store surface, not id in stackingOrder listAlexander Larsson2011-04-111-6/+5
|
* [broadway] Fix up frame size calculationAlexander Larsson2011-04-111-2/+31
| | | | | Turns out that offsetTop/Left doesn't contain the border, so we need to manually add that in.
* [broadway] Make the toplevel mode a url parameterAlexander Larsson2011-04-101-0/+7
|
* [broadway] Position non-popup windows ourselvesAlexander Larsson2011-04-101-4/+15
| | | | | We ignore the initial positions for non-popup windows, instead we place the windows ourselves (or in the useToplevel mode by the WM).
* [broadway] Fix up toplevel content visibility in useToplevel modeAlexander Larsson2011-04-101-0/+1
| | | | | surfaces.canvas may change if we move to another document, so reupdate the element to show after ensureSurfaceInDocument.
* [broadway] Move window to top when movingAlexander Larsson2011-04-101-2/+44
|
* [broadway] Add some initial work for in-window framesAlexander Larsson2011-04-101-19/+136
| | | | | The css is based on work by Jasper St Pierre: http://magcius.mecheye.net/vista/
* [broadway] Fix some typos in the js codeAlexander Larsson2011-04-101-2/+2
|
* [broadway] Enable useToplevelWindow by default for nowAlexander Larsson2011-04-071-1/+1
|
* [broadway] Fix typo in implicit grab supportAlexander Larsson2011-04-071-1/+1
| | | | | We do an implicit grab if there is no grab already, not only if there is one.
* [broadway] Handle screen sizeAlexander Larsson2011-04-071-2/+18
| | | | Without this menu placement doesn't work right
* [broadway] Wire up the delete eventAlexander Larsson2011-04-071-0/+13
|
* [broadway] Report right root coors in toplevel modeAlexander Larsson2011-04-071-19/+12
|
* [broadway] Add configure event for browser-side geometry changesAlexander Larsson2011-04-071-20/+113
| | | | | Atm this only works for the useToplevelWindows case, but we can add a browser wm to make use of it inside the browser too.
* [broadway] Add experimental toplevel window modeAlexander Larsson2011-04-071-7/+142
| | | | | | | | | This mode makes each toplevel window get its own browser window, with popup windows using the browser window of their transient parent. Its not idea, as you can't get rid of all browser chrome by default, and it means popups (like menus) can't extend outside the toplevels. But, it is kinda cool.
* [broadway] Fixup ungrab reference to old time variableAlexander Larsson2011-04-071-5/+1
|
* [broadway] Break out document setup into its own functionAlexander Larsson2011-04-071-15/+20
| | | | | In the future we might have more documents (one per toplevel browser window).
* [broadway] Remove unused grab.time on browser sideAlexander Larsson2011-04-071-6/+4
|
* [broadway] Break out all command handling to separate functionsAlexander Larsson2011-04-071-67/+107
| | | | We don't want to mix up the argument parsing with the actual implementation.
* [broadway] Make the surface object a plain js object, not the contextAlexander Larsson2011-04-071-17/+20
|
* [broadway] Centralize surface creation code in jsAlexander Larsson2011-04-071-7/+6
|
* [broadway] Track window type in browserAlexander Larsson2011-04-071-2/+5
|
* [broadway] Track transient_forAlexander Larsson2011-04-071-0/+8
|
* [broadway] Remove unused query pointer messageAlexander Larsson2011-04-071-9/+0
|