Chromium Code Reviews| Index: ui/base/ime/input_method_delegate.h |
| diff --git a/ui/base/ime/input_method_delegate.h b/ui/base/ime/input_method_delegate.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..0b333d595845bac06b344d97410d4d31399c4ba7 |
| --- /dev/null |
| +++ b/ui/base/ime/input_method_delegate.h |
| @@ -0,0 +1,28 @@ |
| +// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef UI_BASE_IME_INPUT_METHOD_DELEGATE_H_ |
| +#define UI_BASE_IME_INPUT_METHOD_DELEGATE_H_ |
| +#pragma once |
| + |
| +#include "ui/gfx/native_widget_types.h" // gfx::NativeEvent |
| +#include "ui/base/ui_export.h" |
| + |
| +namespace ui { |
| +namespace internal { |
| + |
| +// An interface implemented by the object that handles events sent back from an |
| +// ui::InputMethod implementation. |
| +class UI_EXPORT InputMethodDelegate { |
| + public: |
| + virtual ~InputMethodDelegate() {} |
| + |
| + // Dispatch a key event already processed by the input method. |
| + virtual void DispatchKeyEventPostIME(gfx::NativeEvent native_key_event) = 0; |
|
James Su
2011/11/21 08:23:36
use const base::NativeEvent& instead.
Yusuke Sato
2011/11/22 11:09:30
Done.
|
| +}; |
| + |
| +} // namespace internal |
| +} // namespace ui |
| + |
| +#endif // UI_BASE_IME_INPUT_METHOD_DELEGATE_H_ |