| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "views/focus/accelerator_handler.h" | 5 #include "ui/views/focus/accelerator_handler.h" |
| 6 | 6 |
| 7 #include "ui/base/keycodes/keyboard_code_conversion_win.h" |
| 7 #include "ui/base/keycodes/keyboard_codes.h" | 8 #include "ui/base/keycodes/keyboard_codes.h" |
| 8 #include "ui/base/keycodes/keyboard_code_conversion_win.h" | 9 #include "ui/views/events/event.h" |
| 9 #include "views/events/event.h" | 10 #include "ui/views/focus/focus_manager.h" |
| 10 #include "views/focus/focus_manager.h" | |
| 11 #include "views/widget/widget.h" | 11 #include "views/widget/widget.h" |
| 12 | 12 |
| 13 namespace views { | 13 namespace views { |
| 14 | 14 |
| 15 AcceleratorHandler::AcceleratorHandler() { | 15 AcceleratorHandler::AcceleratorHandler() { |
| 16 } | 16 } |
| 17 | 17 |
| 18 bool AcceleratorHandler::Dispatch(const MSG& msg) { | 18 bool AcceleratorHandler::Dispatch(const MSG& msg) { |
| 19 bool process_message = true; | 19 bool process_message = true; |
| 20 | 20 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 51 | 51 |
| 52 if (process_message) { | 52 if (process_message) { |
| 53 TranslateMessage(&msg); | 53 TranslateMessage(&msg); |
| 54 DispatchMessage(&msg); | 54 DispatchMessage(&msg); |
| 55 } | 55 } |
| 56 | 56 |
| 57 return true; | 57 return true; |
| 58 } | 58 } |
| 59 | 59 |
| 60 } // namespace views | 60 } // namespace views |
| OLD | NEW |