| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 VIEWS_IME_INPUT_METHOD_GTK_H_ | 5 #ifndef UI_VIEWS_IME_INPUT_METHOD_GTK_H_ |
| 6 #define VIEWS_IME_INPUT_METHOD_GTK_H_ | 6 #define UI_VIEWS_IME_INPUT_METHOD_GTK_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <gtk/gtk.h> | 9 #include <gtk/gtk.h> |
| 10 | 10 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
| 13 #include "ui/base/gtk/gtk_signal.h" | 13 #include "ui/base/gtk/gtk_signal.h" |
| 14 #include "ui/base/ime/composition_text.h" | 14 #include "ui/base/ime/composition_text.h" |
| 15 #include "ui/base/ime/text_input_client.h" | 15 #include "ui/base/ime/text_input_client.h" |
| 16 #include "views/ime/input_method_base.h" | 16 #include "ui/views/ime/input_method_base.h" |
| 17 #include "views/view.h" | 17 #include "views/view.h" |
| 18 | 18 |
| 19 namespace views { | 19 namespace views { |
| 20 | 20 |
| 21 // An InputMethod implementation based on GtkIMContext. Most code are copied | 21 // An InputMethod implementation based on GtkIMContext. Most code are copied |
| 22 // from chrome/browser/renderer_host/gtk_im_context_wrapper.* | 22 // from chrome/browser/renderer_host/gtk_im_context_wrapper.* |
| 23 // It's intended for testing purpose. | 23 // It's intended for testing purpose. |
| 24 class InputMethodGtk : public InputMethodBase { | 24 class InputMethodGtk : public InputMethodBase { |
| 25 public: | 25 public: |
| 26 explicit InputMethodGtk(internal::InputMethodDelegate* delegate); | 26 explicit InputMethodGtk(internal::InputMethodDelegate* delegate); |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 | 113 |
| 114 // If it's true then all input method result received before the next key | 114 // If it's true then all input method result received before the next key |
| 115 // event will be discarded. | 115 // event will be discarded. |
| 116 bool suppress_next_result_; | 116 bool suppress_next_result_; |
| 117 | 117 |
| 118 DISALLOW_COPY_AND_ASSIGN(InputMethodGtk); | 118 DISALLOW_COPY_AND_ASSIGN(InputMethodGtk); |
| 119 }; | 119 }; |
| 120 | 120 |
| 121 } // namespace views | 121 } // namespace views |
| 122 | 122 |
| 123 #endif // VIEWS_IME_INPUT_METHOD_GTK_H_ | 123 #endif // UI_VIEWS_IME_INPUT_METHOD_GTK_H_ |
| OLD | NEW |