File: AccessibleCaretEventHubStates.dot

package info (click to toggle)
firefox 141.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 4,550,616 kB
  • sloc: cpp: 7,426,508; javascript: 6,367,238; ansic: 3,707,354; python: 1,368,984; xml: 623,983; asm: 426,916; java: 184,324; sh: 64,488; makefile: 19,203; objc: 13,059; perl: 12,955; yacc: 4,583; cs: 3,846; pascal: 3,352; lex: 1,720; ruby: 1,071; exp: 762; php: 436; lisp: 258; awk: 247; sql: 66; sed: 54; csh: 10
file content (37 lines) | stat: -rw-r--r-- 1,388 bytes parent folder | download | duplicates (16)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// Steps to generate AccessibleCaretEventHubStates.png
// 1. Install Graphviz
// 2. dot -T png -o AccessibleCaretEventHubStates.png AccessibleCaretEventHubStates.dot
//
// Note: If the edge has 'constraint=false', it is not used in ranking the
// nodes. http://www.graphviz.org/doc/info/attrs.html#d:constraint

digraph event_hub_states {
  node [style=filled];
  edge [color="gray30", fontcolor="gray20", fontsize=12]

  NoAction [label="NoAction\n(Initial)"color="#96FF2F"];
  NoAction -> PressCaret [label="Press & on a caret"];
  NoAction -> PressNoCaret [label="Press & not on a caret"];
  NoAction -> Scroll [label="Scroll start"];

  PressCaret [color="#84D8FF"];
  PressCaret -> DragCaret [label="Move & distance is large"];
  PressCaret -> NoAction [label="Release (synthesizing a tap)"];

  DragCaret [color="#84D8FF"];
  DragCaret -> DragCaret [label="Move"];
  DragCaret -> NoAction [label="Release"];

  PressNoCaret [color="#E8C516"];
  PressNoCaret -> NoAction [label="Move & distance is large or\nRelease or\nBlur"];
  PressNoCaret -> LongTap [label="Long tap"];
  PressNoCaret -> Scroll [label="Scroll start", constraint=false];

  LongTap [color="#E8C516"]
  LongTap -> NoAction [label="Release"];
  LongTap -> Scroll [label="Scroll start", constraint=false];

  Scroll [color="#FF9022"]
  Scroll -> NoAction [label="Scroll end"];
  Scroll -> NoAction [label="Blur"];
}