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

Side by Side Diff: ui/base/ime/input_method_mac.mm

Issue 312523003: MacViews: Implement a ui::InputMethod for Mac (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « ui/base/ime/input_method_mac.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2014 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 #include "ui/base/ime/input_method_mac.h"
6
7 namespace ui {
8
9 InputMethodMac::InputMethodMac(internal::InputMethodDelegate* delegate) {
10 SetDelegate(delegate);
11 }
12
13 InputMethodMac::~InputMethodMac() {
14 }
15
16 bool InputMethodMac::OnUntranslatedIMEMessage(const base::NativeEvent& event,
17 NativeEventResult* result) {
18 return false;
19 }
20
21 bool InputMethodMac::DispatchKeyEvent(const ui::KeyEvent& event) {
22 // IME processing on the Mac does not go through this path.
23 NOTREACHED();
24 return false;
25 }
26
27 void InputMethodMac::OnCaretBoundsChanged(const TextInputClient* client) {
28 }
29
30 void InputMethodMac::CancelComposition(const TextInputClient* client) {
31 }
32
33 void InputMethodMac::OnInputLocaleChanged() {
34 }
35
36 std::string InputMethodMac::GetInputLocale() {
37 return "";
38 }
39
40 bool InputMethodMac::IsActive() {
41 return true;
Yuki 2014/06/03 07:50:15 I'm not sure if you really want to return true or
Andre 2014/06/03 17:55:03 I agree, it's not clear. This will not be called o
42 }
43
44 bool InputMethodMac::IsCandidatePopupOpen() const {
45 // There seems to be no way to tell if a candidate window is open.
46 return false;
47 }
48
49 } // namespace ui
OLDNEW
« no previous file with comments | « ui/base/ime/input_method_mac.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698