Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Jul 2012 21:47:37 GMT
From:      Brooks Davis <brooks@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 215196 for review
Message-ID:  <201207312147.q6VLlbxv062387@skunkworks.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/@@215196?ac=10

Change 215196 by brooks@brooks_ecr_current on 2012/07/31 21:47:36

	Add two more trivial dialog types.

Affected files ...

.. //depot/projects/ctsrd/beribsd/src/ctsrd-lib/libde4tc/de4tc.c#13 edit
.. //depot/projects/ctsrd/beribsd/src/ctsrd-lib/libde4tc/de4tc.h#11 edit

Differences ...

==== //depot/projects/ctsrd/beribsd/src/ctsrd-lib/libde4tc/de4tc.c#13 (text+ko) ====

@@ -738,6 +738,15 @@
 	ts_drain();
 
 	switch (type) {
+	case FBDT_EAST2CLOSE:
+		for (;;) {
+			ts = ts_poll();
+			if (ts->ts_gesture == TSG_EAST) {
+				if (ts_poll()->ts_count != 0)
+					ts_drain();
+				return(FBDA_OK);
+			}
+		}
 	case FBDT_PINCH2CLOSE:
 		for (;;) {
 			ts = ts_poll();
@@ -767,6 +776,15 @@
 				return(FBDA_UP);
 			}
 		}
+	case FBDT_WEST2CLOSE:
+		for (;;) {
+			ts = ts_poll();
+			if (ts->ts_gesture == TSG_WEST) {
+				if (ts_poll()->ts_count != 0)
+					ts_drain();
+				return(FBDA_OK);
+			}
+		}
 	default:
 		err(1, "Unhandled dialog type");
 	}

==== //depot/projects/ctsrd/beribsd/src/ctsrd-lib/libde4tc/de4tc.h#11 (text+ko) ====

@@ -67,8 +67,10 @@
 } fb_dialog_action;
         
 typedef enum {
+	FBDT_EAST2CLOSE,
 	FBDT_PINCH2CLOSE,
 	FBDT_PINCH_OR_VSCROLL,
+	FBDT_WEST2CLOSE,
 #ifdef NOTYET
 	FBDT_OK,
 	FBDT_OKCANCEL,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201207312147.q6VLlbxv062387>