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

Unified Diff: ui/base/x/device_data_manager.cc

Issue 23460052: Move XID, XDisplay, GetXDisplay and a few other types to ui/gfx/x/x11_types.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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
Index: ui/base/x/device_data_manager.cc
diff --git a/ui/base/x/device_data_manager.cc b/ui/base/x/device_data_manager.cc
index 390abdbe115a5fccf8eab770cbd7ee27b36db856..784819f6b0812923f8231deda7273fa6cf4ce92b 100644
--- a/ui/base/x/device_data_manager.cc
+++ b/ui/base/x/device_data_manager.cc
@@ -116,12 +116,12 @@ DeviceDataManager* DeviceDataManager::GetInstance() {
DeviceDataManager::DeviceDataManager()
: natural_scroll_enabled_(false),
- atom_cache_(ui::GetXDisplay(), kCachedAtoms) {
+ atom_cache_(gfx::GetXDisplay(), kCachedAtoms) {
InitializeXInputInternal();
// Make sure the sizes of enum and kCachedAtoms are aligned.
CHECK(arraysize(kCachedAtoms) == static_cast<size_t>(DT_LAST_ENTRY) + 1);
- UpdateDeviceList(ui::GetXDisplay());
+ UpdateDeviceList(gfx::GetXDisplay());
}
DeviceDataManager::~DeviceDataManager() {
@@ -132,7 +132,7 @@ bool DeviceDataManager::InitializeXInputInternal() {
xi_opcode_ = -1;
int opcode, event, error;
if (!XQueryExtension(
- ui::GetXDisplay(), "XInputExtension", &opcode, &event, &error)) {
+ gfx::GetXDisplay(), "XInputExtension", &opcode, &event, &error)) {
VLOG(1) << "X Input extension not available: error=" << error;
return false;
}
@@ -144,7 +144,7 @@ bool DeviceDataManager::InitializeXInputInternal() {
#else
int major = 2, minor = 0;
#endif
- if (XIQueryVersion(ui::GetXDisplay(), &major, &minor) == BadRequest) {
+ if (XIQueryVersion(gfx::GetXDisplay(), &major, &minor) == BadRequest) {
VLOG(1) << "XInput2 not supported in the server.";
return false;
}
« no previous file with comments | « ui/base/touch/touch_factory_x11.cc ('k') | ui/base/x/events_x.cc » ('j') | ui/base/x/x11_util.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698