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

Unified Diff: ui/events/linux/text_edit_command_auralinux.h

Issue 851853002: It is time. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Trying to reup because the last upload failed. Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/events/BUILD.gn ('k') | ui/events/linux/text_edit_command_auralinux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/linux/text_edit_command_auralinux.h
diff --git a/ui/events/linux/text_edit_command_auralinux.h b/ui/events/linux/text_edit_command_auralinux.h
deleted file mode 100644
index 82d3af2430629ca8d99aca7aa6c5b26b993ee87f..0000000000000000000000000000000000000000
--- a/ui/events/linux/text_edit_command_auralinux.h
+++ /dev/null
@@ -1,82 +0,0 @@
-// Copyright 2014 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_EVENTS_X_TEXT_EDIT_COMMAND_X11_H_
-#define UI_EVENTS_X_TEXT_EDIT_COMMAND_X11_H_
-
-#include <string>
-
-#include "ui/events/events_export.h"
-
-namespace ui {
-
-// Represents a command that performs a specific operation on text.
-// Copy and assignment are explicitly allowed; these objects live in vectors.
-class EVENTS_EXPORT TextEditCommandAuraLinux {
- public:
- enum CommandId {
- COPY,
- CUT,
- DELETE_BACKWARD,
- DELETE_FORWARD,
- DELETE_TO_BEGINING_OF_LINE,
- DELETE_TO_BEGINING_OF_PARAGRAPH,
- DELETE_TO_END_OF_LINE,
- DELETE_TO_END_OF_PARAGRAPH,
- DELETE_WORD_BACKWARD,
- DELETE_WORD_FORWARD,
- INSERT_TEXT,
- MOVE_BACKWARD,
- MOVE_DOWN,
- MOVE_FORWARD,
- MOVE_LEFT,
- MOVE_PAGE_DOWN,
- MOVE_PAGE_UP,
- MOVE_RIGHT,
- MOVE_TO_BEGINING_OF_DOCUMENT,
- MOVE_TO_BEGINING_OF_LINE,
- MOVE_TO_BEGINING_OF_PARAGRAPH,
- MOVE_TO_END_OF_DOCUMENT,
- MOVE_TO_END_OF_LINE,
- MOVE_TO_END_OF_PARAGRAPH,
- MOVE_UP,
- MOVE_WORD_BACKWARD,
- MOVE_WORD_FORWARD,
- MOVE_WORD_LEFT,
- MOVE_WORD_RIGHT,
- PASTE,
- SELECT_ALL,
- SET_MARK,
- UNSELECT,
- INVALID_COMMAND
- };
-
- TextEditCommandAuraLinux(CommandId command_id,
- const std::string& argument,
- bool extend_selection)
- : command_id_(command_id),
- argument_(argument),
- extend_selection_(extend_selection) {}
-
- CommandId command_id() const { return command_id_; }
- const std::string& argument() const { return argument_; }
- bool extend_selection() const { return extend_selection_; }
-
- // We communicate these commands back to blink with a string representation.
- // This will combine the base command name with "AndModifySelection" if we
- // have |extend_selection_| set.
- std::string GetCommandString() const;
-
- private:
- CommandId command_id_;
-
- std::string argument_;
-
- // In addition to executing the command, modify the selection.
- bool extend_selection_;
-};
-
-} // namespace ui
-
-#endif // UI_EVENTS_X_TEXT_EDIT_COMMAND_X11_H_
« no previous file with comments | « ui/events/BUILD.gn ('k') | ui/events/linux/text_edit_command_auralinux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698