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 "views/focus/accelerator_handler.h" |
6 | 6 |
7 namespace views { | 7 namespace views { |
8 | 8 |
9 AcceleratorHandler::AcceleratorHandler() { | 9 AcceleratorHandler::AcceleratorHandler() { |
10 } | 10 } |
11 | 11 |
12 #if defined(OS_WIN) | 12 #if defined(OS_WIN) |
13 bool AcceleratorHandler::Dispatch(const MSG& msg) { | 13 bool AcceleratorHandler::Dispatch(const MSG& msg) { |
14 TranslateMessage(&msg); | 14 TranslateMessage(&msg); |
15 DispatchMessage(&msg); | 15 DispatchMessage(&msg); |
16 return true; | 16 return true; |
17 } | 17 } |
18 #else | 18 #else |
19 base::MessagePumpDispatcher::DispatchStatus AcceleratorHandler::Dispatch( | 19 base::MessagePumpDispatcher::DispatchStatus AcceleratorHandler::Dispatch( |
20 XEvent* xev) { | 20 XEvent*) { |
21 return base::MessagePumpDispatcher::EVENT_IGNORED; | 21 return base::MessagePumpDispatcher::EVENT_IGNORED; |
22 } | 22 } |
| 23 |
| 24 bool DispatchXEvent(XEvent* xev) { |
| 25 return false; |
| 26 } |
23 #endif // defined(OS_WIN) | 27 #endif // defined(OS_WIN) |
24 | 28 |
25 } // namespace views | 29 } // namespace views |
OLD | NEW |