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

Unified Diff: ui/base/ime/input_method_log_collector.h

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: remote_input_method_win.cc is gone again. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/base/ime/input_method_base.cc ('k') | ui/base/ime/input_method_log_collector.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/ime/input_method_log_collector.h
diff --git a/ui/base/ime/input_method_log_collector.h b/ui/base/ime/input_method_log_collector.h
new file mode 100644
index 0000000000000000000000000000000000000000..bdc8b4d59af9d481de65d86e3c508b621db54f04
--- /dev/null
+++ b/ui/base/ime/input_method_log_collector.h
@@ -0,0 +1,36 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef UI_BASE_IME_INPUT_METHOD_LOG_COLLECTOR_H_
+#define UI_BASE_IME_INPUT_METHOD_LOG_COLLECTOR_H_
+
+#include <string>
+#include <vector>
+
+#include "base/macros.h"
+#include "ui/base/ime/ui_base_ime_export.h"
+
+namespace ui {
+
+// The class to gather some logs and dump it through
+// base::debug::DumpWithoutCrashing when InputMethod processing a key event.
+// This is for tracing the issue that hardly repros: crbug.com/569339.
+class UI_BASE_IME_EXPORT InputMethodLogCollector {
+ public:
+ InputMethodLogCollector();
+ ~InputMethodLogCollector();
+ void AddString(const char* str_val);
+ void AddBoolean(bool bool_val);
+ void DumpLogs();
+ void ClearLogs();
+
+ private:
+ std::vector<const char*> logs_;
+
+ DISALLOW_COPY_AND_ASSIGN(InputMethodLogCollector);
+};
+
+} // namespace ui
+
+#endif // UI_BASE_IME_INPUT_METHOD_LOG_COLLECTOR_H_
« no previous file with comments | « ui/base/ime/input_method_base.cc ('k') | ui/base/ime/input_method_log_collector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698