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

Unified Diff: base/message_loop.cc

Issue 112032: Promotes Add/RemoveObserver to MessageLoop for linux. Because... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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 | « base/message_loop.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/message_loop.cc
===================================================================
--- base/message_loop.cc (revision 16288)
+++ base/message_loop.cc (working copy)
@@ -565,6 +565,18 @@
//------------------------------------------------------------------------------
// MessageLoopForUI
+#if defined(OS_LINUX) || defined(OS_WIN)
+
+void MessageLoopForUI::AddObserver(Observer* observer) {
+ pump_ui()->AddObserver(observer);
+}
+
+void MessageLoopForUI::RemoveObserver(Observer* observer) {
+ pump_ui()->RemoveObserver(observer);
+}
+
+#endif
+
#if defined(OS_WIN)
void MessageLoopForUI::Run(Dispatcher* dispatcher) {
@@ -573,14 +585,6 @@
RunHandler();
}
-void MessageLoopForUI::AddObserver(Observer* observer) {
- pump_win()->AddObserver(observer);
-}
-
-void MessageLoopForUI::RemoveObserver(Observer* observer) {
- pump_win()->RemoveObserver(observer);
-}
-
void MessageLoopForUI::WillProcessMessage(const MSG& message) {
pump_win()->WillProcessMessage(message);
}
« no previous file with comments | « base/message_loop.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698