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

Unified Diff: trunk/src/ui/aura/test/ui_controls_factory_aurax11.cc

Issue 23943010: Revert 223621 "x11: Prefer using ui::GetXDisplay() over getting ..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 3 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 | « trunk/src/ui/aura/root_window_host_x11.cc ('k') | trunk/src/ui/base/x/events_x.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/ui/aura/test/ui_controls_factory_aurax11.cc
===================================================================
--- trunk/src/ui/aura/test/ui_controls_factory_aurax11.cc (revision 223638)
+++ trunk/src/ui/aura/test/ui_controls_factory_aurax11.cc (working copy)
@@ -11,13 +11,13 @@
#endif
#include "base/logging.h"
+#include "base/message_loop/message_pump_x11.h"
#include "ui/aura/client/screen_position_client.h"
#include "ui/aura/env.h"
#include "ui/aura/root_window.h"
#include "ui/aura/test/ui_controls_factory_aura.h"
#include "ui/base/keycodes/keyboard_code_conversion_x.h"
#include "ui/base/test/ui_controls_aura.h"
-#include "ui/base/x/x11_util.h"
#include "ui/compositor/dip_util.h"
namespace aura {
@@ -73,7 +73,9 @@
// Returns atom that indidates that the XEvent is marker event.
Atom MarkerEventAtom() {
- return XInternAtom(ui::GetXDisplay(), "marker_event", False);
+ return XInternAtom(base::MessagePumpX11::GetDefaultXDisplay(),
+ "marker_event",
+ False);
}
// Returns true when the event is a marker event.
@@ -115,7 +117,7 @@
if (alt)
SetKeycodeAndSendThenMask(&xevent, XK_Alt_L, Mod1Mask);
xevent.xkey.keycode =
- XKeysymToKeycode(ui::GetXDisplay(),
+ XKeysymToKeycode(base::MessagePumpX11::GetDefaultXDisplay(),
ui::XKeysymForWindowsKeyCode(key, shift));
root_window_->PostNativeEvent(&xevent);
@@ -225,7 +227,8 @@
KeySym keysym,
unsigned int mask) {
xevent->xkey.keycode =
- XKeysymToKeycode(ui::GetXDisplay(), keysym);
+ XKeysymToKeycode(base::MessagePumpX11::GetDefaultXDisplay(),
+ keysym);
root_window_->PostNativeEvent(xevent);
xevent->xkey.state |= mask;
}
@@ -235,7 +238,8 @@
KeySym keysym) {
xevent->xkey.state ^= mask;
xevent->xkey.keycode =
- XKeysymToKeycode(ui::GetXDisplay(), keysym);
+ XKeysymToKeycode(base::MessagePumpX11::GetDefaultXDisplay(),
+ keysym);
root_window_->PostNativeEvent(xevent);
}
« no previous file with comments | « trunk/src/ui/aura/root_window_host_x11.cc ('k') | trunk/src/ui/base/x/events_x.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698