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

Unified Diff: ui/base/ime/linux/linux_input_method_context.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
Index: ui/base/ime/linux/linux_input_method_context.h
diff --git a/ui/base/ime/linux/linux_input_method_context.h b/ui/base/ime/linux/linux_input_method_context.h
deleted file mode 100644
index 0bcfd0a41f16879e3c2dd110ff4370f5ff52812f..0000000000000000000000000000000000000000
--- a/ui/base/ime/linux/linux_input_method_context.h
+++ /dev/null
@@ -1,65 +0,0 @@
-// Copyright 2013 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_BASE_IME_LINUX_LINUX_INPUT_METHOD_CONTEXT_H_
-#define UI_BASE_IME_LINUX_LINUX_INPUT_METHOD_CONTEXT_H_
-
-#include "base/strings/string16.h"
-#include "ui/base/ime/text_input_type.h"
-#include "ui/base/ui_base_export.h"
-
-namespace gfx {
-class Rect;
-}
-
-namespace ui {
-
-struct CompositionText;
-class KeyEvent;
-
-// An interface of input method context for input method frameworks on
-// GNU/Linux and likes.
-class UI_BASE_EXPORT LinuxInputMethodContext {
- public:
- virtual ~LinuxInputMethodContext() {}
-
- // Dispatches the key event to an underlying IME. Returns true if the key
- // event is handled, otherwise false. A client must set the text input type
- // before dispatching a key event.
- virtual bool DispatchKeyEvent(const ui::KeyEvent& key_event) = 0;
-
- // Resets the context. A client needs to call OnTextInputTypeChanged() again
- // before calling DispatchKeyEvent().
- virtual void Reset() = 0;
-
- // Notifies the context that the text input type has changed.
- virtual void OnTextInputTypeChanged(TextInputType text_input_type) = 0;
-
- // Notifies the context that the caret bounds have changed. |caret_bounds| is
- // relative to screen coordinates.
- virtual void OnCaretBoundsChanged(const gfx::Rect& caret_bounds) = 0;
-};
-
-// An interface of callback functions called from LinuxInputMethodContext.
-class UI_BASE_EXPORT LinuxInputMethodContextDelegate {
- public:
- virtual ~LinuxInputMethodContextDelegate() {}
-
- // Commits the |text| to the text input client.
- virtual void OnCommit(const base::string16& text) = 0;
-
- // Sets the composition text to the text input client.
- virtual void OnPreeditChanged(const CompositionText& composition_text) = 0;
-
- // Cleans up a composition session and makes sure that the composition text is
- // cleared.
- virtual void OnPreeditEnd() = 0;
-
- // Prepares things for a new composition session.
- virtual void OnPreeditStart() = 0;
-};
-
-} // namespace ui
-
-#endif // UI_BASE_IME_LINUX_LINUX_INPUT_METHOD_CONTEXT_H_
« no previous file with comments | « ui/base/ime/linux/fake_input_method_context_factory.cc ('k') | ui/base/ime/linux/linux_input_method_context_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698