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..d34ecf9a6cec01bda3004138ef1b4b513e76f1c3 |
--- /dev/null |
+++ b/ui/base/ime/input_method_log_collector.h |
@@ -0,0 +1,30 @@ |
+// 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 "ui/base/ime/ui_base_ime_export.h" |
+ |
+namespace ui { |
+ |
+class UI_BASE_IME_EXPORT InputMethodLogCollector { |
sky
2016/01/19 16:59:21
Add a description as to what this is for, and make
Shu Chen
2016/01/20 00:31:49
Done.
|
+ public: |
+ InputMethodLogCollector(); |
+ virtual ~InputMethodLogCollector(); |
sky
2016/01/19 16:59:21
You don't need virtual here, do you?
Shu Chen
2016/01/20 00:31:49
Done.
|
+ void AddString(const char* str_val); |
+ void AddBoolean(bool bool_val); |
+ void DumpLogs(); |
+ void ClearLogs(); |
+ |
+ private: |
+ std::vector<const char*> logs_; |
+}; |
sky
2016/01/19 16:59:20
DISALLOW...
Shu Chen
2016/01/20 00:31:49
Done.
|
+ |
+} // namespace ui |
+ |
+#endif // UI_BASE_IME_INPUT_METHOD_LOG_COLLECTOR_H_ |