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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef UI_BASE_IME_INPUT_METHOD_IBUS_AURA_H_
6 #define UI_BASE_IME_INPUT_METHOD_IBUS_AURA_H_
7 #pragma once
8
9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h"
11 #include "ui/aura/desktop_observer.h"
12 #include "ui/base/ime/input_method_ibus.h"
13 #include "ui/base/ui_export.h"
14
15 namespace aura {
16 class Event;
17 class KeyEvent;
18 class Window;
19 } // namespace aura
20
21 namespace ui {
22
23 class TextInputClient;
24
25 // A ui::InputMethod implementation based on IBus and Aura.
26 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.
27 public aura::DesktopObserver {
28 public:
29 explicit InputMethodIBusAura(internal::InputMethodDelegate* delegate);
30 virtual ~InputMethodIBusAura();
31
32 // Overriden from ui::InputMethod.
33 virtual void Init() OVERRIDE;
34
35 // Overridden from aura::DesktopObserver.
36 virtual void OnActiveWindowChanged(aura::Window* new_active_window) OVERRIDE;
37
38 protected:
39 // Overriden from ui::InputMethodBase.
40 virtual bool IsWindowFocused(aura::Window* window) const OVERRIDE;
41
42 private:
43 aura::Window* active_window_;
44
45 DISALLOW_COPY_AND_ASSIGN(InputMethodIBusAura);
46 };
47
48 } // namespace ui
49
50 #endif // UI_BASE_IME_INPUT_METHOD_IBUS_AURA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698