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

Unified Diff: ui/views/widget/x11_window_event_filter.cc

Issue 10441028: aura/cros: Rename MessagePump{X => AuraX11} and move the atom cache into it. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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
« base/base.gypi ('K') | « ui/ui.gyp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/x11_window_event_filter.cc
diff --git a/ui/views/widget/x11_window_event_filter.cc b/ui/views/widget/x11_window_event_filter.cc
index 51065fdc6874b82b04e876f1830d29fd3968e7fe..1d241e80056ba601d68cea47abb2eb86576b0ff2 100644
--- a/ui/views/widget/x11_window_event_filter.cc
+++ b/ui/views/widget/x11_window_event_filter.cc
@@ -7,11 +7,10 @@
#include <X11/extensions/XInput.h>
#include <X11/extensions/XInput2.h>
-#include "base/message_pump_x.h"
+#include "base/message_pump_aurax11.h"
#include "ui/aura/env.h"
#include "ui/aura/root_window.h"
#include "ui/aura/window_delegate.h"
-#include "ui/aura/x11_atom_cache.h"
#include "ui/base/hit_test.h"
namespace {
@@ -50,7 +49,7 @@ namespace views {
X11WindowEventFilter::X11WindowEventFilter(aura::RootWindow* root_window)
: root_window_(root_window),
- xdisplay_(base::MessagePumpX::GetDefaultXDisplay()),
+ xdisplay_(base::MessagePumpAuraX11::GetDefaultXDisplay()),
xwindow_(root_window_->GetAcceleratedWidget()),
x_root_window_(DefaultRootWindow(xdisplay_)) {
}
@@ -58,14 +57,14 @@ X11WindowEventFilter::X11WindowEventFilter(aura::RootWindow* root_window)
X11WindowEventFilter::~X11WindowEventFilter() {}
void X11WindowEventFilter::SetUseHostWindowBorders(bool use_os_border) {
- aura::X11AtomCache* cache = aura::Env::GetInstance()->atom_cache();
MotifWmHints motif_hints;
memset(&motif_hints, 0, sizeof(motif_hints));
motif_hints.flags = kHintsDecorations;
motif_hints.decorations = use_os_border ? 1 : 0;
- ::Atom hint_atom = cache->GetAtom(aura::ATOM__MOTIF_WM_HINTS);
- XChangeProperty(base::MessagePumpX::GetDefaultXDisplay(),
+ ::Atom hint_atom = base::MessagePumpAuraX11::GetAtom(
+ base::atom::_MOTIF_WM_HINTS);
+ XChangeProperty(base::MessagePumpAuraX11::GetDefaultXDisplay(),
xwindow_,
hint_atom,
hint_atom,
@@ -173,8 +172,8 @@ bool X11WindowEventFilter::DispatchHostWindowDragMovement(
event.xclient.type = ClientMessage;
event.xclient.display = xdisplay_;
event.xclient.window = xwindow_;
- event.xclient.message_type = aura::Env::GetInstance()->atom_cache()->GetAtom(
- aura::ATOM__NET_WM_MOVERESIZE);
+ event.xclient.message_type = base::MessagePumpAuraX11::GetAtom(
+ base::atom::_NET_WM_MOVERESIZE);
event.xclient.format = 32;
event.xclient.data.l[0] = screen_location.x();
event.xclient.data.l[1] = screen_location.y();
« base/base.gypi ('K') | « ui/ui.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698