| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |