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

Side by Side Diff: ui/base/ime/input_method_base.cc

Issue 10399046: Remove virtual keyboard support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: final rebase Created 8 years, 7 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 | « content/browser/renderer_host/render_process_host_browsertest.cc ('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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "ui/base/ime/input_method_base.h" 5 #include "ui/base/ime/input_method_base.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "ui/base/ime/input_method_delegate.h" 8 #include "ui/base/ime/input_method_delegate.h"
9 #include "ui/base/ime/text_input_client.h" 9 #include "ui/base/ime/text_input_client.h"
10 10
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 OnDidChangeFocusedClient(old, client); 46 OnDidChangeFocusedClient(old, client);
47 } 47 }
48 48
49 TextInputClient* InputMethodBase::GetTextInputClient() const { 49 TextInputClient* InputMethodBase::GetTextInputClient() const {
50 return system_toplevel_window_focused_ ? text_input_client_ : NULL; 50 return system_toplevel_window_focused_ ? text_input_client_ : NULL;
51 } 51 }
52 52
53 void InputMethodBase::OnTextInputTypeChanged(const TextInputClient* client) { 53 void InputMethodBase::OnTextInputTypeChanged(const TextInputClient* client) {
54 if (!IsTextInputClientFocused(client)) 54 if (!IsTextInputClientFocused(client))
55 return; 55 return;
56 // TODO(yusukes): Support TextInputTypeTracker for USE_VIRTUAL_KEYBOARD.
57 } 56 }
58 57
59 TextInputType InputMethodBase::GetTextInputType() const { 58 TextInputType InputMethodBase::GetTextInputType() const {
60 TextInputClient* client = GetTextInputClient(); 59 TextInputClient* client = GetTextInputClient();
61 return client ? client->GetTextInputType() : TEXT_INPUT_TYPE_NONE; 60 return client ? client->GetTextInputType() : TEXT_INPUT_TYPE_NONE;
62 } 61 }
63 62
64 bool InputMethodBase::CanComposeInline() const { 63 bool InputMethodBase::CanComposeInline() const {
65 TextInputClient* client = GetTextInputClient(); 64 TextInputClient* client = GetTextInputClient();
66 return client ? client->CanComposeInline() : true; 65 return client ? client->CanComposeInline() : true;
(...skipping 20 matching lines...) Expand all
87 } 86 }
88 87
89 void InputMethodBase::DispatchFabricatedKeyEventPostIME(EventType type, 88 void InputMethodBase::DispatchFabricatedKeyEventPostIME(EventType type,
90 KeyboardCode key_code, 89 KeyboardCode key_code,
91 int flags) const { 90 int flags) const {
92 if (delegate_) 91 if (delegate_)
93 delegate_->DispatchFabricatedKeyEventPostIME(type, key_code, flags); 92 delegate_->DispatchFabricatedKeyEventPostIME(type, key_code, flags);
94 } 93 }
95 94
96 } // namespace ui 95 } // namespace ui
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_process_host_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698