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

Side by Side Diff: ash/ime/input_method_event_handler.cc

Issue 1257603006: Refactoring for the InputMethod & InputMethodDelegate interfaces. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed Sadrul's comment. Created 5 years, 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ash/ime/input_method_event_handler.h" 5 #include "ash/ime/input_method_event_handler.h"
6 6
7 #include "ui/base/ime/input_method.h" 7 #include "ui/base/ime/input_method.h"
8 #include "ui/events/event.h" 8 #include "ui/events/event.h"
9 9
10 namespace ash { 10 namespace ash {
(...skipping 14 matching lines...) Expand all
25 25
26 //////////////////////////////////////////////////////////////////////////////// 26 ////////////////////////////////////////////////////////////////////////////////
27 // InputMethodEventHandler, EventFilter implementation: 27 // InputMethodEventHandler, EventFilter implementation:
28 28
29 void InputMethodEventHandler::OnKeyEvent(ui::KeyEvent* event) { 29 void InputMethodEventHandler::OnKeyEvent(ui::KeyEvent* event) {
30 // Never send synthesized key event. 30 // Never send synthesized key event.
31 if (event->flags() & ui::EF_IS_SYNTHESIZED) 31 if (event->flags() & ui::EF_IS_SYNTHESIZED)
32 return; 32 return;
33 if (post_ime_) 33 if (post_ime_)
34 return; 34 return;
35 input_method_->DispatchKeyEvent(*event); 35 input_method_->DispatchKeyEvent(event);
36 event->StopPropagation(); 36 event->StopPropagation();
37 } 37 }
38 38
39 } // namespace ash 39 } // namespace ash
OLDNEW
« no previous file with comments | « ash/host/ash_window_tree_host_x11.cc ('k') | chrome/browser/chromeos/input_method/input_method_engine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698