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

Unified Diff: content/browser/accessibility/accessibility_event_recorder.h

Issue 790943002: Add DumpAccessibilityEvents test framework. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dump_acc_events_1
Patch Set: Created 6 years 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
Index: content/browser/accessibility/accessibility_event_recorder.h
diff --git a/content/browser/accessibility/accessibility_event_recorder.h b/content/browser/accessibility/accessibility_event_recorder.h
new file mode 100644
index 0000000000000000000000000000000000000000..72f49cfda4234413a5d1a64469b83f7dac632f3b
--- /dev/null
+++ b/content/browser/accessibility/accessibility_event_recorder.h
@@ -0,0 +1,34 @@
+// Copyright (c) 2014 The Chromium Authors. All rights reserved.
David Tseng 2014/12/16 16:53:04 Ditto.
dmazzoni 2014/12/16 23:26:31 Done.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_BROWSER_ACCESSIBILITY_ACCESSIBILITY_EVENT_RECORDER_H_
+#define CONTENT_BROWSER_ACCESSIBILITY_ACCESSIBILITY_EVENT_RECORDER_H_
+
+#include <vector>
+
+#include "content/browser/accessibility/browser_accessibility_manager.h"
David Tseng 2014/12/16 16:53:04 Could you forward declare?
dmazzoni 2014/12/16 23:26:31 Done.
+#include "content/common/content_export.h"
+
+namespace content {
+
+class AccessibilityEventRecorder {
David Tseng 2014/12/16 16:53:04 nit: document
dmazzoni 2014/12/16 23:26:31 Done.
+ public:
+ static AccessibilityEventRecorder* Create(
+ BrowserAccessibilityManager* manager);
+ virtual ~AccessibilityEventRecorder();
+
+ const std::vector<std::string>& GetEventLogs() { return event_logs_; }
David Tseng 2014/12/16 16:53:04 nit: just event_logs()
David Tseng 2014/12/16 16:53:04 nit: document
dmazzoni 2014/12/16 23:26:31 Done.
+
+ protected:
+ explicit AccessibilityEventRecorder(BrowserAccessibilityManager* manager);
+
+ BrowserAccessibilityManager* manager_;
+ std::vector<std::string> event_logs_;
+
+ DISALLOW_COPY_AND_ASSIGN(AccessibilityEventRecorder);
+};
+
+} // namespace content
+
+#endif // CONTENT_BROWSER_ACCESSIBILITY_ACCESSIBILITY_EVENT_RECORDER_H_

Powered by Google App Engine
This is Rietveld 408576698