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

Side by Side Diff: chrome/browser/ui/libgtkui/x11_input_method_context_impl_gtk.h

Issue 2453243002: Gtk3 UI: Rename files in libgtkui containing gtk2 in their name (Closed)
Patch Set: Fix git cl format mistake Created 4 years, 1 month 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_LIBGTKUI_X11_INPUT_METHOD_CONTEXT_IMPL_GTK2_H_ 5 #ifndef CHROME_BROWSER_UI_LIBGTKUI_X11_INPUT_METHOD_CONTEXT_IMPL_GTK_H_
6 #define CHROME_BROWSER_UI_LIBGTKUI_X11_INPUT_METHOD_CONTEXT_IMPL_GTK2_H_ 6 #define CHROME_BROWSER_UI_LIBGTKUI_X11_INPUT_METHOD_CONTEXT_IMPL_GTK_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/containers/hash_tables.h" 10 #include "base/containers/hash_tables.h"
11 #include "base/event_types.h" 11 #include "base/event_types.h"
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/strings/string16.h" 13 #include "base/strings/string16.h"
14 #include "ui/base/glib/glib_integers.h" 14 #include "ui/base/glib/glib_integers.h"
15 #include "ui/base/glib/glib_signal.h" 15 #include "ui/base/glib/glib_signal.h"
16 #include "ui/base/ime/linux/linux_input_method_context.h" 16 #include "ui/base/ime/linux/linux_input_method_context.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 51
52 // Returns true if one of |keycodes| is pressed. |keybits| is a bit vector 52 // Returns true if one of |keycodes| is pressed. |keybits| is a bit vector
53 // returned by XQueryKeymap, and |num_keys| is the number of keys in 53 // returned by XQueryKeymap, and |num_keys| is the number of keys in
54 // |keybits|. 54 // |keybits|.
55 bool IsAnyOfKeycodesPressed(const std::vector<int>& keycodes, 55 bool IsAnyOfKeycodesPressed(const std::vector<int>& keycodes,
56 const char* keybits, 56 const char* keybits,
57 int num_keys) const; 57 int num_keys) const;
58 58
59 // GtkIMContext event handlers. They are shared among |gtk_context_simple_| 59 // GtkIMContext event handlers. They are shared among |gtk_context_simple_|
60 // and |gtk_multicontext_|. 60 // and |gtk_multicontext_|.
61 CHROMEG_CALLBACK_1(X11InputMethodContextImplGtk2, void, OnCommit, 61 CHROMEG_CALLBACK_1(X11InputMethodContextImplGtk2,
62 GtkIMContext*, gchar*); 62 void,
63 CHROMEG_CALLBACK_0(X11InputMethodContextImplGtk2, void, OnPreeditChanged, 63 OnCommit,
64 GtkIMContext*,
65 gchar*);
66 CHROMEG_CALLBACK_0(X11InputMethodContextImplGtk2,
67 void,
68 OnPreeditChanged,
64 GtkIMContext*); 69 GtkIMContext*);
65 CHROMEG_CALLBACK_0(X11InputMethodContextImplGtk2, void, OnPreeditEnd, 70 CHROMEG_CALLBACK_0(X11InputMethodContextImplGtk2,
71 void,
72 OnPreeditEnd,
66 GtkIMContext*); 73 GtkIMContext*);
67 CHROMEG_CALLBACK_0(X11InputMethodContextImplGtk2, void, OnPreeditStart, 74 CHROMEG_CALLBACK_0(X11InputMethodContextImplGtk2,
75 void,
76 OnPreeditStart,
68 GtkIMContext*); 77 GtkIMContext*);
69 78
70 // A set of callback functions. Must not be NULL. 79 // A set of callback functions. Must not be NULL.
71 ui::LinuxInputMethodContextDelegate* delegate_; 80 ui::LinuxInputMethodContextDelegate* delegate_;
72 81
73 // IME's input GTK context. 82 // IME's input GTK context.
74 GtkIMContext* gtk_context_; 83 GtkIMContext* gtk_context_;
75 84
76 gpointer gdk_last_set_client_window_; 85 gpointer gdk_last_set_client_window_;
77 86
78 // Last known caret bounds relative to the screen coordinates. 87 // Last known caret bounds relative to the screen coordinates.
79 gfx::Rect last_caret_bounds_; 88 gfx::Rect last_caret_bounds_;
80 89
81 // A set of hardware keycodes of modifier keys. 90 // A set of hardware keycodes of modifier keys.
82 base::hash_set<unsigned int> modifier_keycodes_; 91 base::hash_set<unsigned int> modifier_keycodes_;
83 92
84 // A list of keycodes of each modifier key. 93 // A list of keycodes of each modifier key.
85 std::vector<int> meta_keycodes_; 94 std::vector<int> meta_keycodes_;
86 std::vector<int> super_keycodes_; 95 std::vector<int> super_keycodes_;
87 std::vector<int> hyper_keycodes_; 96 std::vector<int> hyper_keycodes_;
88 97
89 DISALLOW_COPY_AND_ASSIGN(X11InputMethodContextImplGtk2); 98 DISALLOW_COPY_AND_ASSIGN(X11InputMethodContextImplGtk2);
90 }; 99 };
91 100
92 } // namespace libgtkui 101 } // namespace libgtkui
93 102
94 #endif // CHROME_BROWSER_UI_LIBGTKUI_X11_INPUT_METHOD_CONTEXT_IMPL_GTK2_H_ 103 #endif // CHROME_BROWSER_UI_LIBGTKUI_X11_INPUT_METHOD_CONTEXT_IMPL_GTK_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/libgtkui/unity_service.cc ('k') | chrome/browser/ui/libgtkui/x11_input_method_context_impl_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698