summaryrefslogtreecommitdiffstats
path: root/extensions/browser/api/virtual_keyboard_private
diff options
context:
space:
mode:
authorrsadam <rsadam@chromium.org>2015-06-12 09:04:53 -0700
committerCommit bot <commit-bot@chromium.org>2015-06-12 16:05:26 +0000
commit70cf78d285fd8106c1e4591a677b4e0b720fefbd (patch)
tree808ecd96ff7b80040a5fbe1c54cf6cb72c3a9119 /extensions/browser/api/virtual_keyboard_private
parent40b4153a6929a9cef7d7feddbb0901656a0bcc99 (diff)
downloadchromium_src-70cf78d285fd8106c1e4591a677b4e0b720fefbd.zip
chromium_src-70cf78d285fd8106c1e4591a677b4e0b720fefbd.tar.gz
chromium_src-70cf78d285fd8106c1e4591a677b4e0b720fefbd.tar.bz2
[Code cleanup] Delete obsolete flag.
BUG= Review URL: https://codereview.chromium.org/1178173002 Cr-Commit-Position: refs/heads/master@{#334170}
Diffstat (limited to 'extensions/browser/api/virtual_keyboard_private')
-rw-r--r--extensions/browser/api/virtual_keyboard_private/virtual_keyboard_delegate.h6
-rw-r--r--extensions/browser/api/virtual_keyboard_private/virtual_keyboard_private_api.cc13
-rw-r--r--extensions/browser/api/virtual_keyboard_private/virtual_keyboard_private_api.h12
3 files changed, 0 insertions, 31 deletions
diff --git a/extensions/browser/api/virtual_keyboard_private/virtual_keyboard_delegate.h b/extensions/browser/api/virtual_keyboard_private/virtual_keyboard_delegate.h
index c584120..1258365 100644
--- a/extensions/browser/api/virtual_keyboard_private/virtual_keyboard_delegate.h
+++ b/extensions/browser/api/virtual_keyboard_private/virtual_keyboard_delegate.h
@@ -41,12 +41,6 @@ class VirtualKeyboardDelegate {
// hotkeys without the need for text focus. Returns true if successful.
virtual bool LockKeyboard(bool state) = 0;
- // Moves the text caret. |swipe_direction| indicates the direction to move the
- // caret. Swipes can be in one or 4 directions denoted by an enumerated value.
- // |modifier_flags| indicates which keyboard modifier keys (e.g. shift or alt)
- // are being held during the swipe. Returns true if successful.
- virtual bool MoveCursor(int swipe_direction, int modifier_flags) = 0;
-
// Dispatches a virtual key event. |type| indicates if the event is a keydown
// or keyup event. |char_value| is the unicode value for the key. |key_code|
// is the code assigned to the key, which is independent of the state of
diff --git a/extensions/browser/api/virtual_keyboard_private/virtual_keyboard_private_api.cc b/extensions/browser/api/virtual_keyboard_private/virtual_keyboard_private_api.cc
index 2d945e9..763e23d 100644
--- a/extensions/browser/api/virtual_keyboard_private/virtual_keyboard_private_api.cc
+++ b/extensions/browser/api/virtual_keyboard_private/virtual_keyboard_private_api.cc
@@ -44,19 +44,6 @@ bool VirtualKeyboardPrivateInsertTextFunction::RunSync() {
return false;
}
-bool VirtualKeyboardPrivateMoveCursorFunction::RunSync() {
- VirtualKeyboardDelegate* delegate = GetDelegate(this);
- if (delegate) {
- int swipe_direction;
- int modifier_flags;
- EXTENSION_FUNCTION_VALIDATE(args_->GetInteger(0, &swipe_direction));
- EXTENSION_FUNCTION_VALIDATE(args_->GetInteger(1, &modifier_flags));
- return delegate->MoveCursor(swipe_direction, modifier_flags);
- }
- error_ = kNotYetImplementedError;
- return false;
-}
-
bool VirtualKeyboardPrivateSendKeyEventFunction::RunSync() {
VirtualKeyboardDelegate* delegate = GetDelegate(this);
if (delegate) {
diff --git a/extensions/browser/api/virtual_keyboard_private/virtual_keyboard_private_api.h b/extensions/browser/api/virtual_keyboard_private/virtual_keyboard_private_api.h
index 905d832..7aeeac7 100644
--- a/extensions/browser/api/virtual_keyboard_private/virtual_keyboard_private_api.h
+++ b/extensions/browser/api/virtual_keyboard_private/virtual_keyboard_private_api.h
@@ -27,18 +27,6 @@ class VirtualKeyboardPrivateInsertTextFunction : public SyncExtensionFunction {
bool RunSync() override;
};
-class VirtualKeyboardPrivateMoveCursorFunction : public SyncExtensionFunction {
- public:
- DECLARE_EXTENSION_FUNCTION("virtualKeyboardPrivate.moveCursor",
- VIRTUALKEYBOARDPRIVATE_MOVECURSOR);
-
- protected:
- ~VirtualKeyboardPrivateMoveCursorFunction() override {}
-
- // ExtensionFunction.
- bool RunSync() override;
-};
-
class VirtualKeyboardPrivateSendKeyEventFunction
: public SyncExtensionFunction {
public: