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

Unified Diff: chrome/browser/chromeos/login/screen_locker.cc

Issue 6257006: Move a bunch of random other files to src/ui/base... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 11 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 | « chrome/browser/chromeos/login/background_view.cc ('k') | chrome/browser/chromeos/native_dialog_window.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/screen_locker.cc
===================================================================
--- chrome/browser/chromeos/login/screen_locker.cc (revision 71854)
+++ chrome/browser/chromeos/login/screen_locker.cc (working copy)
@@ -14,7 +14,6 @@
#include "app/l10n_util.h"
#include "app/resource_bundle.h"
-#include "app/x11_util.h"
#include "base/command_line.h"
#include "base/lazy_instance.h"
#include "base/metrics/histogram.h"
@@ -49,6 +48,7 @@
#include "grit/generated_resources.h"
#include "grit/theme_resources.h"
#include "third_party/cros/chromeos_wm_ipc_enums.h"
+#include "ui/base/x/x11_util.h"
#include "views/screen.h"
#include "views/widget/root_view.h"
#include "views/widget/widget_gtk.h"
@@ -405,7 +405,7 @@
int event_base, error_base;
int major, minor;
// Make sure we have XTest extension.
- DCHECK(XTestQueryExtension(x11_util::GetXDisplay(),
+ DCHECK(XTestQueryExtension(ui::GetXDisplay(),
&event_base, &error_base,
&major, &minor));
}
@@ -419,12 +419,12 @@
// Successfully grabbed the keyboard, but pointer is still
// grabbed by other client. Another attempt to close supposedly
// opened menu by emulating keypress at the left top corner.
- Display* display = x11_util::GetXDisplay();
+ Display* display = ui::GetXDisplay();
Window root, child;
int root_x, root_y, win_x, winy;
unsigned int mask;
XQueryPointer(display,
- x11_util::GetX11WindowFromGtkWidget(window_contents()),
+ ui::GetX11WindowFromGtkWidget(window_contents()),
&root, &child, &root_x, &root_y,
&win_x, &winy, &mask);
XTestFakeMotionEvent(display, -1, -10000, -10000, CurrentTime);
@@ -439,7 +439,7 @@
// by other client. Another attempt to close supposedly opened
// menu by emulating escape key. Such situation must be very
// rare, but handling this just in case
- Display* display = x11_util::GetXDisplay();
+ Display* display = ui::GetXDisplay();
KeyCode escape = XKeysymToKeycode(display, XK_Escape);
XTestFakeKeyEvent(display, escape, True, CurrentTime);
XTestFakeKeyEvent(display, escape, False, CurrentTime);
« no previous file with comments | « chrome/browser/chromeos/login/background_view.cc ('k') | chrome/browser/chromeos/native_dialog_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698