summaryrefslogtreecommitdiff
path: root/chromium/ui/base/ime/input_method_base.cc
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2020-01-20 13:40:20 +0100
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2020-01-22 12:41:23 +0000
commit7961cea6d1041e3e454dae6a1da660b453efd238 (patch)
treec0eeb4a9ff9ba32986289c1653d9608e53ccb444 /chromium/ui/base/ime/input_method_base.cc
parentb7034d0803538058e5c9d904ef03cf5eab34f6ef (diff)
downloadqtwebengine-chromium-7961cea6d1041e3e454dae6a1da660b453efd238.tar.gz
BASELINE: Update Chromium to 78.0.3904.130
Change-Id: If185e0c0061b3437531c97c9c8c78f239352a68b Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/ui/base/ime/input_method_base.cc')
-rw-r--r--chromium/ui/base/ime/input_method_base.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/chromium/ui/base/ime/input_method_base.cc b/chromium/ui/base/ime/input_method_base.cc
index aa1631a7ead..e2054af3996 100644
--- a/chromium/ui/base/ime/input_method_base.cc
+++ b/chromium/ui/base/ime/input_method_base.cc
@@ -284,12 +284,17 @@ InputMethod* InputMethodBase::GetInputMethod() {
return this;
}
-void InputMethodBase::ConfirmCompositionText() {
+void InputMethodBase::ConfirmCompositionText(bool reset_engine) {
TextInputClient* client = GetTextInputClient();
if (client && client->HasCompositionText())
client->ConfirmCompositionText();
}
+bool InputMethodBase::HasCompositionText() {
+ TextInputClient* client = GetTextInputClient();
+ return client && client->HasCompositionText();
+}
+
const std::vector<std::unique_ptr<ui::KeyEvent>>&
InputMethodBase::GetKeyEventsForTesting() {
return key_events_for_testing_;