OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "content/browser/renderer_host/gtk_im_context_wrapper.h" | 5 #include "content/browser/renderer_host/gtk_im_context_wrapper.h" |
6 | 6 |
7 #include <gdk/gdk.h> | 7 #include <gdk/gdk.h> |
8 #include <gdk/gdkkeysyms.h> | 8 #include <gdk/gdkkeysyms.h> |
9 #include <gtk/gtk.h> | 9 #include <gtk/gtk.h> |
10 | 10 |
11 #include <algorithm> | 11 #include <algorithm> |
12 | 12 |
13 #include "base/logging.h" | 13 #include "base/logging.h" |
14 #include "base/string_util.h" | 14 #include "base/strings/string_util.h" |
15 #include "base/strings/utf_string_conversions.h" | 15 #include "base/strings/utf_string_conversions.h" |
16 #include "content/browser/renderer_host/render_widget_host_impl.h" | 16 #include "content/browser/renderer_host/render_widget_host_impl.h" |
17 #include "content/browser/renderer_host/render_widget_host_view_gtk.h" | 17 #include "content/browser/renderer_host/render_widget_host_view_gtk.h" |
18 #include "content/public/browser/native_web_keyboard_event.h" | 18 #include "content/public/browser/native_web_keyboard_event.h" |
19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCompositionUnderli
ne.h" | 19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCompositionUnderli
ne.h" |
20 #include "ui/base/gtk/gtk_im_context_util.h" | 20 #include "ui/base/gtk/gtk_im_context_util.h" |
21 #include "ui/gfx/gtk_util.h" | 21 #include "ui/gfx/gtk_util.h" |
22 #include "ui/gfx/rect.h" | 22 #include "ui/gfx/rect.h" |
23 | 23 |
24 namespace content { | 24 namespace content { |
(...skipping 628 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
653 GtkWidget* widget, GtkIMContextWrapper* self) { | 653 GtkWidget* widget, GtkIMContextWrapper* self) { |
654 self->HandleHostViewRealize(widget); | 654 self->HandleHostViewRealize(widget); |
655 } | 655 } |
656 | 656 |
657 void GtkIMContextWrapper::HandleHostViewUnrealizeThunk( | 657 void GtkIMContextWrapper::HandleHostViewUnrealizeThunk( |
658 GtkWidget* widget, GtkIMContextWrapper* self) { | 658 GtkWidget* widget, GtkIMContextWrapper* self) { |
659 self->HandleHostViewUnrealize(); | 659 self->HandleHostViewUnrealize(); |
660 } | 660 } |
661 | 661 |
662 } // namespace content | 662 } // namespace content |
OLD | NEW |