Chromium Code Reviews| 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_ |