| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef UI_BASE_IME_LINUX_TEXT_EDIT_COMMAND_AURALINUX_H_ |
| 6 #define UI_BASE_IME_LINUX_TEXT_EDIT_COMMAND_AURALINUX_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 #include "ui/base/ime/ui_base_ime_export.h" |
| 11 |
| 12 namespace ui { |
| 13 |
| 14 enum class TextEditCommand; |
| 15 |
| 16 // Represents a command that performs a specific operation on text. |
| 17 // Copy and assignment are explicitly allowed; these objects live in vectors. |
| 18 class UI_BASE_IME_EXPORT TextEditCommandAuraLinux { |
| 19 public: |
| 20 TextEditCommandAuraLinux(TextEditCommand command, const std::string& argument) |
| 21 : command_(command), argument_(argument) {} |
| 22 |
| 23 TextEditCommand command() const { return command_; } |
| 24 const std::string& argument() const { return argument_; } |
| 25 |
| 26 // We communicate these commands back to blink with a string representation. |
| 27 std::string GetCommandString() const; |
| 28 |
| 29 private: |
| 30 TextEditCommand command_; |
| 31 |
| 32 // The text for TextEditCommand::INSERT_TEXT; otherwise empty and unused. |
| 33 std::string argument_; |
| 34 }; |
| 35 |
| 36 } // namespace ui |
| 37 |
| 38 #endif // UI_BASE_IME_LINUX_TEXT_EDIT_COMMAND_AURALINUX_H_ |
| OLD | NEW |