Chromium Code Reviews| 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_ |