summaryrefslogtreecommitdiff
path: root/gdk/broadway/broadway-protocol.h
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2013-11-13 12:20:07 +0100
committerAlexander Larsson <alexl@redhat.com>2013-11-13 12:23:06 +0100
commit4226f97d540ecd8cb5995184bfba7a1102560740 (patch)
tree8be015371a590bba0143c3ebb337ee934c4cdcfd /gdk/broadway/broadway-protocol.h
parentca89f5ab93da6745fb7f5d3483ed2943fce6f94e (diff)
downloadgtk+-4226f97d540ecd8cb5995184bfba7a1102560740.tar.gz
broadway: Support ipad on-screen keyboard
We add a custom im module for broadway that calls some broadway specific APIs to show/hide the keyboard on focus in/out. We then forward this to the browser, and on the ipad we focus an input field to activate the keyboard.
Diffstat (limited to 'gdk/broadway/broadway-protocol.h')
-rw-r--r--gdk/broadway/broadway-protocol.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/gdk/broadway/broadway-protocol.h b/gdk/broadway/broadway-protocol.h
index 8447bd567a..db0c4f1c93 100644
--- a/gdk/broadway/broadway-protocol.h
+++ b/gdk/broadway/broadway-protocol.h
@@ -42,6 +42,7 @@ typedef enum {
BROADWAY_OP_AUTH_OK = 'L',
BROADWAY_OP_DISCONNECTED = 'D',
BROADWAY_OP_PUT_BUFFER = 'b',
+ BROADWAY_OP_SET_SHOW_KEYBOARD = 'k',
} BroadwayOpType;
typedef struct {
@@ -154,7 +155,8 @@ typedef enum {
BROADWAY_REQUEST_MOVE_RESIZE,
BROADWAY_REQUEST_GRAB_POINTER,
BROADWAY_REQUEST_UNGRAB_POINTER,
- BROADWAY_REQUEST_FOCUS_WINDOW
+ BROADWAY_REQUEST_FOCUS_WINDOW,
+ BROADWAY_REQUEST_SET_SHOW_KEYBOARD
} BroadwayRequestType;
typedef struct {
@@ -223,6 +225,11 @@ typedef struct {
guint32 height;
} BroadwayRequestMoveResize;
+typedef struct {
+ BroadwayRequestBase base;
+ guint32 show_keyboard;
+} BroadwayRequestSetShowKeyboard;
+
typedef union {
BroadwayRequestBase base;
BroadwayRequestNewWindow new_window;
@@ -239,6 +246,7 @@ typedef union {
BroadwayRequestUngrabPointer ungrab_pointer;
BroadwayRequestTranslate translate;
BroadwayRequestFocusWindow focus_window;
+ BroadwayRequestSetShowKeyboard set_show_keyboard;
} BroadwayRequest;
typedef enum {