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

Unified Diff: views/ime/input_method_wayland.h

Issue 7464027: Wayland support for views. views_desktop on Wayland. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Updated native_widget_wayland.cc to match compositor changes Created 9 years, 4 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 | « views/focus/accelerator_handler_wayland.cc ('k') | views/ime/input_method_wayland.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/ime/input_method_wayland.h
diff --git a/views/ime/input_method_wayland.h b/views/ime/input_method_wayland.h
new file mode 100644
index 0000000000000000000000000000000000000000..60dac30ad5144f26fff039d4ab0a82e923f7e86a
--- /dev/null
+++ b/views/ime/input_method_wayland.h
@@ -0,0 +1,36 @@
+// Copyright (c) 2011 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 VIEWS_IME_INPUT_METHOD_WAYLAND_H_
+#define VIEWS_IME_INPUT_METHOD_WAYLAND_H_
+#pragma once
+
+#include <string>
+
+#include "views/ime/input_method_base.h"
+
+namespace views {
+
+class InputMethodWayland : public InputMethodBase {
+ public:
+ explicit InputMethodWayland(internal::InputMethodDelegate *delegate);
+
+ virtual void DispatchKeyEvent(const KeyEvent& key) OVERRIDE;
+ virtual void OnTextInputTypeChanged(View* view) OVERRIDE;
+ virtual void OnCaretBoundsChanged(View* view) OVERRIDE;
+ virtual void CancelComposition(View* view) OVERRIDE;
+ virtual std::string GetInputLocale() OVERRIDE;
+ virtual base::i18n::TextDirection GetInputTextDirection() OVERRIDE;
+ virtual bool IsActive() OVERRIDE;
+
+ private:
+
+ void ProcessKeyPressEvent(const KeyEvent& key);
+
+ DISALLOW_COPY_AND_ASSIGN(InputMethodWayland);
+};
+
+} // namespace views
+
+#endif // VIEWS_IME_INPUT_METHOD_WAYLAND_H_
« no previous file with comments | « views/focus/accelerator_handler_wayland.cc ('k') | views/ime/input_method_wayland.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698