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

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

Issue 1566083002: Makes sure the keyboard typing isn't blocked when InputMethod::OnFocus() is not correctly called. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: compiled. Created 4 years, 11 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
(Empty)
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved.
sky 2016/01/08 16:51:57 or here.
Shu Chen 2016/01/09 01:46:02 Done.
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_log_collector.h"
6
7 #include "base/logging.h"
8
9 namespace ui {
10
11 InputMethodLogCollector::InputMethodLogCollector() {}
12
13 InputMethodLogCollector::~InputMethodLogCollector() {}
14
15 void InputMethodLogCollector::AddLog(const std::string& log_string) {
16 logs_.push_back(log_string);
17 }
18
19 void InputMethodLogCollector::OutputLogs() {
20 if (logs_.empty())
21 return;
22 for (size_t i = 0; i < logs_.size(); ++i)
23 LOG(ERROR) << " " << logs_[i];
24 logs_.clear();
25 }
26
27 void InputMethodLogCollector::ClearLogs() {
28 logs_.clear();
29 }
30
31 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698