OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 BASE_MESSAGE_PUMP_DISPATCHER_H | 5 #ifndef BASE_MESSAGE_PUMP_DISPATCHER_H |
6 #define BASE_MESSAGE_PUMP_DISPATCHER_H | 6 #define BASE_MESSAGE_PUMP_DISPATCHER_H |
7 | 7 |
8 #include "base/base_export.h" | 8 #include "base/base_export.h" |
9 #include "base/event_types.h" | 9 #include "base/event_types.h" |
10 | 10 |
(...skipping 12 matching lines...) Expand all Loading... |
23 virtual ~MessagePumpDispatcher() {} | 23 virtual ~MessagePumpDispatcher() {} |
24 | 24 |
25 // Dispatches the event. If true is returned processing continues as | 25 // Dispatches the event. If true is returned processing continues as |
26 // normal. If false is returned, the nested loop exits immediately. | 26 // normal. If false is returned, the nested loop exits immediately. |
27 virtual bool Dispatch(const NativeEvent& event) = 0; | 27 virtual bool Dispatch(const NativeEvent& event) = 0; |
28 }; | 28 }; |
29 | 29 |
30 } // namespace base | 30 } // namespace base |
31 | 31 |
32 #endif // BASE_MESSAGE_PUMP_DISPATCHER_H | 32 #endif // BASE_MESSAGE_PUMP_DISPATCHER_H |
OLD | NEW |