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

Unified Diff: ui/base/ime/input_method_ibus_aura.h

Issue 8576005: IME (input method editor) support for Aura, part 3 of 3: Use ui::InputMethod in ash. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase, review Created 9 years, 1 month 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/input_method_ibus_aura.h
diff --git a/ui/base/ime/input_method_ibus_aura.h b/ui/base/ime/input_method_ibus_aura.h
new file mode 100644
index 0000000000000000000000000000000000000000..f512f53fe6316703a98846a8515c397e317414ba
--- /dev/null
+++ b/ui/base/ime/input_method_ibus_aura.h
@@ -0,0 +1,50 @@
+// 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 UI_BASE_IME_INPUT_METHOD_IBUS_AURA_H_
+#define UI_BASE_IME_INPUT_METHOD_IBUS_AURA_H_
+#pragma once
+
+#include "base/basictypes.h"
+#include "base/compiler_specific.h"
+#include "ui/aura/desktop_observer.h"
+#include "ui/base/ime/input_method_ibus.h"
+#include "ui/base/ui_export.h"
+
+namespace aura {
+class Event;
+class KeyEvent;
+class Window;
+} // namespace aura
+
+namespace ui {
+
+class TextInputClient;
+
+// A ui::InputMethod implementation based on IBus and Aura.
+class UI_EXPORT InputMethodIBusAura : public InputMethodIBus,
James Su 2011/11/21 08:23:36 This class is not necessary, as we don't need to t
Yusuke Sato 2011/11/22 11:09:30 Done. Removed.
+ public aura::DesktopObserver {
+ public:
+ explicit InputMethodIBusAura(internal::InputMethodDelegate* delegate);
+ virtual ~InputMethodIBusAura();
+
+ // Overriden from ui::InputMethod.
+ virtual void Init() OVERRIDE;
+
+ // Overridden from aura::DesktopObserver.
+ virtual void OnActiveWindowChanged(aura::Window* new_active_window) OVERRIDE;
+
+ protected:
+ // Overriden from ui::InputMethodBase.
+ virtual bool IsWindowFocused(aura::Window* window) const OVERRIDE;
+
+ private:
+ aura::Window* active_window_;
+
+ DISALLOW_COPY_AND_ASSIGN(InputMethodIBusAura);
+};
+
+} // namespace ui
+
+#endif // UI_BASE_IME_INPUT_METHOD_IBUS_AURA_H_

Powered by Google App Engine
This is Rietveld 408576698