| 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 VIEWS_IME_INPUT_METHOD_GTK_H_ |
| 6 #define VIEWS_IME_INPUT_METHOD_GTK_H_ | 6 #define 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" |
| 15 #include "ui/base/ime/text_input_client.h" |
| 14 #include "views/ime/input_method_base.h" | 16 #include "views/ime/input_method_base.h" |
| 15 #include "views/view.h" | 17 #include "views/view.h" |
| 16 | 18 |
| 17 namespace views { | 19 namespace views { |
| 18 | 20 |
| 19 // An InputMethod implementation based on GtkIMContext. Most code are copied | 21 // An InputMethod implementation based on GtkIMContext. Most code are copied |
| 20 // from chrome/browser/renderer_host/gtk_im_context_wrapper.* | 22 // from chrome/browser/renderer_host/gtk_im_context_wrapper.* |
| 21 // It's intended for testing purpose. | 23 // It's intended for testing purpose. |
| 22 class InputMethodGtk : public InputMethodBase { | 24 class InputMethodGtk : public InputMethodBase { |
| 23 public: | 25 public: |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 // 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 |
| 113 // event will be discarded. | 115 // event will be discarded. |
| 114 bool suppress_next_result_; | 116 bool suppress_next_result_; |
| 115 | 117 |
| 116 DISALLOW_COPY_AND_ASSIGN(InputMethodGtk); | 118 DISALLOW_COPY_AND_ASSIGN(InputMethodGtk); |
| 117 }; | 119 }; |
| 118 | 120 |
| 119 } // namespace views | 121 } // namespace views |
| 120 | 122 |
| 121 #endif // VIEWS_IME_INPUT_METHOD_GTK_H_ | 123 #endif // VIEWS_IME_INPUT_METHOD_GTK_H_ |
| OLD | NEW |