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 |
(...skipping 605 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
616 blink::WebInputEvent::Type type) { | 616 blink::WebInputEvent::Type type) { |
617 NativeWebKeyboardEvent fake_event; | 617 NativeWebKeyboardEvent fake_event; |
618 fake_event.windowsKeyCode = kCompositionEventKeyCode; | 618 fake_event.windowsKeyCode = kCompositionEventKeyCode; |
619 fake_event.skip_in_browser = true; | 619 fake_event.skip_in_browser = true; |
620 fake_event.type = type; | 620 fake_event.type = type; |
621 host_view_->ForwardKeyboardEvent(fake_event); | 621 host_view_->ForwardKeyboardEvent(fake_event); |
622 } | 622 } |
623 | 623 |
624 void GtkIMContextWrapper::HandleCommitThunk( | 624 void GtkIMContextWrapper::HandleCommitThunk( |
625 GtkIMContext* context, gchar* text, GtkIMContextWrapper* self) { | 625 GtkIMContext* context, gchar* text, GtkIMContextWrapper* self) { |
626 self->HandleCommit(UTF8ToUTF16(text)); | 626 self->HandleCommit(base::UTF8ToUTF16(text)); |
627 } | 627 } |
628 | 628 |
629 void GtkIMContextWrapper::HandlePreeditStartThunk( | 629 void GtkIMContextWrapper::HandlePreeditStartThunk( |
630 GtkIMContext* context, GtkIMContextWrapper* self) { | 630 GtkIMContext* context, GtkIMContextWrapper* self) { |
631 self->HandlePreeditStart(); | 631 self->HandlePreeditStart(); |
632 } | 632 } |
633 | 633 |
634 void GtkIMContextWrapper::HandlePreeditChangedThunk( | 634 void GtkIMContextWrapper::HandlePreeditChangedThunk( |
635 GtkIMContext* context, GtkIMContextWrapper* self) { | 635 GtkIMContext* context, GtkIMContextWrapper* self) { |
636 gchar* text = NULL; | 636 gchar* text = NULL; |
(...skipping 19 matching lines...) Expand all Loading... |
656 GtkWidget* widget, GtkIMContextWrapper* self) { | 656 GtkWidget* widget, GtkIMContextWrapper* self) { |
657 self->HandleHostViewRealize(widget); | 657 self->HandleHostViewRealize(widget); |
658 } | 658 } |
659 | 659 |
660 void GtkIMContextWrapper::HandleHostViewUnrealizeThunk( | 660 void GtkIMContextWrapper::HandleHostViewUnrealizeThunk( |
661 GtkWidget* widget, GtkIMContextWrapper* self) { | 661 GtkWidget* widget, GtkIMContextWrapper* self) { |
662 self->HandleHostViewUnrealize(); | 662 self->HandleHostViewUnrealize(); |
663 } | 663 } |
664 | 664 |
665 } // namespace content | 665 } // namespace content |
OLD | NEW |