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

Unified Diff: ui/aura/root_window_host_x11.cc

Issue 72503002: Remove some pass-thrus on RootWindow API in favor of exposing the RootWindowHost again. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 1 month 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/root_window_host_x11.h ('k') | ui/aura/root_window_host_x11_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/root_window_host_x11.cc
diff --git a/ui/aura/root_window_host_x11.cc b/ui/aura/root_window_host_x11.cc
index 9315775d4e7c88f4ca40ced88ca85a52519bdf30..08c8ca6f088d159ada39da33ad8fe13bc809780e 100644
--- a/ui/aura/root_window_host_x11.cc
+++ b/ui/aura/root_window_host_x11.cc
@@ -320,8 +320,7 @@ class RootWindowHostX11::MouseMoveFilter {
// RootWindowHostX11
RootWindowHostX11::RootWindowHostX11(const gfx::Rect& bounds)
- : delegate_(NULL),
- xdisplay_(gfx::GetXDisplay()),
+ : xdisplay_(gfx::GetXDisplay()),
xwindow_(0),
x_root_window_(DefaultRootWindow(xdisplay_)),
current_cursor_(ui::kCursorNull),
@@ -584,10 +583,6 @@ bool RootWindowHostX11::Dispatch(const base::NativeEvent& event) {
return true;
}
-void RootWindowHostX11::SetDelegate(RootWindowHostDelegate* delegate) {
- delegate_ = delegate;
-}
-
RootWindow* RootWindowHostX11::GetRootWindow() {
return delegate_->AsRootWindow();
}
@@ -790,17 +785,6 @@ void RootWindowHostX11::MoveCursorTo(const gfx::Point& location) {
bounds_.y() + location.y());
}
-void RootWindowHostX11::SetFocusWhenShown(bool focus_when_shown) {
- static const char* k_NET_WM_USER_TIME = "_NET_WM_USER_TIME";
- focus_when_shown_ = focus_when_shown;
- if (IsWindowManagerPresent() && !focus_when_shown_) {
- ui::SetIntProperty(xwindow_,
- k_NET_WM_USER_TIME,
- k_NET_WM_USER_TIME,
- 0);
- }
-}
-
void RootWindowHostX11::PostNativeEvent(
const base::NativeEvent& native_event) {
DCHECK(xwindow_);
@@ -824,7 +808,7 @@ void RootWindowHostX11::PostNativeEvent(
xevent.xmotion.time = CurrentTime;
gfx::Point point(xevent.xmotion.x, xevent.xmotion.y);
- delegate_->AsRootWindow()->ConvertPointToNativeScreen(&point);
+ delegate_->AsRootWindow()->host()->ConvertPointToNativeScreen(&point);
xevent.xmotion.x_root = point.x();
xevent.xmotion.y_root = point.y();
}
« no previous file with comments | « ui/aura/root_window_host_x11.h ('k') | ui/aura/root_window_host_x11_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698