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

Side by Side Diff: base/message_loop/message_pump_observer.h

Issue 233653002: x11: Remove MessagePumpObserver. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « base/message_loop/message_loop.cc ('k') | base/message_loop/message_pump_x11.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_LOOP_MESSAGE_PUMP_OBSERVER_H 5 #ifndef BASE_MESSAGE_LOOP_MESSAGE_PUMP_OBSERVER_H
6 #define BASE_MESSAGE_LOOP_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 #if !defined(OS_WIN)
12 #error Should not be here.
13 #endif
14
11 namespace base { 15 namespace base {
12 16
13 // A MessagePumpObserver is an object that receives global 17 // A MessagePumpObserver is an object that receives global
14 // notifications from the UI MessageLoop with MessagePumpWin or 18 // notifications from the UI MessageLoop with MessagePumpWin.
15 // MessagePumpX11.
16 // 19 //
17 // NOTE: An Observer implementation should be extremely fast! 20 // NOTE: An Observer implementation should be extremely fast!
18 //
19 // For use with MessagePumpX11, please see message_pump_glib.h for more
20 // info about how this is invoked in this environment.
21 class BASE_EXPORT MessagePumpObserver { 21 class BASE_EXPORT MessagePumpObserver {
22 public: 22 public:
23 // This method is called before processing a NativeEvent. 23 // This method is called before processing a NativeEvent.
24 virtual void WillProcessEvent(const NativeEvent& event) = 0; 24 virtual void WillProcessEvent(const NativeEvent& event) = 0;
25 25
26 // This method is called after processing a message. 26 // This method is called after processing a message.
27 virtual void DidProcessEvent(const NativeEvent& event) = 0; 27 virtual void DidProcessEvent(const NativeEvent& event) = 0;
28 28
29 protected: 29 protected:
30 virtual ~MessagePumpObserver() {} 30 virtual ~MessagePumpObserver() {}
31 }; 31 };
32 32
33 } // namespace base 33 } // namespace base
34 34
35 #endif // BASE_MESSAGE_LOOP_MESSAGE_PUMP_OBSERVER_H 35 #endif // BASE_MESSAGE_LOOP_MESSAGE_PUMP_OBSERVER_H
OLDNEW
« no previous file with comments | « base/message_loop/message_loop.cc ('k') | base/message_loop/message_pump_x11.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698