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

Side by Side Diff: base/message_pump_observer.h

Issue 8566037: aura: Fix unit_tests on linux (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove Synthetic tests that were added for NWViews Created 9 years 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 | « no previous file | base/message_pump_win.h » ('j') | ui/aura/desktop_host_linux.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_PUMP_OBSERVER_H 5 #ifndef BASE_MESSAGE_PUMP_OBSERVER_H
6 #define BASE_MESSAGE_PUMP_OBSERVER_H 6 #define BASE_MESSAGE_PUMP_OBSERVER_H
7 #pragma once 7 #pragma once
8 8
9 #include "base/event_types.h" 9 #include "base/event_types.h"
10 10
(...skipping 20 matching lines...) Expand all
31 // method returns EVENT_HANDLED, it indicates the event has already 31 // method returns EVENT_HANDLED, it indicates the event has already
32 // been handled, so the event is not processed any farther. If the 32 // been handled, so the event is not processed any farther. If the
33 // method returns EVENT_CONTINUE, the event dispatching proceeds as 33 // method returns EVENT_CONTINUE, the event dispatching proceeds as
34 // normal. 34 // normal.
35 virtual EventStatus WillProcessEvent(const NativeEvent& event) = 0; 35 virtual EventStatus WillProcessEvent(const NativeEvent& event) = 0;
36 36
37 // This method is called after processing a message. This method 37 // This method is called after processing a message. This method
38 // will not be called if WillProcessEvent returns EVENT_HANDLED. 38 // will not be called if WillProcessEvent returns EVENT_HANDLED.
39 virtual void DidProcessEvent(const NativeEvent& event) = 0; 39 virtual void DidProcessEvent(const NativeEvent& event) = 0;
40 40
41 // This method is called just before the message pump is destroyed.
42 virtual void DestroyMessagePump() {}
oshima 2011/11/29 21:08:11 OnMessagePumpDestroying. how much work do we need
sadrul 2011/11/29 21:21:33 Renamed. To make it pure virtual: I am not sure h
oshima 2011/11/30 00:04:16 That's true if Observer interface is broad (like W
43
41 protected: 44 protected:
42 virtual ~MessagePumpObserver() {} 45 virtual ~MessagePumpObserver() {}
43 }; 46 };
44 47
45 } // namespace base 48 } // namespace base
46 49
47 #endif // BASE_MESSAGE_PUMP_OBSERVER_VIEWS_H 50 #endif // BASE_MESSAGE_PUMP_OBSERVER_VIEWS_H
OLDNEW
« no previous file with comments | « no previous file | base/message_pump_win.h » ('j') | ui/aura/desktop_host_linux.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698