Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(96)

Side by Side Diff: chrome/test/data/gtk_key_bindings_test_gtkrc

Issue 7669040: content: Move render_widget_host_view_gtk to content/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: chromeos fix. Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 # A keybinding set for testing GtkKeyBindingsHandler.
2 # chrome/browser/render_host/gtk_key_bindings_handler_unittest.cc and this
3 # file must be kept in sync.
4 # This file covers all key bindings supported by GtkKeyBindingsHandler.
5
6 binding "gtk-key-bindings-handler"
7 {
8 # Test "move-cursor"
9 bind "<ctrl>1" {
10 "move-cursor" (logical-positions, -2, 0)
11 "move-cursor" (logical-positions, 2, 0)
12 "move-cursor" (visual-positions, -1, 1)
13 "move-cursor" (visual-positions, 1, 1)
14 "move-cursor" (words, -1, 0)
15 "move-cursor" (words, 1, 0)
16 "move-cursor" (display-lines, -1, 0)
17 "move-cursor" (display-lines, 1, 0)
18 "move-cursor" (display-line-ends, -1, 0)
19 "move-cursor" (display-line-ends, 1, 0)
20 "move-cursor" (paragraph-ends, -1, 0)
21 "move-cursor" (paragraph-ends, 1, 0)
22 "move-cursor" (pages, -1, 0)
23 "move-cursor" (pages, 1, 0)
24 "move-cursor" (buffer-ends, -1, 0)
25 "move-cursor" (buffer-ends, 1, 0)
26 }
27
28 # Test "delete-from-cursor"
29 bind "<ctrl>2" {
30 "delete-from-cursor" (chars, -2)
31 "delete-from-cursor" (chars, 2)
32 "delete-from-cursor" (word-ends, -1)
33 "delete-from-cursor" (word-ends, 1)
34 "delete-from-cursor" (words, -1)
35 "delete-from-cursor" (words, 1)
36 "delete-from-cursor" (display-lines, -1)
37 "delete-from-cursor" (display-lines, 1)
38 "delete-from-cursor" (display-line-ends, -1)
39 "delete-from-cursor" (display-line-ends, 1)
40 "delete-from-cursor" (paragraph-ends, -1)
41 "delete-from-cursor" (paragraph-ends, 1)
42 "delete-from-cursor" (paragraphs, -1)
43 "delete-from-cursor" (paragraphs, 1)
44 }
45
46 # Test backspace
47 bind "<ctrl>3" {
48 "backspace" ()
49 }
50
51 # Test copy-clipboard
52 bind "<ctrl>4" {
53 "copy-clipboard" ()
54 }
55
56 # Test cut-clipboard
57 bind "<ctrl>5" {
58 "cut-clipboard" ()
59 }
60
61 # Test insert-at-cursor
62 bind "<ctrl>6" {
63 "insert-at-cursor" ("hello")
64 }
65
66 # Test paste-clipboard
67 bind "<ctrl>7" {
68 "paste-clipboard" ()
69 }
70
71 # Test select-all
72 bind "<ctrl>8" {
73 "select-all" (0)
74 "select-all" (1)
75 }
76
77 # Test set-anchor
78 bind "<ctrl>9" {
79 "set-anchor" ()
80 }
81 }
82
83 class "GtkTextView" binding "gtk-key-bindings-handler"
OLDNEW
« no previous file with comments | « chrome/common/chrome_switches.cc ('k') | content/browser/renderer_host/gtk_im_context_wrapper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698