| 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_OBSERVER_H | 5 #ifndef BASE_MESSAGE_LOOP_MESSAGE_PUMP_OBSERVER_H |
| 6 #define BASE_MESSAGE_PUMP_OBSERVER_H | 6 #define BASE_MESSAGE_LOOP_MESSAGE_PUMP_OBSERVER_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 |
| 11 namespace base { | 11 namespace base { |
| 12 | 12 |
| 13 enum EventStatus { | 13 enum EventStatus { |
| 14 EVENT_CONTINUE, // The event should be dispatched as normal. | 14 EVENT_CONTINUE, // The event should be dispatched as normal. |
| 15 #if defined(USE_X11) | 15 #if defined(USE_X11) |
| 16 EVENT_HANDLED // The event should not be processed any farther. | 16 EVENT_HANDLED // The event should not be processed any farther. |
| (...skipping 20 matching lines...) Expand all Loading... |
| 37 // This method is called after processing a message. This method | 37 // This method is called after processing a message. This method |
| 38 // will not be called if WillProcessEvent returns EVENT_HANDLED. | 38 // will not be called if WillProcessEvent returns EVENT_HANDLED. |
| 39 virtual void DidProcessEvent(const NativeEvent& event) = 0; | 39 virtual void DidProcessEvent(const NativeEvent& event) = 0; |
| 40 | 40 |
| 41 protected: | 41 protected: |
| 42 virtual ~MessagePumpObserver() {} | 42 virtual ~MessagePumpObserver() {} |
| 43 }; | 43 }; |
| 44 | 44 |
| 45 } // namespace base | 45 } // namespace base |
| 46 | 46 |
| 47 #endif // BASE_MESSAGE_PUMP_OBSERVER_VIEWS_H | 47 #endif // BASE_MESSAGE_LOOP_MESSAGE_PUMP_OBSERVER_H |
| OLD | NEW |