| Index: ui/base/ime/text_input_client.h
|
| diff --git a/ui/base/ime/text_input_client.h b/ui/base/ime/text_input_client.h
|
| index 552208c30faa1e6b7d9271afed8e8c5a972b5d49..eccade4d5d887a0d9f49f01887765372cb6898b1 100644
|
| --- a/ui/base/ime/text_input_client.h
|
| +++ b/ui/base/ime/text_input_client.h
|
| @@ -14,6 +14,7 @@
|
| #include "ui/base/ime/text_input_mode.h"
|
| #include "ui/base/ime/text_input_type.h"
|
| #include "ui/base/ime/ui_base_ime_export.h"
|
| +#include "ui/events/text_edit_commands.h"
|
| #include "ui/gfx/native_widget_types.h"
|
| #include "ui/gfx/range/range.h"
|
|
|
| @@ -166,15 +167,15 @@ class UI_BASE_IME_EXPORT TextInputClient {
|
| // http://crbug.com/360334
|
| virtual void EnsureCaretInRect(const gfx::Rect& rect) = 0;
|
|
|
| - // Returns true if |command_id| is currently allowed to be executed.
|
| - virtual bool IsEditCommandEnabled(int command_id) = 0;
|
| + // Returns true if |command| is currently allowed to be executed.
|
| + virtual bool IsEditCommandEnabled(TextEditCommand command) const = 0;
|
|
|
| - // Execute the command specified by |command_id| on the next key event.
|
| - // This allows a TextInputClient to be informed of a platform-independent edit
|
| - // command that has been derived from the key event currently being dispatched
|
| - // (but not yet sent to the TextInputClient). The edit command will take into
|
| - // account any OS-specific, or user-specified, keybindings that may be set up.
|
| - virtual void SetEditCommandForNextKeyEvent(int command_id) = 0;
|
| + // Execute |command| on the next key event. This allows a TextInputClient to
|
| + // be informed of a platform-independent edit command that has been derived
|
| + // from the key event currently being dispatched (but not yet sent to the
|
| + // TextInputClient). The edit command will take into account any OS-specific,
|
| + // or user-specified, keybindings that may be set up.
|
| + virtual void SetEditCommandForNextKeyEvent(TextEditCommand command) = 0;
|
| };
|
|
|
| } // namespace ui
|
|
|