| 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_LOOP_MESSAGE_PUMP_DISPATCHER_H | 5 #ifndef BASE_MESSAGE_LOOP_MESSAGE_PUMP_DISPATCHER_H_ |
| 6 #define BASE_MESSAGE_LOOP_MESSAGE_PUMP_DISPATCHER_H | 6 #define BASE_MESSAGE_LOOP_MESSAGE_PUMP_DISPATCHER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/base_export.h" | 10 #include "base/base_export.h" |
| 11 #include "base/event_types.h" | 11 #include "base/event_types.h" |
| 12 | 12 |
| 13 namespace base { | 13 namespace base { |
| 14 | 14 |
| 15 // Dispatcher is used during a nested invocation of Run to dispatch events when | 15 // Dispatcher is used during a nested invocation of Run to dispatch events when |
| 16 // |RunLoop(dispatcher).Run()| is used. If |RunLoop().Run()| is invoked, | 16 // |RunLoop(dispatcher).Run()| is used. If |RunLoop().Run()| is invoked, |
| (...skipping 16 matching lines...) Expand all Loading... |
| 33 // Dispatches the event. The return value can have more than one | 33 // Dispatches the event. The return value can have more than one |
| 34 // PostDispatchAction flags OR'ed together. If POST_DISPATCH_PERFORM_DEFAULT | 34 // PostDispatchAction flags OR'ed together. If POST_DISPATCH_PERFORM_DEFAULT |
| 35 // is set in the returned value, then the message-pump performs the default | 35 // is set in the returned value, then the message-pump performs the default |
| 36 // action. If POST_DISPATCH_QUIT_LOOP is set, in the return value, then the | 36 // action. If POST_DISPATCH_QUIT_LOOP is set, in the return value, then the |
| 37 // nested loop exits immediately. | 37 // nested loop exits immediately. |
| 38 virtual uint32_t Dispatch(const NativeEvent& event) = 0; | 38 virtual uint32_t Dispatch(const NativeEvent& event) = 0; |
| 39 }; | 39 }; |
| 40 | 40 |
| 41 } // namespace base | 41 } // namespace base |
| 42 | 42 |
| 43 #endif // BASE_MESSAGE_LOOP_MESSAGE_PUMP_DISPATCHER_H | 43 #endif // BASE_MESSAGE_LOOP_MESSAGE_PUMP_DISPATCHER_H_ |
| OLD | NEW |