summaryrefslogtreecommitdiffstats
path: root/base/message_pump_observer.h
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-18 20:27:52 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-18 20:27:52 +0000
commit59e69e745ba3fa290ff3c50e65c3db03ee9dde6b (patch)
tree64b82fd1e2375845b59f278f2a1e892dcf54377b /base/message_pump_observer.h
parentbd41e70e44d19eb809eb8565b1d8479daef5d8f5 (diff)
downloadchromium_src-59e69e745ba3fa290ff3c50e65c3db03ee9dde6b.zip
chromium_src-59e69e745ba3fa290ff3c50e65c3db03ee9dde6b.tar.gz
chromium_src-59e69e745ba3fa290ff3c50e65c3db03ee9dde6b.tar.bz2
Move message_pump to base/message_loop.
This also fixes some namespace usage inside the message pump files and updates all users of these files to use the new location. Reland of 206507. Original review https://codereview.chromium.org/17078005/ TBR=sky Review URL: https://codereview.chromium.org/16897006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207075 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/message_pump_observer.h')
-rw-r--r--base/message_pump_observer.h47
1 files changed, 0 insertions, 47 deletions
diff --git a/base/message_pump_observer.h b/base/message_pump_observer.h
deleted file mode 100644
index a7d2aa7..0000000
--- a/base/message_pump_observer.h
+++ /dev/null
@@ -1,47 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef BASE_MESSAGE_PUMP_OBSERVER_H
-#define BASE_MESSAGE_PUMP_OBSERVER_H
-
-#include "base/base_export.h"
-#include "base/event_types.h"
-
-namespace base {
-
-enum EventStatus {
- EVENT_CONTINUE, // The event should be dispatched as normal.
-#if defined(USE_X11)
- EVENT_HANDLED // The event should not be processed any farther.
-#endif
-};
-
-// A MessagePumpObserver is an object that receives global
-// notifications from the UI MessageLoop with MessagePumpWin or
-// MessagePumpAuraX11.
-//
-// NOTE: An Observer implementation should be extremely fast!
-//
-// For use with MessagePumpAuraX11, please see message_pump_glib.h for more
-// info about how this is invoked in this environment.
-class BASE_EXPORT MessagePumpObserver {
- public:
- // This method is called before processing a NativeEvent. If the
- // method returns EVENT_HANDLED, it indicates the event has already
- // been handled, so the event is not processed any farther. If the
- // method returns EVENT_CONTINUE, the event dispatching proceeds as
- // normal.
- virtual EventStatus WillProcessEvent(const NativeEvent& event) = 0;
-
- // This method is called after processing a message. This method
- // will not be called if WillProcessEvent returns EVENT_HANDLED.
- virtual void DidProcessEvent(const NativeEvent& event) = 0;
-
- protected:
- virtual ~MessagePumpObserver() {}
-};
-
-} // namespace base
-
-#endif // BASE_MESSAGE_PUMP_OBSERVER_VIEWS_H