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

Unified Diff: trunk/src/base/message_pump_win.h

Issue 15973003: Revert 201955 "Allow multiple base::MessagePumpForUI instances t..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 7 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 | « trunk/src/base/base.gypi ('k') | trunk/src/base/message_pump_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/base/message_pump_win.h
===================================================================
--- trunk/src/base/message_pump_win.h (revision 201972)
+++ trunk/src/base/message_pump_win.h (working copy)
@@ -17,7 +17,6 @@
#include "base/message_pump_observer.h"
#include "base/observer_list.h"
#include "base/time.h"
-#include "base/win/message_window.h"
#include "base/win/scoped_handle.h"
namespace base {
@@ -126,9 +125,7 @@
// an excellent choice. It is also helpful that the starter messages that are
// placed in the queue when new task arrive also awakens DoRunLoop.
//
-class BASE_EXPORT MessagePumpForUI
- : public MessagePumpWin,
- public win::MessageWindow::Delegate {
+class BASE_EXPORT MessagePumpForUI : public MessagePumpWin {
public:
// A MessageFilter implements the common Peek/Translate/Dispatch code to deal
// with windows messages.
@@ -178,14 +175,12 @@
void PumpOutPendingPaintMessages();
private:
- // win::MessageWindow::Delegate interface.
- virtual bool HandleMessage(HWND hwnd,
- UINT message,
- WPARAM wparam,
- LPARAM lparam,
- LRESULT* result) OVERRIDE;
-
+ static LRESULT CALLBACK WndProcThunk(HWND window_handle,
+ UINT message,
+ WPARAM wparam,
+ LPARAM lparam);
virtual void DoRunLoop();
+ void InitMessageWnd();
void WaitForWork();
void HandleWorkMessage();
void HandleTimerMessage();
@@ -193,10 +188,13 @@
bool ProcessMessageHelper(const MSG& msg);
bool ProcessPumpReplacementMessage();
- scoped_ptr<MessageFilter> message_filter_;
+ // Instance of the module containing the window procedure.
+ HMODULE instance_;
// A hidden message-only window.
- scoped_ptr<win::MessageWindow> window_;
+ HWND message_hwnd_;
+
+ scoped_ptr<MessageFilter> message_filter_;
};
//-----------------------------------------------------------------------------
« no previous file with comments | « trunk/src/base/base.gypi ('k') | trunk/src/base/message_pump_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698