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

Side by Side Diff: ui/views/ime/input_method_bridge.cc

Issue 17112021: New method: InputMethod::IsCandidatePopupOpen() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Renamed from IsPopupOpen() to IsCandidatePopupOpen(). Created 7 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
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/views/ime/input_method_bridge.h" 5 #include "ui/views/ime/input_method_bridge.h"
6 6
7 #include "ui/base/events/event.h" 7 #include "ui/base/events/event.h"
8 #include "ui/base/ime/input_method.h" 8 #include "ui/base/ime/input_method.h"
9 #include "ui/gfx/rect.h" 9 #include "ui/gfx/rect.h"
10 #include "ui/views/view.h" 10 #include "ui/views/view.h"
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 } 87 }
88 88
89 base::i18n::TextDirection InputMethodBridge::GetInputTextDirection() { 89 base::i18n::TextDirection InputMethodBridge::GetInputTextDirection() {
90 return host_->GetInputTextDirection(); 90 return host_->GetInputTextDirection();
91 } 91 }
92 92
93 bool InputMethodBridge::IsActive() { 93 bool InputMethodBridge::IsActive() {
94 return host_->IsActive(); 94 return host_->IsActive();
95 } 95 }
96 96
97 bool InputMethodBridge::IsCandidatePopupOpen() const {
98 return host_->IsCandidatePopupOpen();
99 }
100
97 // Overridden from TextInputClient. Forward an event from the system-wide IME 101 // Overridden from TextInputClient. Forward an event from the system-wide IME
98 // to the text input |client|, which is e.g. views::NativeTextfieldViews. 102 // to the text input |client|, which is e.g. views::NativeTextfieldViews.
99 void InputMethodBridge::SetCompositionText( 103 void InputMethodBridge::SetCompositionText(
100 const ui::CompositionText& composition) { 104 const ui::CompositionText& composition) {
101 TextInputClient* client = GetTextInputClient(); 105 TextInputClient* client = GetTextInputClient();
102 if (client) 106 if (client)
103 client->SetCompositionText(composition); 107 client->SetCompositionText(composition);
104 } 108 }
105 109
106 void InputMethodBridge::ConfirmCompositionText() { 110 void InputMethodBridge::ConfirmCompositionText() {
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 OnTextInputTypeChanged(focused); 239 OnTextInputTypeChanged(focused);
236 OnCaretBoundsChanged(focused); 240 OnCaretBoundsChanged(focused);
237 } 241 }
238 242
239 ui::InputMethod* InputMethodBridge::GetHostInputMethod() const { 243 ui::InputMethod* InputMethodBridge::GetHostInputMethod() const {
240 return host_; 244 return host_;
241 } 245 }
242 246
243 247
244 } // namespace views 248 } // namespace views
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698