| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include <X11/keysym.h> | 5 #include <X11/keysym.h> |
| 6 #include <X11/Xlib.h> | 6 #include <X11/Xlib.h> |
| 7 | 7 |
| 8 // X macro fail. | 8 // X macro fail. |
| 9 #if defined(RootWindow) | 9 #if defined(RootWindow) |
| 10 #undef RootWindow | 10 #undef RootWindow |
| (...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 xevent.xbutton.type = ButtonRelease; | 210 xevent.xbutton.type = ButtonRelease; |
| 211 aura::test::PostEventToWindowTreeHost(xevent, root_window->GetHost()); | 211 aura::test::PostEventToWindowTreeHost(xevent, root_window->GetHost()); |
| 212 button_down_mask = (button_down_mask | xbutton->state) ^ xbutton->state; | 212 button_down_mask = (button_down_mask | xbutton->state) ^ xbutton->state; |
| 213 } | 213 } |
| 214 RunClosureAfterAllPendingUIEvents(closure); | 214 RunClosureAfterAllPendingUIEvents(closure); |
| 215 return true; | 215 return true; |
| 216 } | 216 } |
| 217 bool SendMouseClick(MouseButton type) override { | 217 bool SendMouseClick(MouseButton type) override { |
| 218 return SendMouseEvents(type, UP | DOWN); | 218 return SendMouseEvents(type, UP | DOWN); |
| 219 } | 219 } |
| 220 bool SendTouchEventsNotifyWhenDone(int action, |
| 221 int num, |
| 222 int x, |
| 223 int y, |
| 224 const base::Closure& task) override { |
| 225 NOTIMPLEMENTED(); |
| 226 return false; |
| 227 } |
| 220 void RunClosureAfterAllPendingUIEvents( | 228 void RunClosureAfterAllPendingUIEvents( |
| 221 const base::Closure& closure) override { | 229 const base::Closure& closure) override { |
| 222 if (closure.is_null()) | 230 if (closure.is_null()) |
| 223 return; | 231 return; |
| 224 static XEvent* marker_event = NULL; | 232 static XEvent* marker_event = NULL; |
| 225 if (!marker_event) { | 233 if (!marker_event) { |
| 226 marker_event = new XEvent(); | 234 marker_event = new XEvent(); |
| 227 marker_event->xclient.type = ClientMessage; | 235 marker_event->xclient.type = ClientMessage; |
| 228 marker_event->xclient.display = x_display_; | 236 marker_event->xclient.display = x_display_; |
| 229 marker_event->xclient.window = x_window_; | 237 marker_event->xclient.window = x_window_; |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 | 294 |
| 287 UIControlsAura* CreateUIControlsDesktopAura() { | 295 UIControlsAura* CreateUIControlsDesktopAura() { |
| 288 // The constructor of UIControlsDesktopX11 needs X11 connection to be | 296 // The constructor of UIControlsDesktopX11 needs X11 connection to be |
| 289 // initialized. | 297 // initialized. |
| 290 gfx::InitializeThreadedX11(); | 298 gfx::InitializeThreadedX11(); |
| 291 return new UIControlsDesktopX11(); | 299 return new UIControlsDesktopX11(); |
| 292 } | 300 } |
| 293 | 301 |
| 294 } // namespace test | 302 } // namespace test |
| 295 } // namespace views | 303 } // namespace views |
| OLD | NEW |