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

Unified Diff: ui/aura/desktop_host_win.cc

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/aura/desktop_host_win.cc
diff --git a/ui/aura/desktop_host_win.cc b/ui/aura/desktop_host_win.cc
index c491ac161a9b0b56165e85236723d443954ff7e5..e46fad1f4e17a9771fb6d756e05cbed284c4a2e0 100644
--- a/ui/aura/desktop_host_win.cc
+++ b/ui/aura/desktop_host_win.cc
@@ -114,6 +114,7 @@ gfx::Size DesktopHost::GetNativeDisplaySize() {
DesktopHostWin::DesktopHostWin(const gfx::Rect& bounds)
: desktop_(NULL),
+ ALLOW_THIS_IN_INITIALIZER_LIST(input_method_(this)),
fullscreen_(false),
saved_window_style_(0),
saved_window_ex_style_(0) {
@@ -233,6 +234,7 @@ void DesktopHostWin::OnClose() {
LRESULT DesktopHostWin::OnKeyEvent(UINT message,
WPARAM w_param,
LPARAM l_param) {
+ // TODO(yusukes): Support input method.
MSG msg = { hwnd(), message, w_param, l_param };
KeyEvent keyev(msg, message == WM_CHAR);
SetMsgHandled(desktop_->DispatchKeyEvent(&keyev));
@@ -264,4 +266,13 @@ void DesktopHostWin::OnSize(UINT param, const CSize& size) {
desktop_->OnHostResized(gfx::Size(size.cx, size.cy));
}
+ui::InputMethod* DesktopHostWin::GetInputMethod() {
+ return &input_method_;
+}
+
+void DesktopHostWin::DispatchKeyEventPostIME(Event* event) {
+ // TODO(yusukes): Support input method.
+ NOTIMPLEMENTED();
+}
+
} // namespace aura
« no previous file with comments | « ui/aura/desktop_host_win.h ('k') | ui/aura/event.h » ('j') | ui/base/ime/input_method.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698