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

Side by Side Diff: ui/aura/dispatcher_linux.h

Issue 10143001: Work in progress: Adds MessagePumpDispatcher::ShouldExit(). This is used to handle the (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | « chrome/browser/ui/views/simple_message_box_views.cc ('k') | ui/aura/dispatcher_linux.cc » ('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 UI_AURA_DISPATCHER_LINUX_H_ 5 #ifndef UI_AURA_DISPATCHER_LINUX_H_
6 #define UI_AURA_DISPATCHER_LINUX_H_ 6 #define UI_AURA_DISPATCHER_LINUX_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <X11/Xlib.h> 10 #include <X11/Xlib.h>
(...skipping 10 matching lines...) Expand all
21 public: 21 public:
22 DispatcherLinux(); 22 DispatcherLinux();
23 virtual ~DispatcherLinux(); 23 virtual ~DispatcherLinux();
24 24
25 void WindowDispatcherCreated(::Window window, 25 void WindowDispatcherCreated(::Window window,
26 MessageLoop::Dispatcher* dispatcher); 26 MessageLoop::Dispatcher* dispatcher);
27 void WindowDispatcherDestroying(::Window window); 27 void WindowDispatcherDestroying(::Window window);
28 28
29 // Overridden from MessageLoop::Dispatcher: 29 // Overridden from MessageLoop::Dispatcher:
30 virtual bool Dispatch(const base::NativeEvent& event) OVERRIDE; 30 virtual bool Dispatch(const base::NativeEvent& event) OVERRIDE;
31 virtual bool ShouldExit() OVERRIDE;
31 32
32 private: 33 private:
33 typedef std::map< ::Window, MessageLoop::Dispatcher* > DispatchersMap; 34 typedef std::map< ::Window, MessageLoop::Dispatcher* > DispatchersMap;
34 35
35 MessageLoop::Dispatcher* GetDispatcherForXEvent(XEvent* xev) const; 36 MessageLoop::Dispatcher* GetDispatcherForXEvent(XEvent* xev) const;
36 37
37 DispatchersMap dispatchers_; 38 DispatchersMap dispatchers_;
38 39
39 DISALLOW_COPY_AND_ASSIGN(DispatcherLinux); 40 DISALLOW_COPY_AND_ASSIGN(DispatcherLinux);
40 }; 41 };
41 42
42 } // namespace aura 43 } // namespace aura
43 44
44 #endif // UI_AURA_DISPATCHER_LINUX_H_ 45 #endif // UI_AURA_DISPATCHER_LINUX_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/simple_message_box_views.cc ('k') | ui/aura/dispatcher_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698