Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(373)

Unified Diff: base/message_pump_win.h

Issue 8021009: Consolidate message observer API for win and aura (and touch). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | base/message_pump_win.cc » ('j') | base/message_pump_x.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/message_pump_win.h
diff --git a/base/message_pump_win.h b/base/message_pump_win.h
index 5f17610172a13cf2b547aa56799c862860c93959..9da6ac3dce21f77639dc093151aa49db7127e79f 100644
--- a/base/message_pump_win.h
+++ b/base/message_pump_win.h
@@ -19,6 +19,12 @@
namespace base {
+typedef MSG NativeEvent;
+
+enum EventStatus {
+ EVENT_CONTINUE, // The event should be dispatched as normal.
+};
+
// MessagePumpWin serves as the base for specialized versions of the MessagePump
// for Windows. It provides basic functionality like handling of observers and
// controlling the lifetime of the message pump.
@@ -35,11 +41,11 @@ class BASE_EXPORT MessagePumpWin : public MessagePump {
// This method is called before processing a message.
// The message may be undefined in which case msg.message is 0
- virtual void WillProcessMessage(const MSG& msg) = 0;
+ virtual EventStatus WillProcessEvent(const NativeEvent& msg) = 0;
// This method is called when control returns from processing a UI message.
// The message may be undefined in which case msg.message is 0
- virtual void DidProcessMessage(const MSG& msg) = 0;
+ virtual void DidProcessEvent(const NativeEvent& msg) = 0;
};
// Dispatcher is used during a nested invocation of Run to dispatch events.
@@ -70,8 +76,8 @@ class BASE_EXPORT MessagePumpWin : public MessagePump {
// Give a chance to code processing additional messages to notify the
// message loop observers that another message has been processed.
- void WillProcessMessage(const MSG& msg);
- void DidProcessMessage(const MSG& msg);
+ void WillProcessEvent(const MSG& msg);
+ void DidProcessEvent(const MSG& msg);
// Like MessagePump::Run, but MSG objects are routed through dispatcher.
void RunWithDispatcher(Delegate* delegate, Dispatcher* dispatcher);
« no previous file with comments | « no previous file | base/message_pump_win.cc » ('j') | base/message_pump_x.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698