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

Unified Diff: mandoline/ui/aura/input_method_mandoline.h

Issue 1136593004: Add a simple browser UI (with url bar) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 7 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 | « mandoline/ui/aura/BUILD.gn ('k') | mandoline/ui/aura/input_method_mandoline.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mandoline/ui/aura/input_method_mandoline.h
diff --git a/mandoline/ui/aura/input_method_mandoline.h b/mandoline/ui/aura/input_method_mandoline.h
new file mode 100644
index 0000000000000000000000000000000000000000..004bfb5a9d6ba2f529d3568f27b4bbc1a50608e6
--- /dev/null
+++ b/mandoline/ui/aura/input_method_mandoline.h
@@ -0,0 +1,34 @@
+// Copyright (c) 2015 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.
+
+#include "ui/base/ime/input_method_base.h"
+
+#ifndef MANDOLINE_UI_AURA_INPUT_METHOD_MANDOLINE_H_
+#define MANDOLINE_UI_AURA_INPUT_METHOD_MANDOLINE_H_
+
+namespace mandoline {
+
+class InputMethodMandoline : public ui::InputMethodBase {
+ public:
+ explicit InputMethodMandoline(ui::internal::InputMethodDelegate* delegate);
+ ~InputMethodMandoline() override;
+
+ private:
+ // Overridden from ui::InputMethod:
+ bool OnUntranslatedIMEMessage(const base::NativeEvent& event,
+ NativeEventResult* result) override;
+ bool DispatchKeyEvent(const ui::KeyEvent& event) override;
+ void OnCaretBoundsChanged(const ui::TextInputClient* client) override;
+ void CancelComposition(const ui::TextInputClient* client) override;
+ void OnInputLocaleChanged() override;
+ std::string GetInputLocale() override;
+ bool IsActive() override;
+ bool IsCandidatePopupOpen() const override;
+
+ DISALLOW_COPY_AND_ASSIGN(InputMethodMandoline);
+};
+
+} // namespace mandoline
+
+#endif // MANDOLINE_UI_AURA_INPUT_METHOD_MANDOLINE_H_
« no previous file with comments | « mandoline/ui/aura/BUILD.gn ('k') | mandoline/ui/aura/input_method_mandoline.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698