Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(182)

Side by Side Diff: ui/base/ime/linux/text_edit_command_auralinux.h

Issue 2029733003: Views: Replace resource ids with ui::TextEditCommand enum for text editing commands in Textfield. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: === Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_
OLDNEW
« no previous file with comments | « ui/base/ime/dummy_text_input_client.cc ('k') | ui/base/ime/linux/text_edit_command_auralinux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698