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

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

Issue 17112021: New method: InputMethod::IsCandidatePopupOpen() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Synced. 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
« no previous file with comments | « ui/base/ime/mock_input_method.h ('k') | ui/views/ime/input_method.h » ('j') | 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/mock_input_method.h" 5 #include "ui/base/ime/mock_input_method.h"
6 6
7 namespace ui { 7 namespace ui {
8 8
9 MockInputMethod::MockInputMethod(internal::InputMethodDelegate* delegate) 9 MockInputMethod::MockInputMethod(internal::InputMethodDelegate* delegate)
10 : text_input_client_(NULL) { 10 : text_input_client_(NULL) {
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 } 84 }
85 85
86 ui::TextInputType MockInputMethod::GetTextInputType() const { 86 ui::TextInputType MockInputMethod::GetTextInputType() const {
87 return ui::TEXT_INPUT_TYPE_NONE; 87 return ui::TEXT_INPUT_TYPE_NONE;
88 } 88 }
89 89
90 bool MockInputMethod::CanComposeInline() const { 90 bool MockInputMethod::CanComposeInline() const {
91 return true; 91 return true;
92 } 92 }
93 93
94 bool MockInputMethod::IsCandidatePopupOpen() const {
95 return false;
96 }
97
94 void MockInputMethod::AddObserver(InputMethodObserver* observer) { 98 void MockInputMethod::AddObserver(InputMethodObserver* observer) {
95 observer_list_.AddObserver(static_cast<Observer*>(observer)); 99 observer_list_.AddObserver(static_cast<Observer*>(observer));
96 } 100 }
97 101
98 void MockInputMethod::RemoveObserver(InputMethodObserver* observer) { 102 void MockInputMethod::RemoveObserver(InputMethodObserver* observer) {
99 observer_list_.RemoveObserver(static_cast<Observer*>(observer)); 103 observer_list_.RemoveObserver(static_cast<Observer*>(observer));
100 } 104 }
101 105
102 } // namespace ui 106 } // namespace ui
OLDNEW
« no previous file with comments | « ui/base/ime/mock_input_method.h ('k') | ui/views/ime/input_method.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698