| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_EVENTS_KEYBOARD_DRIVEN_EVENT_REWRITER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_EVENTS_KEYBOARD_DRIVEN_EVENT_REWRITER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_EVENTS_KEYBOARD_DRIVEN_EVENT_REWRITER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_EVENTS_KEYBOARD_DRIVEN_EVENT_REWRITER_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" |
| 8 #include "ui/events/event_rewriter.h" | 9 #include "ui/events/event_rewriter.h" |
| 9 | 10 |
| 10 namespace chromeos { | 11 namespace chromeos { |
| 11 | 12 |
| 12 // KeyboardDrivenEventRewriter removes the modifier flags from | 13 // KeyboardDrivenEventRewriter removes the modifier flags from |
| 13 // Shift+<Arrow keys|Enter|F6> key events. This mapping only happens | 14 // Shift+<Arrow keys|Enter|F6> key events. This mapping only happens |
| 14 // on login screen and only when the keyboard driven oobe is enabled. | 15 // on login screen and only when the keyboard driven oobe is enabled. |
| 15 class KeyboardDrivenEventRewriter : public ui::EventRewriter { | 16 class KeyboardDrivenEventRewriter : public ui::EventRewriter { |
| 16 public: | 17 public: |
| 17 KeyboardDrivenEventRewriter(); | 18 KeyboardDrivenEventRewriter(); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 32 private: | 33 private: |
| 33 ui::EventRewriteStatus Rewrite(const ui::Event& event, | 34 ui::EventRewriteStatus Rewrite(const ui::Event& event, |
| 34 scoped_ptr<ui::Event>* new_event); | 35 scoped_ptr<ui::Event>* new_event); |
| 35 | 36 |
| 36 DISALLOW_COPY_AND_ASSIGN(KeyboardDrivenEventRewriter); | 37 DISALLOW_COPY_AND_ASSIGN(KeyboardDrivenEventRewriter); |
| 37 }; | 38 }; |
| 38 | 39 |
| 39 } // namespace chromeos | 40 } // namespace chromeos |
| 40 | 41 |
| 41 #endif // CHROME_BROWSER_CHROMEOS_EVENTS_KEYBOARD_DRIVEN_EVENT_REWRITER_H_ | 42 #endif // CHROME_BROWSER_CHROMEOS_EVENTS_KEYBOARD_DRIVEN_EVENT_REWRITER_H_ |
| OLD | NEW |