OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_SPOKEN_FEEDBACK_EVENT_REWRITER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_SPOKEN_FEEDBACK_EVENT_REWRITER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_SPOKEN_FEEDBACK_EVENT_REWRITER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_SPOKEN_FEEDBACK_EVENT_REWRITER_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
| 10 #include "base/macros.h" |
10 #include "content/public/browser/web_contents_delegate.h" | 11 #include "content/public/browser/web_contents_delegate.h" |
11 #include "ui/events/event_rewriter.h" | 12 #include "ui/events/event_rewriter.h" |
12 | 13 |
13 namespace ui { | 14 namespace ui { |
14 class KeyEvent; | 15 class KeyEvent; |
15 } | 16 } |
16 | 17 |
17 // Receives requests for spoken feedback enabled state and command dispatch. | 18 // Receives requests for spoken feedback enabled state and command dispatch. |
18 class SpokenFeedbackEventRewriterDelegate | 19 class SpokenFeedbackEventRewriterDelegate |
19 : public content::WebContentsDelegate { | 20 : public content::WebContentsDelegate { |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 const ui::Event& last_event, | 58 const ui::Event& last_event, |
58 scoped_ptr<ui::Event>* new_event) override; | 59 scoped_ptr<ui::Event>* new_event) override; |
59 | 60 |
60 // Active delegate (used for testing). | 61 // Active delegate (used for testing). |
61 scoped_ptr<SpokenFeedbackEventRewriterDelegate> delegate_; | 62 scoped_ptr<SpokenFeedbackEventRewriterDelegate> delegate_; |
62 | 63 |
63 DISALLOW_COPY_AND_ASSIGN(SpokenFeedbackEventRewriter); | 64 DISALLOW_COPY_AND_ASSIGN(SpokenFeedbackEventRewriter); |
64 }; | 65 }; |
65 | 66 |
66 #endif // CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_SPOKEN_FEEDBACK_EVENT_REWRITER_
H_ | 67 #endif // CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_SPOKEN_FEEDBACK_EVENT_REWRITER_
H_ |
OLD | NEW |