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

Side by Side Diff: chrome/browser/ui/libgtk2ui/x11_input_method_context_impl_gtk2.h

Issue 1234223005: Initial gtk3 support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed abort on GtkPrintUnixDialog Created 5 years, 5 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
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_LIBGTK2UI_X11_INPUT_METHOD_CONTEXT_IMPL_GTK2_H_ 5 #ifndef CHROME_BROWSER_UI_LIBGTK2UI_X11_INPUT_METHOD_CONTEXT_IMPL_GTK2_H_
6 #define CHROME_BROWSER_UI_LIBGTK2UI_X11_INPUT_METHOD_CONTEXT_IMPL_GTK2_H_ 6 #define CHROME_BROWSER_UI_LIBGTK2UI_X11_INPUT_METHOD_CONTEXT_IMPL_GTK2_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/gtest_prod_util.h" 12 #include "base/gtest_prod_util.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"
17 #include "ui/gfx/geometry/rect.h" 17 #include "ui/gfx/geometry/rect.h"
18 18
19 typedef union _GdkEvent GdkEvent; 19 typedef union _GdkEvent GdkEvent;
20 typedef struct _GdkDrawable GdkWindow; 20 typedef struct _GdkWindow GdkWindow;
21 typedef struct _GtkIMContext GtkIMContext; 21 typedef struct _GtkIMContext GtkIMContext;
22 22
23 namespace libgtk2ui { 23 namespace libgtk2ui {
24 24
25 // An implementation of LinuxInputMethodContext which is based on X11 event loop 25 // An implementation of LinuxInputMethodContext which is based on X11 event loop
26 // and uses GtkIMContext(gtk-immodule) as a bridge from/to underlying IMEs. 26 // and uses GtkIMContext(gtk-immodule) as a bridge from/to underlying IMEs.
27 class X11InputMethodContextImplGtk2 : public ui::LinuxInputMethodContext { 27 class X11InputMethodContextImplGtk2 : public ui::LinuxInputMethodContext {
28 public: 28 public:
29 X11InputMethodContextImplGtk2(ui::LinuxInputMethodContextDelegate* delegate, 29 X11InputMethodContextImplGtk2(ui::LinuxInputMethodContextDelegate* delegate,
30 bool is_simple); 30 bool is_simple);
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 std::vector<int> meta_keycodes_; 86 std::vector<int> meta_keycodes_;
87 std::vector<int> super_keycodes_; 87 std::vector<int> super_keycodes_;
88 std::vector<int> hyper_keycodes_; 88 std::vector<int> hyper_keycodes_;
89 89
90 DISALLOW_COPY_AND_ASSIGN(X11InputMethodContextImplGtk2); 90 DISALLOW_COPY_AND_ASSIGN(X11InputMethodContextImplGtk2);
91 }; 91 };
92 92
93 } // namespace libgtk2ui 93 } // namespace libgtk2ui
94 94
95 #endif // CHROME_BROWSER_UI_LIBGTK2UI_X11_INPUT_METHOD_CONTEXT_IMPL_GTK2_H_ 95 #endif // CHROME_BROWSER_UI_LIBGTK2UI_X11_INPUT_METHOD_CONTEXT_IMPL_GTK2_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698