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

Unified Diff: ui/aura/dispatcher_linux.h

Issue 10895020: Merge aura::DispatcherLinux into base::MessagePumpAuraX11. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes for sadrul Created 8 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/aura/device_list_updater_aurax11.cc ('k') | ui/aura/dispatcher_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/dispatcher_linux.h
diff --git a/ui/aura/dispatcher_linux.h b/ui/aura/dispatcher_linux.h
deleted file mode 100644
index 57d98b8f4db065e042397d868698ad27fbe06e80..0000000000000000000000000000000000000000
--- a/ui/aura/dispatcher_linux.h
+++ /dev/null
@@ -1,61 +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 UI_AURA_DISPATCHER_LINUX_H_
-#define UI_AURA_DISPATCHER_LINUX_H_
-
-#include <map>
-#include <vector>
-#include <X11/Xlib.h>
-// Get rid of a macro from Xlib.h that conflicts with Aura's RootWindow class.
-#undef RootWindow
-
-#include "base/basictypes.h"
-#include "base/compiler_specific.h"
-#include "base/message_loop.h"
-#include "ui/aura/aura_export.h"
-
-namespace aura {
-
-class AURA_EXPORT DispatcherLinux : public MessageLoop::Dispatcher,
- public base::MessagePumpObserver {
- public:
- DispatcherLinux();
- virtual ~DispatcherLinux();
-
- // Adds/Removes |dispatcher| for the |x_window|.
- void AddDispatcherForWindow(MessageLoop::Dispatcher* dispatcher,
- ::Window x_window);
- void RemoveDispatcherForWindow(::Window x_window);
-
- // Adds/Removes |dispatcher| to receive all events sent to the X
- // root window.
- void AddDispatcherForRootWindow(MessageLoop::Dispatcher* dispatcher);
- void RemoveDispatcherForRootWindow(MessageLoop::Dispatcher* dispatcher);
-
- // Overridden from MessageLoop::Dispatcher:
- virtual bool Dispatch(const base::NativeEvent& event) OVERRIDE;
-
- // Overridden from base::MessagePumpObserver:
- virtual base::EventStatus WillProcessEvent(
- const base::NativeEvent& event) OVERRIDE;
- virtual void DidProcessEvent(const base::NativeEvent& event) OVERRIDE;
-
- private:
- typedef std::map< ::Window, MessageLoop::Dispatcher* > DispatchersMap;
- typedef std::vector<MessageLoop::Dispatcher*> Dispatchers;
-
- MessageLoop::Dispatcher* GetDispatcherForXEvent(XEvent* xev) const;
-
- DispatchersMap dispatchers_;
- Dispatchers root_window_dispatchers_;
-
- ::Window x_root_window_;
-
- DISALLOW_COPY_AND_ASSIGN(DispatcherLinux);
-};
-
-} // namespace aura
-
-#endif // UI_AURA_DISPATCHER_LINUX_H_
« no previous file with comments | « ui/aura/device_list_updater_aurax11.cc ('k') | ui/aura/dispatcher_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698